diff options
author | Karl Berry <karl@freefriends.org> | 2021-12-04 21:38:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-12-04 21:38:27 +0000 |
commit | 06467b57e8216af43ec7aa54e312dfaa3b630af1 (patch) | |
tree | c8d75ab4951e851cae8716a9fb213719782e67c0 /Master/texmf-dist/tex/latex/siunitx | |
parent | bdd7ee84cb4cb69f0f8cdf3f1971f2f086767a90 (diff) |
siunitx (4dec21)
git-svn-id: svn://tug.org/texlive/trunk@61216 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 | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty index a26cff4d63f..23013ff9ca8 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-11-18} {3.0.36} +\ProvidesExplPackage {siunitx} {2021-12-03} {3.0.37} {A comprehensive (SI) units package} \msg_new:nnnn { siunitx } { incompatible-package } { Package~'#1'~incompatible. } @@ -2481,6 +2481,8 @@ { \bool_if:NT \l__siunitx_number_drop_exponent_bool { + \str_if_eq:VnT \l__siunitx_number_exponent_mode_tl { input } + { \msg_warning:nn { siunitx } { ambiguous-dropped-exponent } } \tl_set:Nx #2 { \exp_after:wN \__siunitx_number_drop_exponent:nnnnnnn #1 } } @@ -3577,6 +3579,12 @@ The~input~'#1'~could~not~be~parsed~as~a~number~following~the~ format~defined~in~module~documentation. } +\msg_new:nnnn { siunitx } { ambiguous-dropped-exponent } + { Potentially~ambiguous~dropping~of~exponent. } + { + The~option~"drop-exponent"~is~active~but~values~do~not~have~an~ + exponent~fixed~by~"exponent-mode".~The~result~could~be~misleading. + } \keys_set:nn { siunitx } { bracket-ambiguous-numbers = true , @@ -7092,10 +7100,19 @@ } , table-omit-exponent .code:n = { - \__siunitx_option_deprecated:nnV - { table-omit-exponent } - { drop-exponent } - \l_keys_value_tl + \msg_info:nnnn { siunitx } { option-deprecated } + { table-omit-exponent } { drop-exponent } + \str_if_eq:VnTF \l_keys_value_tl { true } + { + \keys_set:nn + { siunitx } + { drop-exponent = true , exponent-mode = fixed } + } + { + \keys_set:nn + { siunitx } + { drop-exponent = false } + } } , table-omit-exponent .default:n = true , table-parse-only .code:n = |