texlive[59844] Master/texmf-dist: siunitx (5jul21)

commits+karl at tug.org commits+karl at tug.org
Mon Jul 5 22:54:36 CEST 2021


Revision: 59844
          http://tug.org/svn/texlive?view=revision&revision=59844
Author:   karl
Date:     2021-07-05 22:54:36 +0200 (Mon, 05 Jul 2021)
Log Message:
-----------
siunitx (5jul21)

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-quantity.dtx
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
    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	2021-07-05 20:54:21 UTC (rev 59843)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2021-07-05 20:54:36 UTC (rev 59844)
@@ -7,6 +7,12 @@
 
 ## [Unreleased]
 
+## [v3.0.18]
+
+### Fixed
+- Printing of reciprocal units when `per-mode = symbol` is active
+  (issue #500)
+
 ## [v3.0.17]
 
 ### Fixed
@@ -1414,7 +1420,8 @@
 ### Added
 - First public testing release (as `si`)
 
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.17...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.18...HEAD
+[v3.0.18]: https://github.com/josephwright/siunitx/compare/v3.0.17...v3.0.18
 [v3.0.17]: https://github.com/josephwright/siunitx/compare/v3.0.16...v3.0.17
 [v3.0.16]: https://github.com/josephwright/siunitx/compare/v3.0.15...v3.0.16
 [v3.0.15]: https://github.com/josephwright/siunitx/compare/v3.0.14...v3.0.15

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-quantity.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx	2021-07-05 20:54:21 UTC (rev 59843)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-quantity.dtx	2021-07-05 20:54:36 UTC (rev 59844)
@@ -372,7 +372,10 @@
 %   }
 %   For printing a single part of a quantity. This is needed for compound
 %   quantities and so is public: that's also the reason for passing both
-%   argument explicitly.
+%   argument explicitly. The lazy test here is looking for the case where
+%   a |1| has been inserted at the start of a format unit \emph{and} we
+%   have some other number to print: the |1| is then removed and there is
+%   no space inserted.
 %    \begin{macrocode}
 \cs_new_protected:Npn \siunitx_quantity_print:nn #1#2
   {
@@ -379,11 +382,19 @@
     \siunitx_print_number:n {#1}
     \tl_if_blank:nF {#2}
       {
-        \tl_use:N \l_@@_product_tl
-        \bool_if:NTF \l_@@_break_bool
-          { \penalty \binoppenalty }
-          { \nobreak }
-        \siunitx_print_unit:n {#2}
+        \bool_lazy_or:nnTF
+          { \tl_if_blank_p:n {#1} }
+          { ! \tl_if_head_eq_charcode_p:nN {#2} { 1 } }
+          {
+            \tl_use:N \l_@@_product_tl
+            \bool_if:NTF \l_@@_break_bool
+              { \penalty \binoppenalty }
+              { \nobreak }
+            \siunitx_print_unit:n {#2}
+          }
+          {
+            \exp_args:No \siunitx_print_unit:n { \use_none:n #2 }
+          }
       }
   }
 \cs_generate_variant:Nn \siunitx_quantity_print:nn { nV , VV , xV }

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2021-07-05 20:54:21 UTC (rev 59843)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2021-07-05 20:54:36 UTC (rev 59844)
@@ -121,7 +121,7 @@
 %
 % Identify the package and give the over all version information.
 %    \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2021-06-29} {3.0.17}
+\ProvidesExplPackage {siunitx} {2021-07-04} {3.0.18}
   {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	2021-07-05 20:54:21 UTC (rev 59843)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2021-07-05 20:54:36 UTC (rev 59844)
@@ -42,7 +42,7 @@
       }%
     \endinput
   }%
-\ProvidesExplPackage {siunitx} {2021-06-29} {3.0.17}
+\ProvidesExplPackage {siunitx} {2021-07-04} {3.0.18}
   {A comprehensive (SI) units package}
 \msg_new:nnnn { siunitx } { incompatible-package }
   { Package~'#1'~incompatible. }
@@ -6046,11 +6046,19 @@
     \siunitx_print_number:n {#1}
     \tl_if_blank:nF {#2}
       {
-        \tl_use:N \l__siunitx_quantity_product_tl
-        \bool_if:NTF \l__siunitx_quantity_break_bool
-          { \penalty \binoppenalty }
-          { \nobreak }
-        \siunitx_print_unit:n {#2}
+        \bool_lazy_or:nnTF
+          { \tl_if_blank_p:n {#1} }
+          { ! \tl_if_head_eq_charcode_p:nN {#2} { 1 } }
+          {
+            \tl_use:N \l__siunitx_quantity_product_tl
+            \bool_if:NTF \l__siunitx_quantity_break_bool
+              { \penalty \binoppenalty }
+              { \nobreak }
+            \siunitx_print_unit:n {#2}
+          }
+          {
+            \exp_args:No \siunitx_print_unit:n { \use_none:n #2 }
+          }
       }
   }
 \cs_generate_variant:Nn \siunitx_quantity_print:nn { nV , VV , xV }



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