From 1c090fd3655ca08b2a9ec7ae6271637b205585de Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 5 Apr 2012 23:48:14 +0000 Subject: siunitx (5apr12) git-svn-id: svn://tug.org/texlive/trunk@25863 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/siunitx/config/siunitx-abbreviations.cfg | 2 +- .../tex/latex/siunitx/config/siunitx-binary.cfg | 2 +- .../tex/latex/siunitx/config/siunitx-version-1.cfg | 2 +- Master/texmf-dist/tex/latex/siunitx/siunitx.sty | 21 +++++++++++++++------ 4 files changed, 18 insertions(+), 9 deletions(-) (limited to 'Master/texmf-dist/tex') 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 356ab09e4c5..987167ed270 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} {2012/04/04} {2.4m} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2012/04/04} {2.4n} {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 ce7ab61b069..22c2b4d8c40 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} {2012/04/04} {2.4m} +\ProvidesExplFile {siunitx-binary.cfg} {2012/04/04} {2.4n} {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 ae0cc07946d..c175f6d8922 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} {2012/04/04} {2.4m} +\ProvidesExplFile {siunitx-version-1.cfg} {2012/04/04} {2.4n} {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 e126aa4957c..d2df5d671fe 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} -\ProvidesExplPackage {siunitx} {2012/04/04} {2.4m} +\ProvidesExplPackage {siunitx} {2012/04/04} {2.4n} {A comprehensive (SI) units package} \@ifpackagelater { expl3 } { 2011/09/05 } { } @@ -2440,11 +2440,20 @@ \l_siunitx_tmpa_tl } } -\cs_new_protected:Npn - \siunitx_number_process_scientific_aux_i:nnn #1#2#3 { - \int_compare:nNnF { #1 + 0 #2 } = { 0 } - { \siunitx_number_process_scientific_aux_ii:nnn {#1} {#2} {#3} } -} +\cs_new_protected:Npn \siunitx_number_process_scientific_aux_i:nnn #1#2#3 + { + \bool_set_true:N \l_siunitx_tmp_bool + \tl_map_inline:nn {#1#2} + { + \str_if_eq:nnF {##1} { 0 } + { + \bool_set_false:N \l_siunitx_tmp_bool + \tl_map_break: + } + } + \bool_if:NF \l_siunitx_tmp_bool + { \siunitx_number_process_scientific_aux_ii:nnn {#1} {#2} {#3} } + } \cs_new_protected:Npn \siunitx_number_process_scientific_aux_ii:nnn #1#2#3 { \int_compare:nNnTF {#1} > { 9 } -- cgit v1.2.3