texlive[59867] Master/texmf-dist: siunitx (7jul21)
commits+karl at tug.org
commits+karl at tug.org
Wed Jul 7 22:56:31 CEST 2021
Revision: 59867
http://tug.org/svn/texlive?view=revision&revision=59867
Author: karl
Date: 2021-07-07 22:56:31 +0200 (Wed, 07 Jul 2021)
Log Message:
-----------
siunitx (7jul21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
trunk/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
trunk/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx
trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex
trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
Modified: trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md 2021-07-07 20:56:12 UTC (rev 59866)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md 2021-07-07 20:56:31 UTC (rev 59867)
@@ -7,6 +7,11 @@
## [Unreleased]
+## [v3.0.19]
+
+### Fixed
+- Emulation for `\SendSettingsToPgf` (issue #501)
+
## [v3.0.18]
### Fixed
@@ -1420,7 +1425,8 @@
### 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
Modified: trunk/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx 2021-07-07 20:56:12 UTC (rev 59866)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx 2021-07-07 20:56:31 UTC (rev 59867)
@@ -1011,6 +1011,8 @@
% \end{macrocode}
% \end{macro}
%
+% \subsection{Unit commands}
+%
% \begin{macro}{\celsius}
% Deprecated but should work.
% \begin{macrocode}
@@ -1090,7 +1092,54 @@
\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}
%
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2021-07-07 20:56:12 UTC (rev 59866)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2021-07-07 20:56:31 UTC (rev 59867)
@@ -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}
%
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex 2021-07-07 20:56:12 UTC (rev 59866)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex 2021-07-07 20:56:31 UTC (rev 59867)
@@ -2949,6 +2949,9 @@
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}}
Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2021-07-07 20:56:12 UTC (rev 59866)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2021-07-07 20:56:31 UTC (rev 59867)
@@ -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 } }
More information about the tex-live-commits
mailing list.