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 | |
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')
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx | 49 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx.dtx | 2 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx.tex | 3 |
3 files changed, 53 insertions, 1 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} diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx index 52da6d7b36f..7111f983922 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx @@ -121,7 +121,7 @@ % % Identify the package and give the over all version information. % \begin{macrocode} -\ProvidesExplPackage {siunitx} {2021-07-04} {3.0.18} +\ProvidesExplPackage {siunitx} {2021-07-06} {3.0.19} {A comprehensive (SI) units package} % \end{macrocode} % diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.tex b/Master/texmf-dist/source/latex/siunitx/siunitx.tex index 2be2483297c..a97ab0bc58f 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.tex +++ b/Master/texmf-dist/source/latex/siunitx/siunitx.tex @@ -2949,6 +2949,9 @@ has been removed. However, the approach described in Section~\ref{sec:hint:config} may be used to achieve the same effect with the additions more clearly shown in document sources. +The command \cs{SendSettingsToPgf} is deprecated, and should be replaced +simply by setting the appropriate \cs{pgfkeys} in parallel to \cs{sisetup}. + \section{Unit changes made by \acro{BIPM}% \label{sec:BIPM8}} |