diff options
author | Norbert Preining <norbert@preining.info> | 2021-06-23 03:01:05 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-06-23 03:01:05 +0000 |
commit | a809a190ff669feb11cb64db915b763abd0bed81 (patch) | |
tree | 6794c6d439e4e4afe002c5230493427c330b959e /macros/latex/contrib/siunitx/siunitx-complex.dtx | |
parent | 2a49c67eee870febe71143a093f3c304e0033153 (diff) |
CTAN sync 202106230301
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-complex.dtx')
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-complex.dtx | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx-complex.dtx b/macros/latex/contrib/siunitx/siunitx-complex.dtx index ca4262bdce..a1783bf8c0 100644 --- a/macros/latex/contrib/siunitx/siunitx-complex.dtx +++ b/macros/latex/contrib/siunitx/siunitx-complex.dtx @@ -648,9 +648,20 @@ \exp_after:wN \@@_extract_exponent:w \l_@@_tmp_tl \q_stop \tl_set:Nx \l_@@_tmp_tl { - \bool_lazy_and:nnTF - { \l_siunitx_number_bracket_ambiguous_bool } - { ! \tl_if_empty_p:N \l_@@_exp_tl } + \bool_lazy_or:nnTF + { + \bool_lazy_and_p:nn + { \l_siunitx_number_bracket_ambiguous_bool } + { ! \tl_if_empty_p:N \l_@@_exp_tl } + } + { + ! \bool_lazy_any_p:n + { + { \tl_if_blank_p:n {#1} } + { \tl_if_empty_p:N \l_@@_real_tl } + { \tl_if_empty_p:N \l_@@_img_tl } + } + } { \@@_format_bracket:n } { \use:n } { |