diff options
author | Karl Berry <karl@freefriends.org> | 2011-10-07 23:16:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-10-07 23:16:33 +0000 |
commit | a04931aaec1f922807f83ac7a7e3498ad54c0cb7 (patch) | |
tree | b3d70c8bc94a3aef3518c0f301d888283326d082 /Master/texmf-dist/tex/latex/siunitx/siunitx.sty | |
parent | d0126365e4a0fb2f190068a374afe6b791b74c8c (diff) |
siunitx 2.3g (6oct11)
git-svn-id: svn://tug.org/texlive/trunk@24235 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx/siunitx.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/siunitx/siunitx.sty | 15 |
1 files changed, 11 insertions, 4 deletions
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 } |