diff options
author | Karl Berry <karl@freefriends.org> | 2021-07-07 20:56:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-07-07 20:56:31 +0000 |
commit | 3ca836374197b81d2a58b387b7c998b52befb5a2 (patch) | |
tree | 6ad24da0b8b648f4f8ae3f6348bad2f7f1587775 /Master/texmf-dist/tex/latex/siunitx/siunitx.sty | |
parent | 15bae662472b5fa928adc54d03c0003ae32f981d (diff) |
siunitx (7jul21)
git-svn-id: svn://tug.org/texlive/trunk@59867 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx/siunitx.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/siunitx/siunitx.sty | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty index 6faa306cf73..79af4630af0 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-07-04} {3.0.18} +\ProvidesExplPackage {siunitx} {2021-07-06} {3.0.19} {A comprehensive (SI) units package} \msg_new:nnnn { siunitx } { incompatible-package } { Package~'#1'~incompatible. } @@ -7300,6 +7300,42 @@ } \q_recursion_tail { } \q_recursion_stop +\NewDocumentCommand \SendSettingsToPgf { } + { + \use:x + { + \exp_not:N \pgfqkeys { /pgf/number~format } + { + \str_if_eq:VnT \l__siunitx_number_round_mode_tl { figures } + { + fixed , + fixed~zerofill = true , + } + precision = \int_use:N \l__siunitx_number_round_precision_int , + set~decimal~separator = + \str_if_eq:VnTF \l_siunitx_number_output_decimal_tl { , } + { \exp_not:N \mathord } + { \use:n } + { \exp_not:V \l_siunitx_number_output_decimal_tl } , + set~thousands~separator = + set~decimal~separator = + \str_if_eq:VnTF \l__siunitx_number_group_separator_tl { , } + { \exp_not:N \mathord } + { \use:n } + { \exp_not:V \l__siunitx_number_group_separator_tl } , + min~exponent~for~1000~sep = + \int_eval:n { \l__siunitx_number_group_minimum_int - 1 } , + \bool_lazy_or:nnF + { \l__siunitx_number_group_decimal_bool } + { \l__siunitx_number_group_integer_bool } + { min~exponent~for~1000~sep = 999 , } + showpos = + \bool_if:NTF \l__siunitx_number_implicit_plus_bool + { true } + { false } + } + } + } \IfFormatAtLeastTF { 2020-10-01 } { } { \RequirePackage { xparse } } |