summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-11-16 21:25:23 +0000
committerKarl Berry <karl@freefriends.org>2022-11-16 21:25:23 +0000
commit41cf80ce30c6e274ed682de0b2303646d728c99c (patch)
treee045c032280ca7aa86cc8f868ac0f0f93b16c8c5 /Master
parent61e0965a47ab8c42da627a28651ea8b2923803c9 (diff)
siunitx (16nov22)
git-svn-id: svn://tug.org/texlive/trunk@65033 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md8
-rw-r--r--Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdfbin617655 -> 617721 bytes
-rw-r--r--Master/texmf-dist/doc/latex/siunitx/siunitx.pdfbin666267 -> 666266 bytes
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx8
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.dtx2
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.tex2
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty10
7 files changed, 18 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md b/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
index d1d7b1c61fc..e26a8b74c1a 100644
--- a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
+++ b/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
@@ -7,6 +7,11 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
## [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 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
### 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
diff --git a/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
index 7bfe53e8a87..a57ecf29bcf 100644
--- a/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
+++ b/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
index 92efe61c67d..9f1a21c58f5 100644
--- a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
+++ b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
index 1d11f909f07..b88e369c08d 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
@@ -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 }
}
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
index b39fdd662ea..d02beaf5739 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
@@ -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}
%
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.tex b/Master/texmf-dist/source/latex/siunitx/siunitx.tex
index 1c4b9ab9101..a92d0ee0db8 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.tex
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx.tex
@@ -318,7 +318,7 @@ optional argument, \meta{options}, and one mandatory one, \meta{number}. The
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}
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index 35f53f0b85b..8ac5f2141ad 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
@@ -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 }
}