diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx/siunitx.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/siunitx/siunitx.sty | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty index f347814fe6f..b4a626dd9c1 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} {2010/08/24} {2.0t} +\ProvidesExplPackage {siunitx} {2010/09/14} {2.0u} {A comprehensive (SI) units package} \msg_set:nnnn { siunitx } { incompatible-package } { Package~'#1'~incompatible. } @@ -2849,7 +2849,9 @@ } \cs_new_protected_nopar:Npn \siunitx_number_output_single_aux: { \siunitx_unit_output_pre_print: - \siunitx_print:nV { number } \l_siunitx_number_out_tl + \quark_if_no_value:NTF \l_siunitx_number_out_tl + { \tl_clear:N \l_siunitx_number_unit_separator_tl } + { \siunitx_print:nV { number } \l_siunitx_number_out_tl } \siunitx_unit_output_print: } \bool_new:N \l_siunitx_angle_degree_space_bool @@ -3240,7 +3242,7 @@ } } \cs_new_protected:Npn \siunitx_unit_first_token:n #1 { - \exp_after:wN \token_to_str:N \tl_head_i:w #1 \q_nil + \exp_after:wN \token_to_str:N \tl_head:w #1 \q_nil } \cs_new:cpn { siunitx_ \token_to_str:N \per _literal:w } { / } \cs_new_protected:cpn { siunitx_ \token_to_str:N \per _function:w } { @@ -3366,6 +3368,9 @@ \AtBeginDocument { \cs_if_eq:NNT \color \use_none:n { \cs_set_protected:Npn \color #1 { } } + \cs_set_nopar:Npn \siunitx_tmp:w #1 { } + \cs_if_eq:NNT \color \siunitx_tmp:w + { \cs_set_protected:Npn \color #1 { } } \tl_map_function:nN { \bar \color \ng \pm } \siunitx_protect_symbols:N } |