texlive[68140] Master: siunitx (1sep23)

commits+karl at tug.org commits+karl at tug.org
Fri Sep 1 23:19:22 CEST 2023


Revision: 68140
          http://tug.org/svn/texlive?view=revision&revision=68140
Author:   karl
Date:     2023-09-01 23:19:22 +0200 (Fri, 01 Sep 2023)
Log Message:
-----------
siunitx (1sep23)

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-print.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
    trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
    trunk/Master/tlpkg/bin/tlpkg-ctan-check

Modified: trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2023-09-01 21:15:40 UTC (rev 68139)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2023-09-01 21:19:22 UTC (rev 68140)
@@ -7,6 +7,13 @@
 
 ## [Unreleased]
 
+## [v3.3.6] - 2023-09-01
+
+### Fixed
+- Corrected handling of font commands inside `\ensuremath` in text
+  mode (see issue
+  [\#694](https://github.com/josephwright/siunitx/issues/694))
+
 ## [v3.3.5] - 2023-08-30
 
 ### Fixed
@@ -2012,7 +2019,8 @@
 ### Added
 - First public testing release (as `si`)
 
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.3.5...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.3.6...HEAD
+[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
 [v3.3.3]: https://github.com/josephwright/siunitx/compare/v3.3.2...v3.3.3

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-print.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx	2023-09-01 21:15:40 UTC (rev 68139)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx	2023-09-01 21:19:22 UTC (rev 68140)
@@ -891,15 +891,15 @@
           \tl_set:Nn \l_@@_tmp_tl {#1}
           \tl_if_empty:NF \l_@@_tmp_tl
             {
-              \@@_text_replace_font:N \l_@@_tmp_tl
-              \tl_if_empty:NF \l_siunitx_unit_font_tl
-                {
-                  \exp_after:wN
-                    \cs_set_eq:NN \l_siunitx_unit_font_tl \scan_stop:
-                }
-              \cs_set:Npn \mathord ##1
-                { \@@_text_replace_first:N ##1 }
-              \group_begin: 
+              \group_begin:
+                \@@_text_replace_font:N \l_@@_tmp_tl
+                \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 \scan_stop:
+                  }
                 \tl_map_inline:nn
                   { \mp \approx \sim \ge \le \geq \leq \gg \ll \angle }
                   {
@@ -909,7 +909,10 @@
                 \cs_set:Npn \sqrt ##1
                   {
                     \exp_not:N \ensuremath
-                      { \exp_not:N \sqrt { \exp_not:N \text {##1} } }
+                      {
+                        \exp_not:N \sqrt
+                          { \exp_not:N \text { \@@_text_replace:n {##1} } }
+                      }
                   }
                 \protected at edef \l_@@_tmp_tl
                   { \exp_after:wN \@@_text_replace_first:N \l_@@_tmp_tl }

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2023-09-01 21:15:40 UTC (rev 68139)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2023-09-01 21:19:22 UTC (rev 68140)
@@ -121,7 +121,7 @@
 %
 % Identify the package and give the over all version information.
 %    \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2023-08-30} {3.3.5}
+\ProvidesExplPackage {siunitx} {2023-09-01} {3.3.6}
   {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-09-01 21:15:40 UTC (rev 68139)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2023-09-01 21:19:22 UTC (rev 68140)
@@ -41,7 +41,7 @@
       }%
     \endinput
   }%
-\ProvidesExplPackage {siunitx} {2023-08-30} {3.3.5}
+\ProvidesExplPackage {siunitx} {2023-09-01} {3.3.6}
   {A comprehensive (SI) units package}
 \msg_new:nnnn { siunitx } { incompatible-package }
   { Package~'#1'~incompatible. }
@@ -5037,15 +5037,15 @@
           \tl_set:Nn \l__siunitx_print_tmp_tl {#1}
           \tl_if_empty:NF \l__siunitx_print_tmp_tl
             {
-              \__siunitx_print_text_replace_font:N \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 \scan_stop:
-                }
-              \cs_set:Npn \mathord ##1
-                { \__siunitx_print_text_replace_first:N ##1 }
               \group_begin:
+                \__siunitx_print_text_replace_font:N \l__siunitx_print_tmp_tl
+                \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 \scan_stop:
+                  }
                 \tl_map_inline:nn
                   { \mp \approx \sim \ge \le \geq \leq \gg \ll \angle }
                   {
@@ -5055,7 +5055,10 @@
                 \cs_set:Npn \sqrt ##1
                   {
                     \exp_not:N \ensuremath
-                      { \exp_not:N \sqrt { \exp_not:N \text {##1} } }
+                      {
+                        \exp_not:N \sqrt
+                          { \exp_not:N \text { \__siunitx_print_text_replace:n {##1} } }
+                      }
                   }
                 \protected at edef \l__siunitx_print_tmp_tl
                   { \exp_after:wN \__siunitx_print_text_replace_first:N \l__siunitx_print_tmp_tl }

Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2023-09-01 21:15:40 UTC (rev 68139)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2023-09-01 21:19:22 UTC (rev 68140)
@@ -441,7 +441,7 @@
     iodhbwm ionumbers iopart-num ipaex ipaex-type1 is-bst iscram iso
     iso10303 isodate isodoc isomath isonums isopt isorot isotope
     issuulinks istgame itnumpar
-    iwhdp iwona
+    iwhdp iwona iwonamath
   jablantile jacow jamtimes japanese-mathformulas japanese-otf
     jbact jeuxcartes jfmutil jieeetran jigsaw
     jknapltx jkmath jlabels jlreq jlreq-deluxe



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