texlive[59464] Master/texmf-dist: siunitx (4jun21)
commits+karl at tug.org
commits+karl at tug.org
Fri Jun 4 22:14:38 CEST 2021
Revision: 59464
http://tug.org/svn/texlive?view=revision&revision=59464
Author: karl
Date: 2021-06-04 22:14:38 +0200 (Fri, 04 Jun 2021)
Log Message:
-----------
siunitx (4jun21)
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-complex.dtx
trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx
trunk/Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx
trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.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-06-04 20:14:02 UTC (rev 59463)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md 2021-06-04 20:14:38 UTC (rev 59464)
@@ -7,6 +7,14 @@
## [Unreleased]
+## [v3.0.10]
+
+### Changed
+- Documenation improvements
+
+### Fixed
+- Incompatibility with REVTeX (issue #469)
+
## [v3.0.9]
### Changed
@@ -1343,7 +1351,8 @@
### Added
- First public testing release (as `si`)
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.9...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.10...HEAD
+[v3.0.10]: https://github.com/josephwright/siunitx/compare/v3.0.9...v3.0.10
[v3.0.9]: https://github.com/josephwright/siunitx/compare/v3.0.8...v3.0.9
[v3.0.8]: https://github.com/josephwright/siunitx/compare/v3.0.7...v3.0.8
[v3.0.7]: https://github.com/josephwright/siunitx/compare/v3.0.6...v3.0.7
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-complex.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-complex.dtx 2021-06-04 20:14:02 UTC (rev 59463)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-complex.dtx 2021-06-04 20:14:38 UTC (rev 59464)
@@ -412,7 +412,7 @@
% \item All of the number was before the complex root: |#2| will
% be empty and we need to check |#1| fully to split out the two
% parts
-% \item The input has a a real part with the complex part starting
+% \item The input has a real part with the complex part starting
% with the root symbol: just the last token needs to be separated.
% \end{itemize}
% \begin{macrocode}
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx 2021-06-04 20:14:02 UTC (rev 59463)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-emulation.dtx 2021-06-04 20:14:38 UTC (rev 59464)
@@ -478,7 +478,7 @@
{ print-unity-mantissa }
\l_keys_value_tl
} ,
- retain-unity-mantisa .default:n = true ,
+ retain-unity-mantissa .default:n = true ,
retain-zero-exponent .code:n =
{
\@@_option_deprecated:nnV
@@ -1013,12 +1013,13 @@
%
% Units that have been removed: to avoid issues, we mark them as deprecated.
% \begin{macrocode}
-\msg_new:nnnn { siunitx } { unit-deprecated }
- { Unit~macro~#1~has~been~deprecated~in~this~release. }
+\msg_new:nnn { siunitx } { unit-deprecated }
{
+ Unit~macro~#1~has~been~deprecated~in~this~release. \\ \\
The~BIPM~have~removed~this~unit~from~the~SI~Brochure.~
- You~should~define~it~yourself~using~\token_to_str:N \DeclareSIUnit
- in~your~source.
+ You~should~define~it~yourself~using~\token_to_str:N \DeclareSIUnit\ %
+ in~your~source. The~current~definition~is\\ \\
+ \token_to_str:N \DeclareSIUnit \{ #2 \}
}
\cs_gset_protected:Npn \@@_tmp:w #1#2
{
@@ -1031,8 +1032,8 @@
{
\exp_not:N \bool_gset_true:N
\exp_not:c { g_@@_unit_warning_ \token_to_str:N #1 _bool }
- \msg_warning:nnn { siunitx } { unit-deprecated }
- { \token_to_str:N #1 }
+ \msg_warning:nnnn { siunitx } { unit-deprecated }
+ { \token_to_str:N #1 } {#2}
}
#2
}
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx 2021-06-04 20:14:02 UTC (rev 59463)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx 2021-06-04 20:14:38 UTC (rev 59464)
@@ -185,7 +185,7 @@
% would allow space for one digit in the integer part, two in the decimal
% part and three in the exponent part. Signs can be allowed for using any
% valid input sign, so for example |+1.2 \pm 1.2| would allow for a sign,
-% a number with one integer and two decimal digits and a uncertainty of
+% a number with one integer and two decimal digits and an uncertainty of
% the same size.
% \end{function}
%
@@ -445,12 +445,22 @@
\l_@@_after_tl
}
}
+% \end{macrocode}
+% To cover the use of REV\TeX{}, we need to allow for the insertion of
+% \cs{array at row@rst} into cell content: that explodes inside
+% \cs{protected at edef}. We use the classical solution of making locally
+% equal to \cs{scan_stop:}.
+% \begin{macrocode}
\cs_new_protected:Npn \@@_collect_end:n #1
{
\str_if_eq:eeTF { \exp_not:n {#1} }
{ { \@@_collect_end_aux:n {#1} } }
{ \tl_set:Nn }
- { \protected at edef }
+ {
+ \cs_if_exist:NT \array at row@rst
+ { \cs_set_eq:NN \array at row@rst \scan_stop: }
+ \protected at edef
+ }
\l_@@_collect_tl {#1}
}
\cs_new:Npn \@@_collect_end_aux:n #1
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx 2021-06-04 20:14:02 UTC (rev 59463)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx 2021-06-04 20:14:38 UTC (rev 59464)
@@ -1276,7 +1276,7 @@
% To deal properly with literal formatting, we have to worry about super-
% and subscript markers. That can be complicated as they could come anywhere
% in the input: we handle that by iterating through the input and picking
-% them out. This avoids any issue with loosing braces for mid-input scripts.
+% them out. This avoids any issue with losing braces for mid-input scripts.
% We also have to deal with fractions, hence needing a series of nested
% loops and a change of separator.
% \begin{macrocode}
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2021-06-04 20:14:02 UTC (rev 59463)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2021-06-04 20:14:38 UTC (rev 59464)
@@ -121,7 +121,7 @@
%
% Identify the package and give the over all version information.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2021-06-01} {3.0.9}
+\ProvidesExplPackage {siunitx} {2021-06-04} {3.0.10}
{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-06-04 20:14:02 UTC (rev 59463)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex 2021-06-04 20:14:38 UTC (rev 59464)
@@ -1171,7 +1171,7 @@
In math mode, the font used by \LaTeX{} is \enquote{invariant}, and this is
reflected in the options available. With the standard settings, in math mode
printing uses the standard math font and version (weight). The option
-\opt{propagate-math-font} may be used to apply the a prevailing math font
+\opt{propagate-math-font} may be used to apply the prevailing math font
to the printed material. The setting \opt{reset-math-version} controls
whether the math version is reset or not. Note that math version is typically
used to set \enquote{bold math} but may also be used for other effects, for
@@ -2904,6 +2904,9 @@
\item Complex values need to be given using the dedicated command
\cs{complexnum}.
\end{itemize}
+The option \opt{round-integer-to-decimal = false} has been removed, and whilst
+there is not a direct replacement, users are likely to find that \opt{round-pad
+= false} offers the desired outcome.
A new approach has been taken to providing non-Latin symbols for use in
units: these are now handled directly where needed, for example in the
@@ -3025,6 +3028,25 @@
\section{Hints for using \pkg{siunitx}}
+\subsection{Adjusting \cs{litre} and \cs{liter}%
+ \label{sec:hint:litre}}
+
+As detailed earlier, the unit macros \cs{litre} and \cs{liter} are both
+available for litres. With the standard settings, \cs{liter} is defined as
+\begin{LaTeXdemo}[code only]
+ \DeclareSIUnit\liter{\litre}
+\end{LaTeXdemo}
+meaning that \cs{litre} is the \enquote{canonical} unit. This follows the same
+relationship as exists between \cs{metre} and \cs{meter}.
+
+In contrast to metres, however, there is more likelihood of users wishing to
+adjust the appearance of litres: both \enquote{\unit{l}} and \enquote{\unit{L}}
+are commonly used. The recommended approach to adjustment is to re-declare
+the \cs{litre} macro, as \cs{liter} will follow automatically.
+\begin{LaTeXdemo}[code only]
+ \DeclareSIUnit\liter{l}
+\end{LaTeXdemo}
+
\subsection{Ensuring text or math output%
\label{sec:hint:text-math}}
@@ -3485,7 +3507,7 @@
without needing to copy the full set of definitions into each source file. At
the same time, it is important that such sources do show that they are using
units not defined by the core part of \pkg{siunitx}. The most straight-forward
-way to acheive this is to create a separate file, for example
+way to achieve this is to create a separate file, for example
\texttt{siunitx-local-units.tex}, and place it in your local \TeX{} tree
(usually \verb|~/texmf/tex/latex/| on Linux, \verb|~/Library/texmf/tex/latex/|
on macOS or \verb|C:\Users\<name>\texmf\tex\latex| on Windows). This can then
@@ -3647,7 +3669,7 @@
potentially-confusing and is not encouraged.
Care must be taken when writing ranges of numbers. For purely numerical values,
-it is common to use a en-dash to show a range, for example \enquote{see pages
+it is common to use an en-dash to show a range, for example \enquote{see pages
1--5}. On the other hand, physical quantities could be misinterpret as negative
values if written in this way. As the quantity is a single mathematical entity,
writing the values with an en-dash followed by a single unit is also incorrect.
Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2021-06-04 20:14:02 UTC (rev 59463)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2021-06-04 20:14:38 UTC (rev 59464)
@@ -42,7 +42,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {siunitx} {2021-06-01} {3.0.9}
+\ProvidesExplPackage {siunitx} {2021-06-04} {3.0.10}
{A comprehensive (SI) units package}
\msg_new:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -4002,7 +4002,11 @@
\str_if_eq:eeTF { \exp_not:n {#1} }
{ { \__siunitx_table_collect_end_aux:n {#1} } }
{ \tl_set:Nn }
- { \protected at edef }
+ {
+ \cs_if_exist:NT \array at row@rst
+ { \cs_set_eq:NN \array at row@rst \scan_stop: }
+ \protected at edef
+ }
\l__siunitx_table_collect_tl {#1}
}
\cs_new:Npn \__siunitx_table_collect_end_aux:n #1
@@ -6684,7 +6688,7 @@
{ print-unity-mantissa }
\l_keys_value_tl
} ,
- retain-unity-mantisa .default:n = true ,
+ retain-unity-mantissa .default:n = true ,
retain-zero-exponent .code:n =
{
\__siunitx_option_deprecated:nnV
@@ -7111,12 +7115,13 @@
}
}
\siunitx_declare_unit:Nn \celsius { \degreeCelsius }
-\msg_new:nnnn { siunitx } { unit-deprecated }
- { Unit~macro~#1~has~been~deprecated~in~this~release. }
+\msg_new:nnn { siunitx } { unit-deprecated }
{
+ Unit~macro~#1~has~been~deprecated~in~this~release. \\ \\
The~BIPM~have~removed~this~unit~from~the~SI~Brochure.~
- You~should~define~it~yourself~using~\token_to_str:N \DeclareSIUnit
- in~your~source.
+ You~should~define~it~yourself~using~\token_to_str:N \DeclareSIUnit\ %
+ in~your~source. The~current~definition~is\\ \\
+ \token_to_str:N \DeclareSIUnit \{ #2 \}
}
\cs_gset_protected:Npn \__siunitx_emulation_tmp:w #1#2
{
@@ -7129,8 +7134,8 @@
{
\exp_not:N \bool_gset_true:N
\exp_not:c { g__siunitx_emulation_unit_warning_ \token_to_str:N #1 _bool }
- \msg_warning:nnn { siunitx } { unit-deprecated }
- { \token_to_str:N #1 }
+ \msg_warning:nnnn { siunitx } { unit-deprecated }
+ { \token_to_str:N #1 } {#2}
}
#2
}
More information about the tex-live-commits
mailing list.