texlive[67695] Master/texmf-dist: siunitx (21jul23)
commits+karl at tug.org
commits+karl at tug.org
Fri Jul 21 23:12:04 CEST 2023
Revision: 67695
http://tug.org/svn/texlive?view=revision&revision=67695
Author: karl
Date: 2023-07-21 23:12:04 +0200 (Fri, 21 Jul 2023)
Log Message:
-----------
siunitx (21jul23)
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-quantity.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 2023-07-21 21:11:52 UTC (rev 67694)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md 2023-07-21 21:12:04 UTC (rev 67695)
@@ -7,6 +7,13 @@
## [Unreleased]
+## [v3.2.7] - 2023-07-20
+
+### Fixed
+- Spacing in quantities when e.g. `exponent-mode = {{\times}}`
+ is used (see issue
+ [\#672](https://github.com/josephwright/siunitx/issues/672))
+
## [v3.2.6] - 2023-06-12
### Fixed
@@ -1907,7 +1914,8 @@
### Added
- First public testing release (as `si`)
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.2.6...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.2.7...HEAD
+[v3.2.7]: https://github.com/josephwright/siunitx/compare/v3.2.6...v3.2.7
[v3.2.6]: https://github.com/josephwright/siunitx/compare/v3.2.5...v3.2.6
[v3.2.5]: https://github.com/josephwright/siunitx/compare/v3.2.4...v3.2.5
[v3.2.4]: https://github.com/josephwright/siunitx/compare/v3.2.3...v3.2.4
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-quantity.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx 2023-07-21 21:11:52 UTC (rev 67694)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx 2023-07-21 21:12:04 UTC (rev 67695)
@@ -221,6 +221,7 @@
% \begin{macro}{\@@_parsed_combine-exponent:n, \@@_parsed_combine-exponent:n, \@@_parsed_input:n}
% \begin{macro}{\@@_parsed_aux:w}
% \begin{macro}{\@@_parsed_aux:nnnw}
+% \begin{macro}{\@@_parsed_aux:nnnnw}
% \begin{macro}{\@@_parsed_aux:nnnn}
% \begin{macro}{\@@_parsed_aux:nnn}
% For quantities, there is bit to do to combine things. The first question is
@@ -298,23 +299,25 @@
#1 \q_nil #2 \q_nil #3 \q_nil #4 \q_nil #5 \q_nil #6 \q_nil #7 \q_nil
#8 \q_nil #9 \q_stop
{ \@@_parsed_aux:nnnw {#1} {#2#3#4#5} {#6#7#8} #9 \q_stop }
-\cs_new_protected:Npn \@@_parsed_aux:nnnw
- #1#2#3 #4 \q_nil #5 \q_nil #6 \q_stop
- { \@@_parsed_aux:nnnn {#1} {#2} {#3#4} {#5#6} }
+\cs_new_protected:Npn \@@_parsed_aux:nnnw #1#2#3 #4 \q_nil
+ { \@@_parsed_aux:nnnnw {#1} {#2} {#3} {#4} ? }
+\cs_new_protected:Npn \@@_parsed_aux:nnnnw
+ #1#2#3#4 #5 \q_nil #6 \q_stop
+ { \exp_args:No \@@_parsed_aux:nnnn { \use_none:n #5#6 } {#1} {#2} {#3#4} }
\cs_new_protected:Npn \@@_parsed_aux:nnnn #1#2#3#4
{
- \tl_if_blank:nTF {#3}
- { \siunitx_quantity_print:nV {#1#2#4} \l_@@_unit_tl }
+ \tl_if_blank:nTF {#4}
+ { \siunitx_quantity_print:nV {#2#3#1} \l_@@_unit_tl }
{
\bool_if:NTF \l_@@_uncert_bracket_bool
{
\siunitx_quantity_print:xV
{
- \exp_not:n {#1}
+ \exp_not:n {#2}
\exp_not:V \l_@@_bracket_open_tl
- \exp_not:n {#2#3}
+ \exp_not:n {#3#4}
\exp_not:V \l_@@_bracket_close_tl
- \exp_not:n {#4}
+ \exp_not:n {#1}
}
\l_@@_unit_tl
}
@@ -321,11 +324,11 @@
{
\bool_if:NTF \l_@@_uncert_repeat_bool
{
- \tl_if_blank:nTF {#4}
- { \@@_parsed_aux:nnn {#1#2} {#3} { } }
- { \@@_parsed_aux:nnn {#1#2} {#3} { { } #4 } }
+ \tl_if_blank:nTF {#1}
+ { \@@_parsed_aux:nnn {#2#3} {#4} { } }
+ { \@@_parsed_aux:nnn {#2#3} {#4} { { } #1 } }
}
- { \siunitx_quantity_print:nV {#1#2#3#4} \l_@@_unit_tl }
+ { \siunitx_quantity_print:nV {#2#3#4#1} \l_@@_unit_tl }
}
}
}
@@ -348,6 +351,7 @@
% \end{macro}
% \end{macro}
% \end{macro}
+% \end{macro}
%
% \begin{macro}{\@@_extract_exp:nNN}
% \begin{macro}{\@@_extract_exp:nnnnnnnNN}
@@ -368,8 +372,8 @@
%
% \begin{macro}
% {
-% \siunitx_quanity_print:nn, \siunitx_quanity_print:nV,
-% \siunitx_quanity_print:VV, \siunitx_quanity_print:xV
+% \siunitx_quantity_print:nn, \siunitx_quantity_print:nV,
+% \siunitx_quantity_print:VV, \siunitx_quantity_print:xV
% }
% For printing a single part of a quantity. This is needed for compound
% quantities and so is public: that's also the reason for passing both
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2023-07-21 21:11:52 UTC (rev 67694)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2023-07-21 21:12:04 UTC (rev 67695)
@@ -122,7 +122,7 @@
%
% Identify the package and give the over all version information.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2023-06-12} {3.2.6}
+\ProvidesExplPackage {siunitx} {2023-07-20} {3.2.7}
{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 2023-07-21 21:11:52 UTC (rev 67694)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex 2023-07-21 21:12:04 UTC (rev 67695)
@@ -635,9 +635,9 @@
Prefix & Command & Symbol & \multicolumn{1}{l@{}}{Power} \\
\midrule
\DescribePrefix{quecto} & -30 &
- \DescribePrefix{deca} & 1 \\
+ \DescribePrefix{deca} & 1 \\
\DescribePrefix{ronto} & -27 &
- \DescribePrefix{hecto} & 2 \\
+ \DescribePrefix{hecto} & 2 \\
\DescribePrefix{yocto} & -24 &
\DescribePrefix{kilo} & 3 \\
\DescribePrefix{atto} & -18 &
@@ -1497,7 +1497,7 @@
\num[exponent-mode = fixed, fixed-exponent = 0]{1.23e4}
\end{LaTeXdemo}
\DescribeOption{exponent-thresholds}
-When the \opt{exponent-mode} is set to \meta{threshold}, values outside of a
+When the \opt{exponent-mode} is set to \opt{threshold}, values outside of a
threshold range for the exponent are always printed in scientific form. Within
the threshold, they are printed as-given in the input: typically this would be
without an exponent. The threshold range itself is controlled by
@@ -1524,7 +1524,7 @@
1 & 1 & 1 \\
12 & 12 & 12 \\
123 & 123 & 123 \\
- 1234 & 1234 & 1234 \\
+ 1234 & 1234 & 1234 \\
\bottomrule
\end{tabular}
\end{table}
Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2023-07-21 21:11:52 UTC (rev 67694)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2023-07-21 21:12:04 UTC (rev 67695)
@@ -42,7 +42,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {siunitx} {2023-06-12} {3.2.6}
+\ProvidesExplPackage {siunitx} {2023-07-20} {3.2.7}
{A comprehensive (SI) units package}
\msg_new:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -7233,23 +7233,25 @@
#1 \q_nil #2 \q_nil #3 \q_nil #4 \q_nil #5 \q_nil #6 \q_nil #7 \q_nil
#8 \q_nil #9 \q_stop
{ \__siunitx_quantity_parsed_aux:nnnw {#1} {#2#3#4#5} {#6#7#8} #9 \q_stop }
-\cs_new_protected:Npn \__siunitx_quantity_parsed_aux:nnnw
- #1#2#3 #4 \q_nil #5 \q_nil #6 \q_stop
- { \__siunitx_quantity_parsed_aux:nnnn {#1} {#2} {#3#4} {#5#6} }
+\cs_new_protected:Npn \__siunitx_quantity_parsed_aux:nnnw #1#2#3 #4 \q_nil
+ { \__siunitx_quantity_parsed_aux:nnnnw {#1} {#2} {#3} {#4} ? }
+\cs_new_protected:Npn \__siunitx_quantity_parsed_aux:nnnnw
+ #1#2#3#4 #5 \q_nil #6 \q_stop
+ { \exp_args:No \__siunitx_quantity_parsed_aux:nnnn { \use_none:n #5#6 } {#1} {#2} {#3#4} }
\cs_new_protected:Npn \__siunitx_quantity_parsed_aux:nnnn #1#2#3#4
{
- \tl_if_blank:nTF {#3}
- { \siunitx_quantity_print:nV {#1#2#4} \l__siunitx_quantity_unit_tl }
+ \tl_if_blank:nTF {#4}
+ { \siunitx_quantity_print:nV {#2#3#1} \l__siunitx_quantity_unit_tl }
{
\bool_if:NTF \l__siunitx_quantity_uncert_bracket_bool
{
\siunitx_quantity_print:xV
{
- \exp_not:n {#1}
+ \exp_not:n {#2}
\exp_not:V \l__siunitx_quantity_bracket_open_tl
- \exp_not:n {#2#3}
+ \exp_not:n {#3#4}
\exp_not:V \l__siunitx_quantity_bracket_close_tl
- \exp_not:n {#4}
+ \exp_not:n {#1}
}
\l__siunitx_quantity_unit_tl
}
@@ -7256,11 +7258,11 @@
{
\bool_if:NTF \l__siunitx_quantity_uncert_repeat_bool
{
- \tl_if_blank:nTF {#4}
- { \__siunitx_quantity_parsed_aux:nnn {#1#2} {#3} { } }
- { \__siunitx_quantity_parsed_aux:nnn {#1#2} {#3} { { } #4 } }
+ \tl_if_blank:nTF {#1}
+ { \__siunitx_quantity_parsed_aux:nnn {#2#3} {#4} { } }
+ { \__siunitx_quantity_parsed_aux:nnn {#2#3} {#4} { { } #1 } }
}
- { \siunitx_quantity_print:nV {#1#2#3#4} \l__siunitx_quantity_unit_tl }
+ { \siunitx_quantity_print:nV {#2#3#4#1} \l__siunitx_quantity_unit_tl }
}
}
}
More information about the tex-live-commits
mailing list.