diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-31 20:24:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-31 20:24:44 +0000 |
commit | 43f5ef960aa5e3a6ed8845d7577deab29d0baff4 (patch) | |
tree | b731db3e3c4ba2ecf34c2df5d1a4c2e6733cb850 /Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx | |
parent | b48bb6a909ebbc5a1af3a01a6fb187e8770e799c (diff) |
siunitx (31may21)
git-svn-id: svn://tug.org/texlive/trunk@59410 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx index cfbff37d9c9..070b9c5e9d5 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx @@ -3127,13 +3127,9 @@ % \begin{macrocode} \cs_new:Npn \@@_output_integer:nnn #1#2#3 { - \bool_lazy_all:nF - { - { \str_if_eq_p:nn {#1} { 1 } } - { \tl_if_blank_p:n {#2} } - { ! \str_if_eq_p:nn {#3} { 0 } } - { ! \l_@@_unity_mantissa_bool } - } + \bool_lazy_or:nnT + { \l_@@_unity_mantissa_bool } + { ! \str_if_eq_p:nn { #1 . #2 } { 1. } } { \@@_output_digits:nn { integer } {#1} } } \cs_new:Npn \@@_output_decimal:nn #1#2 @@ -3389,10 +3385,9 @@ } \cs_new:Npn \@@_output_exponent_auxi:nnnn #1#2#3#4 { - \bool_lazy_and:nnTF - { \str_if_eq_p:nn {#3} { 1. } } - { ! \l_@@_unity_mantissa_bool } - { \exp_not:n {#4} } + \bool_lazy_or:nnTF + { \l_@@_unity_mantissa_bool } + { ! \str_if_eq_p:nn {#3} { 1. } } { \bool_if:NTF \l_@@_tight_bool { \exp_not:N \mathord } @@ -3400,6 +3395,7 @@ { \exp_not:V \l_@@_exponent_product_tl } \exp_not:n {#4} } + { \exp_not:n {#4} } \exp_not:V \l_@@_exponent_base_tl ^ { \@@_output_exponent_auxiii:nn {#1} {#2} } |