texlive[66025] branches/branch2022.final/Master/texmf-dist: siunitx

commits+karl at tug.org commits+karl at tug.org
Tue Feb 21 21:49:41 CET 2023


Revision: 66025
          http://tug.org/svn/texlive?view=revision&revision=66025
Author:   karl
Date:     2023-02-21 21:49:40 +0100 (Tue, 21 Feb 2023)
Log Message:
-----------
siunitx (21feb23) (branch)

Modified Paths:
--------------
    branches/branch2022.final/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
    branches/branch2022.final/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
    branches/branch2022.final/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
    branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
    branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx
    branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
    branches/branch2022.final/Master/texmf-dist/tex/latex/siunitx/siunitx.sty

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
===================================================================
--- branches/branch2022.final/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2023-02-21 20:49:27 UTC (rev 66024)
+++ branches/branch2022.final/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2023-02-21 20:49:40 UTC (rev 66025)
@@ -7,6 +7,15 @@
 
 ## [Unreleased]
 
+## [v3.2.1] - 2023-02-21
+
+### Fixed
+
+- Extend list of math mode symbols replaced in text mode (see issue
+  [\#640](https://github.com/josephwright/siunitx/issues/640))
+- Handling of uncertainty if larger than main value when rounding (see issue
+  [\#641](https://github.com/josephwright/siunitx/issues/641))
+
 ## [v3.2.0] - 2023-01-03
 
 ## Added
@@ -1857,7 +1866,8 @@
 ### Added
 - First public testing release (as `si`)
 
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.2.0...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.2.1...HEAD
+[v3.2.1]: https://github.com/josephwright/siunitx/compare/v3.2.0...v3.2.1
 [v3.2.0]: https://github.com/josephwright/siunitx/compare/v3.1.11...v3.2.0
 [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

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
===================================================================
--- branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx	2023-02-21 20:49:27 UTC (rev 66024)
+++ branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx	2023-02-21 20:49:40 UTC (rev 66025)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% File: siunitx-number.dtx Copyright (C) 2014-2019,2021,2022 Joseph Wright
+% File: siunitx-number.dtx Copyright (C) 2014-2019,2021-2023 Joseph Wright
 %
 % It may be distributed and/or modified under the conditions of the
 % LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -3162,9 +3162,6 @@
 % \begin{macro}[EXP]{\@@_round_uncertainty:nnnnnnn}
 % \begin{macro}[EXP]{\@@_round_uncertainty_end:nn}
 % \begin{macro}[EXP]{\@@_round_uncertainty:nnn}
-% \begin{macro}[EXP]{\@@_round_uncertainty_check:nnnw}
-% \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:nnnnnn}
 % \begin{macro}[EXP]
@@ -3213,35 +3210,11 @@
 \cs_new:Npn \@@_round_uncertainty_end:nn #1#2
   { \exp_not:n { {#1} {#2} } }
 %    \end{macrocode}
-%   Before doing any rounding, we need to be sure that the main value has
-%   enough significant digits. If not, the result is zero.
-%    \begin{macrocode}
-\cs_new:Npn \@@_round_uncertainty:nnn #1#2#3
-  {
-     \@@_round_uncertainty_check:nnnw {#1} {#2} {#3}
-       #1#2 \q_recursion_tail \q_recursion_stop
-  }
-\cs_new:Npn \@@_round_uncertainty_check:nnnw #1#2#3#4
-  {
-    \quark_if_recursion_tail_stop_do:Nn #4 { { 0 } { } { } }
-    \int_compare:nNnTF {#4} = 0
-      { \@@_round_uncertainty_check:nnnw }
-      { \@@_round_uncertainty_check:Nnnnw #4 }
-        {#1} {#2} {#3}
-  }
-\cs_new:Npn \@@_round_uncertainty_check:Nnnnw #1#2#3#4#5
-  \q_recursion_tail \q_recursion_stop
-  {
-    \int_compare:nNnTF { \tl_count:n {#1#5} } < { \tl_count:n {#4} }
-      { { 0 } { } { } }
-      { \@@_round_uncertainty_aux:nnn {#2} {#3} {#4} }
-  }
-%    \end{macrocode}
 %   Round the uncertainty first: this is needed to get the number of places
 %   correct. Once that is done, it's just a question of working out the digits
 %   in the main part.
 %    \begin{macrocode}
-\cs_new:Npn \@@_round_uncertainty_aux:nnn #1#2#3
+\cs_new:Npn \@@_round_uncertainty:nnn #1#2#3
   {
     \exp_args:Nf \@@_round_uncertainty:nnnn
       {
@@ -3440,9 +3413,6 @@
 % \end{macro}
 % \end{macro}
 % \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
 %
 % \begin{macro}{\@@_zero_decimal:NN}
 % \begin{macro}[EXP]{\@@_zero_decimal:nnnnnnn}

Modified: branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx
===================================================================
--- branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx	2023-02-21 20:49:27 UTC (rev 66024)
+++ branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx	2023-02-21 20:49:40 UTC (rev 66025)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% File: siunitx-print.dtx Copyright (C) 2016-2019,2021,2022 Joseph Wright
+% File: siunitx-print.dtx Copyright (C) 2016-2019,2021-2023 Joseph Wright
 %
 % It may be distributed and/or modified under the conditions of the
 % LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -860,14 +860,14 @@
           \tl_set:Nn \l_@@_tmp_tl {#1}
           \tl_if_empty:NF \l_@@_tmp_tl
             {
-                \tl_if_empty:NF \l_siunitx_unit_font_tl
-                  { \exp_after:wN \cs_set_eq:NN \l_siunitx_unit_font_tl \use:n }
-                \cs_set:Npn \mathord ##1
-                  { \@@_text_replace_first:N ##1 }
+              \tl_if_empty:NF \l_siunitx_unit_font_tl
+                { \exp_after:wN \cs_set_eq:NN \l_siunitx_unit_font_tl \use:n }
+              \cs_set:Npn \mathord ##1
+                { \@@_text_replace_first:N ##1 }
               \group_begin:
                 \cs_set:Npn \pm { \: \exp_not:N \textpm \: }
                 \tl_map_inline:nn
-                  { \mp \ge \le \gg \ll \angle }
+                  { \mp \approx \sim \ge \le \geq \leq \gg \ll \angle }
                   {
                     \cs_set:Npn ##1
                       { \exp_not:N \ensuremath { \exp_not:N ##1 } }

Modified: branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2023-02-21 20:49:27 UTC (rev 66024)
+++ branches/branch2022.final/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2023-02-21 20:49:40 UTC (rev 66025)
@@ -121,7 +121,7 @@
 %
 % Identify the package and give the over all version information.
 %    \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2023-01-03} {3.2.0}
+\ProvidesExplPackage {siunitx} {2023-02-21} {3.2.1}
   {A comprehensive (SI) units package}
 %    \end{macrocode}
 %

Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2023-02-21 20:49:27 UTC (rev 66024)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2023-02-21 20:49:40 UTC (rev 66025)
@@ -42,7 +42,7 @@
       }%
     \endinput
   }%
-\ProvidesExplPackage {siunitx} {2023-01-03} {3.2.0}
+\ProvidesExplPackage {siunitx} {2023-02-21} {3.2.1}
   {A comprehensive (SI) units package}
 \msg_new:nnnn { siunitx } { incompatible-package }
   { Package~'#1'~incompatible. }
@@ -3360,26 +3360,6 @@
   { \exp_not:n { {#1} {#2} } }
 \cs_new:Npn \__siunitx_number_round_uncertainty:nnn #1#2#3
   {
-     \__siunitx_number_round_uncertainty_check:nnnw {#1} {#2} {#3}
-       #1#2 \q_recursion_tail \q_recursion_stop
-  }
-\cs_new:Npn \__siunitx_number_round_uncertainty_check:nnnw #1#2#3#4
-  {
-    \quark_if_recursion_tail_stop_do:Nn #4 { { 0 } { } { } }
-    \int_compare:nNnTF {#4} = 0
-      { \__siunitx_number_round_uncertainty_check:nnnw }
-      { \__siunitx_number_round_uncertainty_check:Nnnnw #4 }
-        {#1} {#2} {#3}
-  }
-\cs_new:Npn \__siunitx_number_round_uncertainty_check:Nnnnw #1#2#3#4#5
-  \q_recursion_tail \q_recursion_stop
-  {
-    \int_compare:nNnTF { \tl_count:n {#1#5} } < { \tl_count:n {#4} }
-      { { 0 } { } { } }
-      { \__siunitx_number_round_uncertainty_aux:nnn {#2} {#3} {#4} }
-  }
-\cs_new:Npn \__siunitx_number_round_uncertainty_aux:nnn #1#2#3
-  {
     \exp_args:Nf \__siunitx_number_round_uncertainty:nnnn
       {
         \int_eval:n
@@ -4669,14 +4649,14 @@
           \tl_set:Nn \l__siunitx_print_tmp_tl {#1}
           \tl_if_empty:NF \l__siunitx_print_tmp_tl
             {
-                \tl_if_empty:NF \l_siunitx_unit_font_tl
-                  { \exp_after:wN \cs_set_eq:NN \l_siunitx_unit_font_tl \use:n }
-                \cs_set:Npn \mathord ##1
-                  { \__siunitx_print_text_replace_first:N ##1 }
+              \tl_if_empty:NF \l_siunitx_unit_font_tl
+                { \exp_after:wN \cs_set_eq:NN \l_siunitx_unit_font_tl \use:n }
+              \cs_set:Npn \mathord ##1
+                { \__siunitx_print_text_replace_first:N ##1 }
               \group_begin:
                 \cs_set:Npn \pm { \: \exp_not:N \textpm \: }
                 \tl_map_inline:nn
-                  { \mp \ge \le \gg \ll \angle }
+                  { \mp \approx \sim \ge \le \geq \leq \gg \ll \angle }
                   {
                     \cs_set:Npn ##1
                       { \exp_not:N \ensuremath { \exp_not:N ##1 } }



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