texlive[65207] Master/texmf-dist: siunitx (5dec22)

commits+karl at tug.org commits+karl at tug.org
Mon Dec 5 22:25:15 CET 2022


Revision: 65207
          http://tug.org/svn/texlive?view=revision&revision=65207
Author:   karl
Date:     2022-12-05 22:25:15 +0100 (Mon, 05 Dec 2022)
Log Message:
-----------
siunitx (5dec22)

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-number.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
    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	2022-12-05 21:24:57 UTC (rev 65206)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2022-12-05 21:25:15 UTC (rev 65207)
@@ -7,11 +7,18 @@
 
 ## [Unreleased]
 
+## [v3.1.11] - 2022-12-05
+
+### Fixed
+- Alignment of exponents without mantissa values (see issue
+  [\#633](https://github.com/josephwright/siunitx/issues/633))
+
 ## [v3.1.10] - 2022-11-16
 
 ### Fixed
 - Rounding to uncertainty in some cases (see issue
   [\#627](https://github.com/josephwright/siunitx/issues/627))
+
 ## [v3.1.9] - 2022-10-23
 
 ### Added
@@ -1831,7 +1838,8 @@
 ### Added
 - First public testing release (as `si`)
 
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.1.10...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.1.11...HEAD
+[v3.1.11]: https://github.com/josephwright/siunitx/compare/v3.1.10...v3.1.11
 [v3.1.10]: https://github.com/josephwright/siunitx/compare/v3.1.9...v3.1.10
 [v3.1.9]: https://github.com/josephwright/siunitx/compare/v3.1.8...v3.1.9
 [v3.1.8]: https://github.com/josephwright/siunitx/compare/v3.1.7...v3.1.8

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-number.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx	2022-12-05 21:24:57 UTC (rev 65206)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx	2022-12-05 21:25:15 UTC (rev 65207)
@@ -3081,7 +3081,7 @@
 % \begin{macro}[EXP]{\@@_round_uncertainty_check:Nnnnw}
 % \begin{macro}[EXP]{\@@_round_uncertainty_aux:nnn}
 % \begin{macro}[EXP]{\@@_round_uncertainty:nnnn}
-% \begin{macro}[EXP]{\@@_round_uncertainty:nnnnn}
+% \begin{macro}[EXP]{\@@_round_uncertainty:nnnnnn}
 % \begin{macro}[EXP]
 %   {
 %     \@@_round_uncertainty_simple:nnnnnn ,

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx	2022-12-05 21:24:57 UTC (rev 65206)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx	2022-12-05 21:25:15 UTC (rev 65207)
@@ -1468,7 +1468,9 @@
 %    \end{macrocode}
 %   Finally, we get to the exponent part: the multiplication symbol is
 %   |#1| and the number itself is |#2|. The code is almost the same as for
-%   uncertainties, which allows a shared auxiliary to be used.
+%   uncertainties, which allows a shared auxiliary to be used. As |#3| could
+%   be entirely empty, there needs to be a bit of work to ensure alignment
+%   is retained in all cases.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_print_format_auxvii:w
   #1 \q_nil #2 \q_mark #3 \q_nil #4 \q_stop
@@ -1477,7 +1479,17 @@
       {
         \@@_print_format_box:Nn \l_@@_tmp_box { { } #1#2 }
         \dim_set:Nn \l_@@_tmp_dim { \box_wd:N \l_@@_tmp_box }
-        \@@_print_format_box:Nn \l_@@_tmp_box { { } #3#4 }
+        \@@_print_format_box:Nn \l_@@_tmp_box
+          {
+            \bool_lazy_and:nnT
+              { \l_@@_align_exponent_bool }
+              { \tl_if_blank_p:n {#3} }
+              {
+                \@@_print_format_box:Nn \l_@@_tmp_box { { } #1 { } }
+                \@@_skip:n { \box_wd:N \l_@@_tmp_box }
+              }
+            { } #3#4
+          }
         \@@_print_format_after:N \l_@@_align_exponent_bool
       }
   }

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2022-12-05 21:24:57 UTC (rev 65206)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2022-12-05 21:25:15 UTC (rev 65207)
@@ -121,7 +121,7 @@
 %
 % Identify the package and give the over all version information.
 %    \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2022-11-16} {3.1.10}
+\ProvidesExplPackage {siunitx} {2022-12-05} {3.1.11}
   {A comprehensive (SI) units package}
 %    \end{macrocode}
 %

Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2022-12-05 21:24:57 UTC (rev 65206)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2022-12-05 21:25:15 UTC (rev 65207)
@@ -42,7 +42,7 @@
       }%
     \endinput
   }%
-\ProvidesExplPackage {siunitx} {2022-11-16} {3.1.10}
+\ProvidesExplPackage {siunitx} {2022-12-05} {3.1.11}
   {A comprehensive (SI) units package}
 \msg_new:nnnn { siunitx } { incompatible-package }
   { Package~'#1'~incompatible. }
@@ -5581,7 +5581,17 @@
       {
         \__siunitx_table_print_format_box:Nn \l__siunitx_table_tmp_box { { } #1#2 }
         \dim_set:Nn \l__siunitx_table_tmp_dim { \box_wd:N \l__siunitx_table_tmp_box }
-        \__siunitx_table_print_format_box:Nn \l__siunitx_table_tmp_box { { } #3#4 }
+        \__siunitx_table_print_format_box:Nn \l__siunitx_table_tmp_box
+          {
+            \bool_lazy_and:nnT
+              { \l__siunitx_table_align_exponent_bool }
+              { \tl_if_blank_p:n {#3} }
+              {
+                \__siunitx_table_print_format_box:Nn \l__siunitx_table_tmp_box { { } #1 { } }
+                \__siunitx_table_skip:n { \box_wd:N \l__siunitx_table_tmp_box }
+              }
+            { } #3#4
+          }
         \__siunitx_table_print_format_after:N \l__siunitx_table_align_exponent_bool
       }
   }



More information about the tex-live-commits mailing list.