summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/siunitx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-12-04 21:38:27 +0000
committerKarl Berry <karl@freefriends.org>2021-12-04 21:38:27 +0000
commit06467b57e8216af43ec7aa54e312dfaa3b630af1 (patch)
treec8d75ab4951e851cae8716a9fb213719782e67c0 /Master/texmf-dist/source/latex/siunitx
parentbdd7ee84cb4cb69f0f8cdf3f1971f2f086767a90 (diff)
siunitx (4dec21)
git-svn-id: svn://tug.org/texlive/trunk@61216 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx')
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx-code.tex6
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx17
-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
5 files changed, 28 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-code.tex b/Master/texmf-dist/source/latex/siunitx/siunitx-code.tex
index 7396975f445..bf2bd1b7e9f 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx-code.tex
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx-code.tex
@@ -39,6 +39,10 @@ for those people who are interested.
\NewDocumentCommand\acro{m}{\textsc{\LowerCaseText{#1}}}
\NewDocumentCommand\foreign{m}{\textit{#1}}
+% Standard settings
+\EnableDocumentation
+\DisableImplementation
+
\begin{document}
\GetFileInfo{siunitx.sty}
@@ -81,7 +85,7 @@ for those people who are interested.
\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}
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx
index 92e3671852a..18ad1d2d600 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx
@@ -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 =
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
index 25e15ca4bb0..a7b3594d9d6 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
@@ -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}
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
index e48aaa37ae8..46d2b2f9427 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} {2021-11-18} {3.0.36}
+\ProvidesExplPackage {siunitx} {2021-12-03} {3.0.37}
{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 0cde5ebbd31..69f61e8c586 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.tex
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx.tex
@@ -2736,7 +2736,7 @@ combined with \opt{exponent-mode = fixed} can be used to achieve this
(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]