texlive[68844] Master/texmf-dist: siunitx (14nov23)

commits+karl at tug.org commits+karl at tug.org
Tue Nov 14 22:05:03 CET 2023


Revision: 68844
          https://tug.org/svn/texlive?view=revision&revision=68844
Author:   karl
Date:     2023-11-14 22:05:03 +0100 (Tue, 14 Nov 2023)
Log Message:
-----------
siunitx (14nov23)

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.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-11-14 21:04:52 UTC (rev 68843)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2023-11-14 21:05:03 UTC (rev 68844)
@@ -7,6 +7,12 @@
 
 ## [Unreleased]
 
+## [v3.3.9] - 2023-11-14
+
+### Fixed
+- Rounding of values with no mantissa (see issue
+  [\#704](https://github.com/josephwright/siunitx/issues/704))
+
 ## [v3.3.8] - 2023-11-06
 
 ### Deprecated
@@ -2043,7 +2049,8 @@
 ### Added
 - First public testing release (as `si`)
 
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.3.8...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.3.9...HEAD
+[v3.3.9]: https://github.com/josephwright/siunitx/compare/v3.3.8...v3.3.9
 [v3.3.8]: https://github.com/josephwright/siunitx/compare/v3.3.7...v3.3.8
 [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

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	2023-11-14 21:04:52 UTC (rev 68843)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx	2023-11-14 21:05:03 UTC (rev 68844)
@@ -2772,10 +2772,16 @@
   }
 \cs_new:Npn \@@_round:nnnnnnn #1#2#3#4#5#6#7
   {
-    \str_if_eq:nnTF {#4} { \empty }
-      { \use:c { @@_round_ \l_@@_round_mode_tl :nnnnnnn } {#1} {#2} {#3} { } }
-      { \use:c { @@_round_ \l_@@_round_mode_tl :nnnnnnn } {#1} {#2} {#3} {#4} }
-        {#5} {#6} {#7}
+    \tl_if_blank:nTF { #3#4 }
+      {
+        \exp_not:n { {#1} {#2} { } { } {#5} {#6} {#7} }
+      }
+      {
+        \str_if_eq:nnTF {#4} { \empty }
+          { \use:c { @@_round_ \l_@@_round_mode_tl :nnnnnnn } {#1} {#2} {#3} { } }
+          { \use:c { @@_round_ \l_@@_round_mode_tl :nnnnnnn } {#1} {#2} {#3} {#4} }
+            {#5} {#6} {#7}
+      }
   }
 %    \end{macrocode}
 % \end{macro}

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2023-11-14 21:04:52 UTC (rev 68843)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2023-11-14 21:05:03 UTC (rev 68844)
@@ -121,7 +121,7 @@
 %
 % Identify the package and give the over all version information.
 %    \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2023-11-06} {3.3.8}
+\ProvidesExplPackage {siunitx} {2023-11-14} {3.3.9}
   {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-11-14 21:04:52 UTC (rev 68843)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex	2023-11-14 21:05:03 UTC (rev 68844)
@@ -1046,7 +1046,7 @@
   \begin{table}
     \caption{Detection of surrounding material in an \texttt{S} column.%
       \label{tab:S:extras}}
-    \begin{tabular}{@{}S[color = orange]@{}}
+    \begin{tabular}{@{}S@{}}
     \toprule
       {Some Values} \\
     \midrule

Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2023-11-14 21:04:52 UTC (rev 68843)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2023-11-14 21:05:03 UTC (rev 68844)
@@ -41,7 +41,7 @@
       }%
     \endinput
   }%
-\ProvidesExplPackage {siunitx} {2023-11-06} {3.3.8}
+\ProvidesExplPackage {siunitx} {2023-11-14} {3.3.9}
   {A comprehensive (SI) units package}
 \msg_new:nnnn { siunitx } { incompatible-package }
   { Package~'#1'~incompatible. }
@@ -1350,10 +1350,16 @@
   }
 \cs_new:Npn \__siunitx_number_round:nnnnnnn #1#2#3#4#5#6#7
   {
-    \str_if_eq:nnTF {#4} { \empty }
-      { \use:c { __siunitx_number_round_ \l__siunitx_number_round_mode_tl :nnnnnnn } {#1} {#2} {#3} { } }
-      { \use:c { __siunitx_number_round_ \l__siunitx_number_round_mode_tl :nnnnnnn } {#1} {#2} {#3} {#4} }
-        {#5} {#6} {#7}
+    \tl_if_blank:nTF { #3#4 }
+      {
+        \exp_not:n { {#1} {#2} { } { } {#5} {#6} {#7} }
+      }
+      {
+        \str_if_eq:nnTF {#4} { \empty }
+          { \use:c { __siunitx_number_round_ \l__siunitx_number_round_mode_tl :nnnnnnn } {#1} {#2} {#3} { } }
+          { \use:c { __siunitx_number_round_ \l__siunitx_number_round_mode_tl :nnnnnnn } {#1} {#2} {#3} {#4} }
+            {#5} {#6} {#7}
+      }
   }
 \cs_new:Npn \__siunitx_number_round:nnn #1#2#3
   {



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