summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx/siunitx.sty')
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty15
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 }