From 3ca836374197b81d2a58b387b7c998b52befb5a2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 7 Jul 2021 20:56:31 +0000 Subject: siunitx (7jul21) git-svn-id: svn://tug.org/texlive/trunk@59867 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md | 8 +++- .../texmf-dist/doc/latex/siunitx/siunitx-code.pdf | Bin 1493556 -> 1497392 bytes Master/texmf-dist/doc/latex/siunitx/siunitx.pdf | Bin 635018 -> 635531 bytes .../source/latex/siunitx/siunitx-emulation.dtx | 49 +++++++++++++++++++++ Master/texmf-dist/source/latex/siunitx/siunitx.dtx | 2 +- Master/texmf-dist/source/latex/siunitx/siunitx.tex | 3 ++ Master/texmf-dist/tex/latex/siunitx/siunitx.sty | 38 +++++++++++++++- 7 files changed, 97 insertions(+), 3 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md b/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md index 829db2c92a5..d02f5415818 100644 --- a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md +++ b/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md @@ -7,6 +7,11 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to ## [Unreleased] +## [v3.0.19] + +### Fixed +- Emulation for `\SendSettingsToPgf` (issue #501) + ## [v3.0.18] ### Fixed @@ -1420,7 +1425,8 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to ### Added - First public testing release (as `si`) -[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.18...HEAD +[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.19...HEAD +[v3.0.19]: https://github.com/josephwright/siunitx/compare/v3.0.18...v3.0.19 [v3.0.18]: https://github.com/josephwright/siunitx/compare/v3.0.17...v3.0.18 [v3.0.17]: https://github.com/josephwright/siunitx/compare/v3.0.16...v3.0.17 [v3.0.16]: https://github.com/josephwright/siunitx/compare/v3.0.15...v3.0.16 diff --git a/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf index ed17e84c1c8..92e8cf9837f 100644 Binary files a/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf and b/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf differ diff --git a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf index 57e3ffb45ed..7ffe0267414 100644 Binary files a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf and b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf differ 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} % % \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}} 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 } } -- cgit v1.2.3