diff options
author | Karl Berry <karl@freefriends.org> | 2022-10-23 20:37:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-10-23 20:37:22 +0000 |
commit | 0542ff6a3f0a805ae45b77123cd1522e9de358ee (patch) | |
tree | ce79e87a0f96c3667598a079a04a02c1c0895f8c /Master/texmf-dist/tex/latex/siunitx | |
parent | 3aaee7847c4dcd77ffe138c8121576f18c1394bd (diff) |
siunitx (23oct22)
git-svn-id: svn://tug.org/texlive/trunk@64791 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 | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty index 4b86b203300..35f53f0b85b 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} {2022-10-04} {3.1.8} +\ProvidesExplPackage {siunitx} {2022-10-23} {3.1.9} {A comprehensive (SI) units package} \msg_new:nnnn { siunitx } { incompatible-package } { Package~'#1'~incompatible. } @@ -404,7 +404,9 @@ input-complex-root .tl_set:N = \l__siunitx_complex_input_root_tl , output-complex-root .tl_set:N = - \l__siunitx_complex_output_root_tl + \l__siunitx_complex_output_root_tl , + print-complex-unity .bool_set:N = + \l__siunitx_complex_print_unity_bool } \cs_new_protected:Npn \__siunitx_complex_parse:nNN #1#2#3 { @@ -815,14 +817,7 @@ { \tl_if_empty:NF \l__siunitx_complex_real_tl { + } } { \exp_not:n {#2} } } - \tl_if_blank:nTF {#4} - { - \str_if_eq:nnTF {#3} { 1 } - { { } { } } - { \exp_not:n { {#3} {#4} } } - } - { \exp_not:n { {#3} {#4} } } - \exp_not:n { {#5} {#6} {#7} } + \exp_not:n { {#3} {#4} {#5} {#6} {#7} } } } \cs_new_protected:Npn \__siunitx_complex_extract_exponent:w @@ -830,9 +825,12 @@ \q_nil #9 \q_stop { \tl_set:Nn \l__siunitx_complex_sign_tl {#1#2} - \bool_lazy_and:nnTF - { \str_if_eq_p:nn {#3} { 1 } } - { \tl_if_blank_p:n {#5} } + \bool_lazy_all:nTF + { + { ! \l__siunitx_complex_print_unity_bool } + { \str_if_eq_p:nn {#3} { 1 } } + { \tl_if_blank_p:n {#5} } + } { \__siunitx_complex_extract_exponent_aux:nw {#6#7#8} } { \__siunitx_complex_extract_exponent_aux:nw {#3#4#5#6#7#8} } #9 \q_stop @@ -1043,13 +1041,14 @@ } \keys_set:nn { siunitx } { - complex-angle-unit = degrees , - complex-mode = input , - complex-root-position = after-number , - complex-symbol-angle = \angle , - complex-symbol-degree = \degree , - input-complex-root = ij , - output-complex-root = \mathrm { i } + complex-angle-unit = degrees , + complex-mode = input , + complex-root-position = after-number , + complex-symbol-angle = \angle , + complex-symbol-degree = \degree , + input-complex-root = ij , + output-complex-root = \mathrm { i } , + print-complex-unity = false } \cs_generate_variant:Nn \keys_set:nn { nx } \fp_new:N \l__siunitx_compound_tmp_fp |