diff options
author | Karl Berry <karl@freefriends.org> | 2013-03-12 22:36:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-03-12 22:36:18 +0000 |
commit | 5c30ca128a813719715e012a0d72c1ccaba2d811 (patch) | |
tree | 32cc842ba800bfaa4c4b755e35ebea4d9452d2b7 /Master/texmf-dist/tex/latex | |
parent | 5400c076c2eb17a3b4a17f698eae2b2836bc5844 (diff) |
siunitx (12mar13)
git-svn-id: svn://tug.org/texlive/trunk@29360 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
4 files changed, 25 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg index 747fe63b228..ac817958a77 100644 --- a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg +++ b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-abbreviations.cfg @@ -13,7 +13,7 @@ %% See http://www.latex-project.org/lppl.txt %% --------------------------------------------------------------- %% -\ProvidesExplFile {siunitx-abbreviations.cfg} {2013/02/01} {2.5p} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2013/03/11} {2.5q} {siunitx: Abbreviated units} \DeclareSIUnit \A { \ampere } \DeclareSIUnit \pA { \pico \ampere } diff --git a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg index 3eec40712d1..11f85bd1a5e 100644 --- a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg +++ b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-binary.cfg @@ -13,7 +13,7 @@ %% See http://www.latex-project.org/lppl.txt %% --------------------------------------------------------------- %% -\ProvidesExplFile {siunitx-binary.cfg} {2013/02/01} {2.5p} +\ProvidesExplFile {siunitx-binary.cfg} {2013/03/11} {2.5q} {siunitx: Binary units} \DeclareBinaryPrefix \kibi { Ki } { 10 } \DeclareBinaryPrefix \mebi { Mi } { 20 } diff --git a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg index 5e588748eeb..f6cc25df5d1 100644 --- a/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg +++ b/Master/texmf-dist/tex/latex/siunitx/config/siunitx-version-1.cfg @@ -13,7 +13,7 @@ %% See http://www.latex-project.org/lppl.txt %% --------------------------------------------------------------- %% -\ProvidesExplFile {siunitx-version-1.cfg} {2013/02/01} {2.5p} +\ProvidesExplFile {siunitx-version-1.cfg} {2013/03/11} {2.5q} {siunitx: Version 1 settings} \keys_define:nn { siunitx } { addsign .choice: , diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty index b89514458f6..e66935d8d4f 100644 --- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty +++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty @@ -14,7 +14,7 @@ %% --------------------------------------------------------------- %% \RequirePackage{expl3,xparse} -\ProvidesExplPackage {siunitx} {2013/02/01} {2.5p} +\ProvidesExplPackage {siunitx} {2013/03/11} {2.5q} {A comprehensive (SI) units package} \@ifpackagelater { expl3 } { 2012/11/21 } { } @@ -1093,14 +1093,23 @@ \cs_new_protected:Npn \__siunitx_number_in_protect_aux:N #1 { \cs_set_eq:NN #1 \scan_stop: } -\cs_new_protected:Npn \__siunitx_number_in_sign_replace:N #1 { - \tl_replace_all:Nnn #1 { -+ } { \mp } - \tl_replace_all:Nnn #1 { +- } { \pm } - \tl_replace_all:Nnn #1 { << } { \ll } - \tl_replace_all:Nnn #1 { <= } { \le } - \tl_replace_all:Nnn #1 { >> } { \gg } - \tl_replace_all:Nnn #1 { >= } { \ge } -} +\group_begin: +\char_set_catcode_active:N \* +\char_set_lccode:nn { `\* } { `\- } +\tl_to_lowercase:n + { + \group_end: + \cs_new_protected:Npn \__siunitx_number_in_sign_replace:N #1 + { + \tl_replace_all:Nnn #1 { * } { - } + \tl_replace_all:Nnn #1 { -+ } { \mp } + \tl_replace_all:Nnn #1 { +- } { \pm } + \tl_replace_all:Nnn #1 { << } { \ll } + \tl_replace_all:Nnn #1 { <= } { \le } + \tl_replace_all:Nnn #1 { >> } { \gg } + \tl_replace_all:Nnn #1 { >= } { \ge } + } + } \cs_new_protected:Npn \__siunitx_number_in_parse_error:nn #1#2 { \__siunitx_error:nx {#1} { \exp_not:n {#2} } \tl_map_break: @@ -5486,6 +5495,9 @@ { \NC@list { #1 #2 } } \exp_after:wN \__siunitx_tmp:w \tex_the:D \NC@list \q_stop \cs_undefine:N \NC@find@S + \msg_new:nnn { siunitx } { moved-cellspace-column } + { Column~type~for~cellspace~package~moved~to~'#1'. } + \msg_warning:nnn { siunitx } { moved-cellspace-column } { C } } { } } @@ -7542,12 +7554,12 @@ \@onefilewithoptions { siunitx } [ ] [ ] \c__siunitx_configuration_ext_tl } +\ProcessKeysOptions { siunitx } \AtBeginDocument { \bool_if:NTF \l__siunitx_create_free_bool { \__siunitx_unit_create_functions: } { \__siunitx_unit_create_empty_functions: } } -\ProcessKeysOptions { siunitx } %% Copyright (C) 2008-2013 by %% Joseph Wright <joseph.wright@morningstar2.co.uk> %% |