texlive[68474] Master/texmf-dist: siunitx (7oct23)

commits+karl at tug.org commits+karl at tug.org
Sat Oct 7 22:15:13 CEST 2023


Revision: 68474
          https://tug.org/svn/texlive?view=revision&revision=68474
Author:   karl
Date:     2023-10-07 22:15:13 +0200 (Sat, 07 Oct 2023)
Log Message:
-----------
siunitx (7oct23)

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-compound.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.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	2023-10-07 20:15:04 UTC (rev 68473)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2023-10-07 20:15:13 UTC (rev 68474)
@@ -7,6 +7,12 @@
 
 ## [Unreleased]
 
+## [v3.3.7] - 2023-10-07
+
+### Fixed
+- Allow for empty exponent when combining exponents (see issue
+  [\#698](https://github.com/josephwright/siunitx/issues/698))
+
 ## [v3.3.6] - 2023-09-01
 
 ### Fixed
@@ -2019,7 +2025,8 @@
 ### Added
 - First public testing release (as `si`)
 
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.3.6...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.3.7...HEAD
+[v3.3.7]: https://github.com/josephwright/siunitx/compare/v3.3.6...v3.3.7
 [v3.3.6]: https://github.com/josephwright/siunitx/compare/v3.3.5...v3.3.6
 [v3.3.5]: https://github.com/josephwright/siunitx/compare/v3.3.4...v3.3.5
 [v3.3.4]: https://github.com/josephwright/siunitx/compare/v3.3.3...v3.3.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-compound.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-compound.dtx	2023-10-07 20:15:04 UTC (rev 68473)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-compound.dtx	2023-10-07 20:15:13 UTC (rev 68474)
@@ -643,7 +643,7 @@
       {
         drop-exponent  = true  ,
         exponent-mode  = fixed ,
-        fixed-exponent = #6#7
+        fixed-exponent = #6 0 #7
       }
   }
 %    \end{macrocode}
@@ -778,7 +778,7 @@
   { \@@_extract_exp:nnnnnnnN #1 #2 }
 \cs_generate_variant:Nn \@@_extract_exp:nN  { V }
 \cs_new_protected:Npn \@@_extract_exp:nnnnnnnN #1#2#3#4#5#6#7#8
-  { \fp_set:Nn #8 {#6#7} }
+  { \fp_set:Nn #8 { #6 0 #7 } }
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx	2023-10-07 20:15:04 UTC (rev 68473)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx	2023-10-07 20:15:13 UTC (rev 68474)
@@ -357,7 +357,8 @@
 % \begin{macro}{\@@_extract_exp:nNN, \@@_extract_exp:VNN}
 % \begin{macro}{\@@_extract_exp:nnnnnnnNN}
 %   To extract the exponent part for a combined prefix, we decompose the value
-%   and remove it.
+%   and remove it. As the exponent part may be entirely empty, we add a filler
+%   zero.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_extract_exp:nNN #1#2#3
   { \@@_extract_exp:nnnnnnnNN #1 #2 #3 }
@@ -364,9 +365,9 @@
 \cs_generate_variant:Nn \@@_extract_exp:nNN { V }
 \cs_new_protected:Npn \@@_extract_exp:nnnnnnnNN #1#2#3#4#5#6#7#8#9
   {
-    \fp_set:Nn #8 {#6#7}
+    \fp_set:Nn #8 { #6 0#7 }
     \tl_set:Nx #9
-      { {#1} {#2} {#3} {#4} {#5} { } { 0 } }
+      { {#1} {#2} {#3} {#4} {#5} { } { } }
   }
 %    \end{macrocode}
 % \end{macro}

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2023-10-07 20:15:04 UTC (rev 68473)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2023-10-07 20:15:13 UTC (rev 68474)
@@ -121,7 +121,7 @@
 %
 % Identify the package and give the over all version information.
 %    \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2023-09-01} {3.3.6}
+\ProvidesExplPackage {siunitx} {2023-10-07} {3.3.7}
   {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	2023-10-07 20:15:04 UTC (rev 68473)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2023-10-07 20:15:13 UTC (rev 68474)
@@ -41,7 +41,7 @@
       }%
     \endinput
   }%
-\ProvidesExplPackage {siunitx} {2023-09-01} {3.3.6}
+\ProvidesExplPackage {siunitx} {2023-10-07} {3.3.7}
   {A comprehensive (SI) units package}
 \msg_new:nnnn { siunitx } { incompatible-package }
   { Package~'#1'~incompatible. }
@@ -4087,7 +4087,7 @@
       {
         drop-exponent  = true  ,
         exponent-mode  = fixed ,
-        fixed-exponent = #6#7
+        fixed-exponent = #6 0 #7
       }
   }
 \cs_new_protected:Npn \__siunitx_compound_parsed:n #1
@@ -4184,7 +4184,7 @@
   { \__siunitx_compound_extract_exp:nnnnnnnN #1 #2 }
 \cs_generate_variant:Nn \__siunitx_compound_extract_exp:nN  { V }
 \cs_new_protected:Npn \__siunitx_compound_extract_exp:nnnnnnnN #1#2#3#4#5#6#7#8
-  { \fp_set:Nn #8 {#6#7} }
+  { \fp_set:Nn #8 { #6 0 #7 } }
 \cs_new_protected:Npn \siunitx_compound_quantity:nn #1#2
   {
     \group_begin:
@@ -7600,9 +7600,9 @@
 \cs_generate_variant:Nn \__siunitx_quantity_extract_exp:nNN { V }
 \cs_new_protected:Npn \__siunitx_quantity_extract_exp:nnnnnnnNN #1#2#3#4#5#6#7#8#9
   {
-    \fp_set:Nn #8 {#6#7}
+    \fp_set:Nn #8 { #6 0#7 }
     \tl_set:Nx #9
-      { {#1} {#2} {#3} {#4} {#5} { } { 0 } }
+      { {#1} {#2} {#3} {#4} {#5} { } { } }
   }
 \cs_new_protected:Npn \siunitx_quantity_print:nn #1#2
   {



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