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/source/latex/siunitx/siunitx-emulation.dtx | |
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/source/latex/siunitx/siunitx-emulation.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx index 8e11abda621..92e3671852a 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx @@ -1011,6 +1011,8 @@ % \end{macrocode} % \end{macro} % +% \subsection{Unit commands} +% % \begin{macro}{\celsius} % Deprecated but should work. % \begin{macrocode} @@ -1090,6 +1092,53 @@ \q_recursion_stop % \end{macrocode} % +% \subsection{Communication with \pkg{pgf}} +% +% \begin{macrocode} +%<@@=siunitx_number> +% \end{macrocode} +% +% \begin{macro}{\SendSettingsToPgf} +% \begin{macrocode} +\NewDocumentCommand \SendSettingsToPgf { } + { + \use:x + { + \exp_not:N \pgfqkeys { /pgf/number~format } + { + \str_if_eq:VnT \l_@@_round_mode_tl { figures } + { + fixed , + fixed~zerofill = true , + } + precision = \int_use:N \l_@@_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_@@_group_separator_tl { , } + { \exp_not:N \mathord } + { \use:n } + { \exp_not:V \l_@@_group_separator_tl } , + min~exponent~for~1000~sep = + \int_eval:n { \l_@@_group_minimum_int - 1 } , + \bool_lazy_or:nnF + { \l_@@_group_decimal_bool } + { \l_@@_group_integer_bool } + { min~exponent~for~1000~sep = 999 , } + showpos = + \bool_if:NTF \l_@@_implicit_plus_bool + { true } + { false } + } + } + } +% \end{macrocode} +% \end{macro} +% % \begin{macrocode} %</interfaces> % \end{macrocode} |