texlive[61216] Master/texmf-dist: siunitx (4dec21)

commits+karl at tug.org commits+karl at tug.org
Sat Dec 4 22:38:27 CET 2021


Revision: 61216
          http://tug.org/svn/texlive?view=revision&revision=61216
Author:   karl
Date:     2021-12-04 22:38:27 +0100 (Sat, 04 Dec 2021)
Log Message:
-----------
siunitx (4dec21)

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-code.tex
    trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx
    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	2021-12-04 21:38:11 UTC (rev 61215)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md	2021-12-04 21:38:27 UTC (rev 61216)
@@ -7,6 +7,11 @@
 
 ## [Unreleased]
 
+## [v3.0.37]
+
+### Changed
+- Documentation and warning improvements for "drop-exponent" option
+
 ## [v3.0.36]
 
 ### Changed
@@ -1632,7 +1637,8 @@
 ### Added
 - First public testing release (as `si`)
 
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.36...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.37...HEAD
+[v3.0.37]: https://github.com/josephwright/siunitx/compare/v3.0.36...v3.0.37
 [v3.0.36]: https://github.com/josephwright/siunitx/compare/v3.0.35...v3.0.36
 [v3.0.35]: https://github.com/josephwright/siunitx/compare/v3.0.34...v3.0.35
 [v3.0.34]: https://github.com/josephwright/siunitx/compare/v3.0.33...v3.0.34

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-code.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-code.tex	2021-12-04 21:38:11 UTC (rev 61215)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-code.tex	2021-12-04 21:38:27 UTC (rev 61216)
@@ -39,6 +39,10 @@
 \NewDocumentCommand\acro{m}{\textsc{\LowerCaseText{#1}}}
 \NewDocumentCommand\foreign{m}{\textit{#1}}
 
+% Standard settings
+\EnableDocumentation
+\DisableImplementation
+
 \begin{document}
 
 \GetFileInfo{siunitx.sty}
@@ -81,7 +85,7 @@
 \RenewDocumentCommand\PrintIndex{}{}
 
 % Load the source files in order
-\DocInput{siunitx.dtx}
+%\DocInput{siunitx.dtx}
 \DocInput{siunitx-angle.dtx}
 \DocInput{siunitx-compound.dtx}
 \DocInput{siunitx-locale.dtx}

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx	2021-12-04 21:38:11 UTC (rev 61215)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx	2021-12-04 21:38:27 UTC (rev 61216)
@@ -559,10 +559,19 @@
       } ,
     table-omit-exponent .code:n =
       {
-        \@@_option_deprecated:nnV
-          { table-omit-exponent }
-          { drop-exponent }
-          \l_keys_value_tl
+        \msg_info:nnnn { siunitx } { option-deprecated }
+          { table-omit-exponent } { drop-exponent }
+        \str_if_eq:VnTF \l_keys_value_tl { true }
+          {
+            \keys_set:nn
+              { siunitx }
+              { drop-exponent = true , exponent-mode = fixed }
+          }
+          {
+            \keys_set:nn
+              { siunitx }
+              { drop-exponent = false }
+          }
       } ,
     table-omit-exponent .default:n = true ,
     table-parse-only .code:n =

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx	2021-12-04 21:38:11 UTC (rev 61215)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx	2021-12-04 21:38:27 UTC (rev 61216)
@@ -2143,6 +2143,8 @@
   {
     \bool_if:NT \l_@@_drop_exponent_bool
       {
+        \str_if_eq:VnT \l_@@_exponent_mode_tl { input }
+          { \msg_warning:nn { siunitx } { ambiguous-dropped-exponent } }
         \tl_set:Nx #2
           { \exp_after:wN \@@_drop_exponent:nnnnnnn #1 }
       }
@@ -3736,6 +3738,12 @@
     The~input~'#1'~could~not~be~parsed~as~a~number~following~the~
     format~defined~in~module~documentation.
   }
+\msg_new:nnnn { siunitx } { ambiguous-dropped-exponent }
+  { Potentially~ambiguous~dropping~of~exponent. }
+  {
+    The~option~"drop-exponent"~is~active~but~values~do~not~have~an~
+    exponent~fixed~by~"exponent-mode".~The~result~could~be~misleading.
+  }
 %    \end{macrocode}
 %
 % \subsection{Standard settings for module options}

Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2021-12-04 21:38:11 UTC (rev 61215)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx	2021-12-04 21:38:27 UTC (rev 61216)
@@ -121,7 +121,7 @@
 %
 % Identify the package and give the over all version information.
 %    \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2021-11-18} {3.0.36}
+\ProvidesExplPackage {siunitx} {2021-12-03} {3.0.37}
   {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	2021-12-04 21:38:11 UTC (rev 61215)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex	2021-12-04 21:38:27 UTC (rev 61216)
@@ -2736,7 +2736,7 @@
 (Table~\ref{tab:exp:omit}).
 \begin{LaTeXdemo}[code and float]
   \begin{table}
-    \caption{The \opt{table-omit-exponent} option.%
+    \caption{The \opt{drop-exponent} option.%
       \label{tab:exp:omit}}
     \begin{tabular}{@{}
       S[table-format = 1.1e1]

Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2021-12-04 21:38:11 UTC (rev 61215)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty	2021-12-04 21:38:27 UTC (rev 61216)
@@ -42,7 +42,7 @@
       }%
     \endinput
   }%
-\ProvidesExplPackage {siunitx} {2021-11-18} {3.0.36}
+\ProvidesExplPackage {siunitx} {2021-12-03} {3.0.37}
   {A comprehensive (SI) units package}
 \msg_new:nnnn { siunitx } { incompatible-package }
   { Package~'#1'~incompatible. }
@@ -2481,6 +2481,8 @@
   {
     \bool_if:NT \l__siunitx_number_drop_exponent_bool
       {
+        \str_if_eq:VnT \l__siunitx_number_exponent_mode_tl { input }
+          { \msg_warning:nn { siunitx } { ambiguous-dropped-exponent } }
         \tl_set:Nx #2
           { \exp_after:wN \__siunitx_number_drop_exponent:nnnnnnn #1 }
       }
@@ -3577,6 +3579,12 @@
     The~input~'#1'~could~not~be~parsed~as~a~number~following~the~
     format~defined~in~module~documentation.
   }
+\msg_new:nnnn { siunitx } { ambiguous-dropped-exponent }
+  { Potentially~ambiguous~dropping~of~exponent. }
+  {
+    The~option~"drop-exponent"~is~active~but~values~do~not~have~an~
+    exponent~fixed~by~"exponent-mode".~The~result~could~be~misleading.
+  }
 \keys_set:nn { siunitx }
   {
     bracket-ambiguous-numbers = true                                   ,
@@ -7092,10 +7100,19 @@
       } ,
     table-omit-exponent .code:n =
       {
-        \__siunitx_option_deprecated:nnV
-          { table-omit-exponent }
-          { drop-exponent }
-          \l_keys_value_tl
+        \msg_info:nnnn { siunitx } { option-deprecated }
+          { table-omit-exponent } { drop-exponent }
+        \str_if_eq:VnTF \l_keys_value_tl { true }
+          {
+            \keys_set:nn
+              { siunitx }
+              { drop-exponent = true , exponent-mode = fixed }
+          }
+          {
+            \keys_set:nn
+              { siunitx }
+              { drop-exponent = false }
+          }
       } ,
     table-omit-exponent .default:n = true ,
     table-parse-only .code:n =



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