texlive[61858] Master/texmf-dist: siunitx (2feb22)
commits+karl at tug.org
commits+karl at tug.org
Wed Feb 2 22:41:04 CET 2022
Revision: 61858
http://tug.org/svn/texlive?view=revision&revision=61858
Author: karl
Date: 2022-02-02 22:41:04 +0100 (Wed, 02 Feb 2022)
Log Message:
-----------
siunitx (2feb22)
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/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 2022-02-02 21:40:47 UTC (rev 61857)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md 2022-02-02 21:41:04 UTC (rev 61858)
@@ -7,6 +7,12 @@
## [Unreleased]
+## [v3.0.46] - 2022-02-02
+
+### Fixed
+- Spacing around math symbols in text mode (see issue
+ [\#583](https://github.com/josephwright/siunitx/issues/583))
+
## [v3.0.45] - 2022-01-27
### Fixed
@@ -1692,7 +1698,8 @@
### Added
- First public testing release (as `si`)
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.45...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.46...HEAD
+[v3.0.46]: https://github.com/josephwright/siunitx/compare/v3.0.45...v3.0.46
[v3.0.45]: https://github.com/josephwright/siunitx/compare/v3.0.44...v3.0.45
[v3.0.44]: https://github.com/josephwright/siunitx/compare/v3.0.43...v3.0.44
[v3.0.43]: https://github.com/josephwright/siunitx/compare/v3.0.42...v3.0.43
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 2022-02-02 21:40:47 UTC (rev 61857)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-print.dtx 2022-02-02 21:41:04 UTC (rev 61858)
@@ -843,13 +843,22 @@
\tl_set:Nn \l_@@_tmp_tl {#1}
\tl_if_empty:NF \l_siunitx_unit_font_tl
{ \exp_after:wN \cs_set_eq:NN \l_siunitx_unit_font_tl \use:n }
- \cs_set:Npn \mathord ##1 {##1}
- \cs_set:Npn \pm { \exp_not:N \textpm }
+ \cs_set:Npn \mathord ##1
+ {
+ \str_case:nnF {##1}
+ {
+ { \cdot } { \exp_not:N \textperiodcentered }
+ { \pm } { \exp_not:N \textpm }
+ { \times } { \exp_not:N \texttimes }
+ }
+ {##1}
+ }
+ \cs_set:Npn \pm { \: \exp_not:N \textpm \: }
\tl_map_inline:nn
{ \mp \ge \le \gg \ll }
{ \cs_set:Npn ##1 { \exp_not:N \ensuremath { \exp_not:N ##1 } } }
- \cs_set:Npn \cdot { \exp_not:N \textperiodcentered }
- \cs_set:Npn \times { \exp_not:N \texttimes }
+ \cs_set:Npn \cdot { \: \exp_not:N \textperiodcentered \: }
+ \cs_set:Npn \times { \: \exp_not:N \texttimes \: }
\protected at edef \l_@@_tmp_tl { \l_@@_tmp_tl }
\@@_text_replace:N \l_@@_tmp_tl
\@@_text_replace_aux:n { \tl_use:N \l_@@_tmp_tl }
@@ -992,7 +1001,7 @@
\cs_new_protected:Npn \@@_text_fraction:Nnn #1#2#3
{
\ensuremath
- {
+ {
#1
{ \mbox { \@@_text_replace:n {#2} } }
{ \mbox { \@@_text_replace:n {#3} } }
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2022-02-02 21:40:47 UTC (rev 61857)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2022-02-02 21:41:04 UTC (rev 61858)
@@ -121,7 +121,7 @@
%
% Identify the package and give the over all version information.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2022-01-27} {3.0.45}
+\ProvidesExplPackage {siunitx} {2022-02-02} {3.0.46}
{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 2022-02-02 21:40:47 UTC (rev 61857)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex 2022-02-02 21:41:04 UTC (rev 61858)
@@ -141,7 +141,7 @@
\begin{minipage}{0.48\linewidth}
\LaTeXdemo at input
\end{minipage}%
- \hfil
+ \hspace{\fill}%
\begin{minipage}{0.48\linewidth}
\usebox\LaTeXdemo at box
\end{minipage}%
@@ -1060,7 +1060,7 @@
\multicolumn{2}{c}{\tablenum[table-format = 4.4]{4563.21}} \\
\bottomrule
\end{tabular}
- \hfil
+ \hspace{\fill}%
\begin{tabular}{@{}lr@{}}
\toprule
Heading & Heading \\
@@ -2649,7 +2649,7 @@
\NoteMark{d} 88 & \NoteMark{d} 88 \\
\bottomrule
\end{tabular}
- \hfil
+ \hspace{\fill}%
\sisetup{table-format = 2.4\NoteMark{a}}
\begin{tabular}{@{}
S
@@ -2860,7 +2860,7 @@
\pkg{siunitx} allows the user to switch between the typographic conventions of
different (geographical) areas by using locales. Currently, the package is
supplied with configurations for locales \opt{UK}, \opt{US}, \opt{DE}
-(Germany), \opt{FR} (French), \opt{SI} (Slovene) and \opt{ZA} (South Africa).
+(Germany), \opt{FR} (French), \opt{SI} (Slovene) and \opt{ZA} (South Africa).
The \opt{locale}
option is used to switch to a particular locale.
\begin{LaTeXdemo}
@@ -3440,7 +3440,7 @@
\begin{table}
\caption{Tables where numbers have different units.%
\label{tab:xmpl:mixed}}
- \hfil
+ \hspace{\fill}%
\begin{tabular}
{
@{}
@@ -3457,7 +3457,7 @@
\mu / \unit{\per\mm} & 0.532 & 0.894 \\
\bottomrule
\end{tabular}
- \hfil
+ \hspace{\fill}%
\begin{tabular}
{
@{}
@@ -3473,7 +3473,7 @@
4.23 & \joule\per\mole \\
\bottomrule
\end{tabular}
- \hfil
+ \hspace{\fill}%
\end{table}
\end{LaTeXdemo}
Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2022-02-02 21:40:47 UTC (rev 61857)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2022-02-02 21:41:04 UTC (rev 61858)
@@ -42,7 +42,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {siunitx} {2022-01-27} {3.0.45}
+\ProvidesExplPackage {siunitx} {2022-02-02} {3.0.46}
{A comprehensive (SI) units package}
\msg_new:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -3970,13 +3970,22 @@
\tl_set:Nn \l__siunitx_print_tmp_tl {#1}
\tl_if_empty:NF \l_siunitx_unit_font_tl
{ \exp_after:wN \cs_set_eq:NN \l_siunitx_unit_font_tl \use:n }
- \cs_set:Npn \mathord ##1 {##1}
- \cs_set:Npn \pm { \exp_not:N \textpm }
+ \cs_set:Npn \mathord ##1
+ {
+ \str_case:nnF {##1}
+ {
+ { \cdot } { \exp_not:N \textperiodcentered }
+ { \pm } { \exp_not:N \textpm }
+ { \times } { \exp_not:N \texttimes }
+ }
+ {##1}
+ }
+ \cs_set:Npn \pm { \: \exp_not:N \textpm \: }
\tl_map_inline:nn
{ \mp \ge \le \gg \ll }
{ \cs_set:Npn ##1 { \exp_not:N \ensuremath { \exp_not:N ##1 } } }
- \cs_set:Npn \cdot { \exp_not:N \textperiodcentered }
- \cs_set:Npn \times { \exp_not:N \texttimes }
+ \cs_set:Npn \cdot { \: \exp_not:N \textperiodcentered \: }
+ \cs_set:Npn \times { \: \exp_not:N \texttimes \: }
\protected at edef \l__siunitx_print_tmp_tl { \l__siunitx_print_tmp_tl }
\__siunitx_print_text_replace:N \l__siunitx_print_tmp_tl
\__siunitx_print_text_replace_aux:n { \tl_use:N \l__siunitx_print_tmp_tl }
More information about the tex-live-commits
mailing list.