diff options
author | Karl Berry <karl@freefriends.org> | 2021-10-27 20:13:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-10-27 20:13:50 +0000 |
commit | 02350afc89e6f1f770c8d5804c571b1815a44c7a (patch) | |
tree | 3cfc991254e2a796412c8c3440f66d9518e891f8 /Master/texmf-dist/tex/latex/siunitx | |
parent | d2a5e418cf3d5b1803b3f39c7360a07bf20c9fb7 (diff) |
siunitx (27oct21)
git-svn-id: svn://tug.org/texlive/trunk@60878 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx')
-rw-r--r-- | Master/texmf-dist/tex/latex/siunitx/siunitx.sty | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty index 2b61b73a268..d01d2352ae6 100644 --- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty +++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty @@ -42,7 +42,7 @@ }% \endinput }% -\ProvidesExplPackage {siunitx} {2021-10-15} {3.0.33} +\ProvidesExplPackage {siunitx} {2021-10-26} {3.0.34} {A comprehensive (SI) units package} \msg_new:nnnn { siunitx } { incompatible-package } { Package~'#1'~incompatible. } @@ -354,6 +354,7 @@ fill-angle-seconds = false , number-angle-product = } +\fp_new:N \l__siunitx_complex_tmp_fp \tl_new:N \l__siunitx_complex_tmp_tl \tl_new:N \l__siunitx_complex_input_tl \tl_new:N \l__siunitx_complex_comparator_tl @@ -782,6 +783,8 @@ \siunitx_number_process:NN \l__siunitx_complex_img_tl \l__siunitx_complex_img_tl \fp_set:Nn \l__siunitx_complex_tmp_fp { \exp_after:wN \__siunitx_complex_extract_exp:nnnnnnn \l__siunitx_complex_img_tl } + \__siunitx_complex_drop_exp:N \l__siunitx_complex_real_tl + \__siunitx_complex_drop_exp:N \l__siunitx_complex_img_tl \siunitx_unit_format_combine_exponent:nnN {#1} \l__siunitx_complex_tmp_fp \l__siunitx_complex_unit_tl } @@ -810,6 +813,10 @@ \siunitx_unit_format:nN {#1} \l__siunitx_complex_unit_tl } \cs_new:Npn \__siunitx_complex_extract_exp:nnnnnnn #1#2#3#4#5#6#7 { #6#7 } +\cs_new_protected:Npn \__siunitx_complex_drop_exp:N #1 + { \exp_after:wN \__siunitx_complex_drop_exp:nnnnnnnN #1 #1 } +\cs_new_protected:Npn \__siunitx_complex_drop_exp:nnnnnnnN #1#2#3#4#5#6#7#8 + { \tl_set:Nn #8 { {#1} {#2} {#3} {#4} {#5} { } { 0 } } } \msg_new:nnnn { siunitx } { invalid-complex-number } { Invalid~complex-number~'#1'. } { @@ -6386,7 +6393,7 @@ { \group_end: } \__siunitx_symbol_if_replace:NnT \ohm { "03A9 } { - \tl_set:Nx \l__siunitx_symbol_tmp_tl + \tl_set:Nx \l__siunitx_symbol_tmpa_tl { \cs_if_exist:NTF \upOmega { \exp_not:N \upOmega } @@ -6397,7 +6404,7 @@ \@ifpackageloaded { fourier } { \exp_not:N \ensuremath - { \exp_not:V \l__siunitx_symbol_tmp_tl } + { \exp_not:V \l__siunitx_symbol_tmpa_tl } } { \exp_not:N \ifmmode @@ -6406,10 +6413,10 @@ \exp_not:N \text { \exp_not:N \ensuremath - { \exp_not:V \l__siunitx_symbol_tmp_tl } + { \exp_not:V \l__siunitx_symbol_tmpa_tl } } } - { \exp_not:V \l__siunitx_symbol_tmp_tl } + { \exp_not:V \l__siunitx_symbol_tmpa_tl } \exp_not:N \else \exp_not:N \text { |