texlive[65033] Master/texmf-dist: siunitx (16nov22)

commits+karl at tug.org commits+karl at tug.org
Wed Nov 16 22:25:23 CET 2022


Revision: 65033
          http://tug.org/svn/texlive?view=revision&revision=65033
Author:   karl
Date:     2022-11-16 22:25:23 +0100 (Wed, 16 Nov 2022)
Log Message:
-----------
siunitx (16nov22)

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	2022-11-16 21:25:04 UTC (rev 65032)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2022-11-16 21:25:23 UTC (rev 65033)
@@ -7,6 +7,11 @@
 
 ## [Unreleased]
 
+## [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
@@ -1826,7 +1831,8 @@
 ### Added
 - First public testing release (as `si`)
 
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.1.9...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.1.10...HEAD
+[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
 [v3.1.7]: https://github.com/josephwright/siunitx/compare/v3.1.6...v3.1.7

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-11-16 21:25:04 UTC (rev 65032)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx	2022-11-16 21:25:23 UTC (rev 65033)
@@ -3168,9 +3168,9 @@
   {
     \use:e
       {
-        \exp_not:N \@@_round_uncertainty:nnnnn
+        \exp_not:N \@@_round_uncertainty:nnnnnn
           \@@_round:nnn {#1} { } {#4}
-          {#2} {#3} {#1}
+          {#2} {#3} {#1} {#4}
       }
   }
 %    \end{macrocode}
@@ -3179,7 +3179,7 @@
 %   the uncertainty rounded up, which also links to additional treatment. We
 %   therefore split paths here.
 %    \begin{macrocode}
-\cs_new:Npn \@@_round_uncertainty:nnnnn #1#2#3#4#5
+\cs_new:Npn \@@_round_uncertainty:nnnnnn #1#2#3#4#5#6
   {
     \tl_if_blank:nTF {#1}
       {
@@ -3191,7 +3191,7 @@
                   {
                     \tl_if_blank:nTF {#4}
                       { #5 }
-                      { 0 - ( \tl_count:n {#4} - \tl_count:n {#2} - #5 +  1 ) }
+                      { ( \tl_count:n {#6} - \tl_count:n {#4} ) - \tl_count:n {#2} }
                   }
                   { 0 }
               }

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2022-11-16 21:25:04 UTC (rev 65032)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2022-11-16 21:25:23 UTC (rev 65033)
@@ -121,7 +121,7 @@
 %
 % Identify the package and give the over all version information.
 %    \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2022-10-23} {3.1.9}
+\ProvidesExplPackage {siunitx} {2022-11-16} {3.1.10}
   {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	2022-11-16 21:25:04 UTC (rev 65032)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex	2022-11-16 21:25:23 UTC (rev 65033)
@@ -318,7 +318,7 @@
 contents of \meta{number} are automatically formatted. The formatter removes
 both \enquote{soft} (\verb*| |) and \enquote{hard} spaces (|\,| and |~|),
 automatically identifies exponents (as standard marked using |e|, |E|, |d| or
-|D|) and adds the appropriate spacing of large numbers.If required,
+|D|) and adds the appropriate spacing of large numbers. If required,
 a leading zero is added before a decimal marker: both |.|
 and "," are recognised as decimal markers.
 \begin{LaTeXdemo}

Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2022-11-16 21:25:04 UTC (rev 65032)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2022-11-16 21:25:23 UTC (rev 65033)
@@ -42,7 +42,7 @@
       }%
     \endinput
   }%
-\ProvidesExplPackage {siunitx} {2022-10-23} {3.1.9}
+\ProvidesExplPackage {siunitx} {2022-11-16} {3.1.10}
   {A comprehensive (SI) units package}
 \msg_new:nnnn { siunitx } { incompatible-package }
   { Package~'#1'~incompatible. }
@@ -3351,12 +3351,12 @@
   {
     \use:e
       {
-        \exp_not:N \__siunitx_number_round_uncertainty:nnnnn
+        \exp_not:N \__siunitx_number_round_uncertainty:nnnnnn
           \__siunitx_number_round:nnn {#1} { } {#4}
-          {#2} {#3} {#1}
+          {#2} {#3} {#1} {#4}
       }
   }
-\cs_new:Npn \__siunitx_number_round_uncertainty:nnnnn #1#2#3#4#5
+\cs_new:Npn \__siunitx_number_round_uncertainty:nnnnnn #1#2#3#4#5#6
   {
     \tl_if_blank:nTF {#1}
       {
@@ -3368,7 +3368,7 @@
                   {
                     \tl_if_blank:nTF {#4}
                       { #5 }
-                      { 0 - ( \tl_count:n {#4} - \tl_count:n {#2} - #5 +  1 ) }
+                      { ( \tl_count:n {#6} - \tl_count:n {#4} ) - \tl_count:n {#2} }
                   }
                   { 0 }
               }



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