From a04931aaec1f922807f83ac7a7e3498ad54c0cb7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 7 Oct 2011 23:16:33 +0000 Subject: siunitx 2.3g (6oct11) git-svn-id: svn://tug.org/texlive/trunk@24235 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/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 | 15 +++++++++++---- 4 files changed, 14 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/latex/siunitx') 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 e430ffce29d..97a735f3ede 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} {2011/09/13} {2.3f} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2011/10/06} {2.3g} {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 6494452434e..bba9e382836 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} {2011/09/13} {2.3f} +\ProvidesExplFile {siunitx-binary.cfg} {2011/10/06} {2.3g} {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 94e0aaf6a39..ea732d63797 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} {2011/09/13} {2.3f} +\ProvidesExplFile {siunitx-version-1.cfg} {2011/10/06} {2.3g} {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 ed63a103f15..cb6c2de406d 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} {2011/09/13} {2.3f} +\ProvidesExplPackage {siunitx} {2011/10/06} {2.3g} {A comprehensive (SI) units package} \cs_if_exist:NTF \msg_new:nnnn { @@ -399,6 +399,7 @@ \siunitx_set_text_fam:n { tt } } \tl_new:N \l_siunitx_detect_inline_weight_tl +\tl_new:N \l_siunitx_detect_inline_family_tl \keys_define:nn { siunitx } { detect-all .choice:, detect-all .default:n = true, @@ -1992,8 +1993,14 @@ } } } -\cs_new_protected_nopar:Npn - \siunitx_number_process_fixed_large:nnn #1#2#3 { +\cs_new_protected_nopar:Npn \siunitx_number_process_fixed_large:nnn #1 + { + \int_compare:nNnTF {#1} = \c_zero + { \siunitx_number_process_fixed_large_aux:nnn { } } + { \siunitx_number_process_fixed_large_aux:nnn {#1} } + } +\cs_new_protected_nopar:Npn \siunitx_number_process_fixed_large_aux:nnn #1#2#3 + { \cs_set_protected_nopar:Npn \siunitx_number_process_fixed_large_aux:w ##1##2 \q_stop { @@ -2011,7 +2018,7 @@ } } { - \int_compare:nNnTF {#1} = { 0 } + \int_compare:nNnTF { 0 #1 } = { 0 } { \siunitx_number_process_fixed_aux_ii:nnn {##1} {##2} { #3 - 1 } -- cgit v1.2.3