texlive[71066] Master/texmf-dist: siunitx (24apr24)
commits+karl at tug.org
commits+karl at tug.org
Wed Apr 24 22:20:41 CEST 2024
Revision: 71066
https://tug.org/svn/texlive?view=revision&revision=71066
Author: karl
Date: 2024-04-24 22:20:41 +0200 (Wed, 24 Apr 2024)
Log Message:
-----------
siunitx (24apr24)
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-symbol.dtx
trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.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 2024-04-24 20:20:30 UTC (rev 71065)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md 2024-04-24 20:20:41 UTC (rev 71066)
@@ -7,6 +7,12 @@
## [Unreleased]
+## [v3.3.16] - 2024-04-24
+
+### Fixed
+- Ensure that mode-dependent symbols respect printing mode (see issue
+ [\#729](https://github.com/josephwright/siunitx/issues/729))
+
## [v3.3.15] - 2024-04-23
### Fixed
@@ -2098,7 +2104,8 @@
### Added
- First public testing release (as `si`)
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.3.15...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.3.16...HEAD
+[v3.3.16]: https://github.com/josephwright/siunitx/compare/v3.3.15...v3.3.16
[v3.3.15]: https://github.com/josephwright/siunitx/compare/v3.3.14...v3.3.15
[v3.3.14]: https://github.com/josephwright/siunitx/compare/v3.3.13...v3.3.14
[v3.3.13]: https://github.com/josephwright/siunitx/compare/v3.3.12...v3.3.13
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-symbol.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx 2024-04-24 20:20:30 UTC (rev 71065)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx 2024-04-24 20:20:41 UTC (rev 71066)
@@ -161,18 +161,17 @@
{
\siunitx_declare_unit:Nen \degree
{
- \exp_not:N \ifmmode
- \@ifpackageloaded { unicode-math }
- { \@@_non_latin:n { "00B0 } }
- { { } ^ { \exp_not:N \circ } }
- \exp_not:N \else
- \exp_not:N \text
- {
- \@ifpackageloaded { inputenc }
- { \exp_not:N \textdegree }
- { \@@_non_latin:n { "00B0 } }
- }
- \exp_not:N \fi
+ \exp_not:N \TextOrMath
+ {
+ \@ifpackageloaded { inputenc }
+ { \exp_not:N \textdegree }
+ { \@@_non_latin:n { "00B0 } }
+ }
+ {
+ \@ifpackageloaded { unicode-math }
+ { \@@_non_latin:n { "00B0 } }
+ { { } ^ { \exp_not:N \circ } }
+ }
}
{ quantity-product = { } }
}
@@ -191,18 +190,17 @@
\group_end:
\siunitx_declare_unit:Ne \degreeCelsius
{
- \exp_not:N \ifmmode
- \@ifpackageloaded { unicode-math }
- { \@@_non_latin:n { "00B0 } }
- { { } ^ { \exp_not:N \circ } }
- \exp_not:N \else
- \exp_not:N \text
- {
- \@ifpackageloaded { inputenc }
- { \exp_not:N \textdegree }
- { \@@_non_latin:n { "00B0 } }
- }
- \exp_not:N \fi
+ \exp_not:N \TextOrMath
+ {
+ \@ifpackageloaded { inputenc }
+ { \exp_not:N \textdegree }
+ { \@@_non_latin:n { "00B0 } }
+ }
+ {
+ \@ifpackageloaded { unicode-math }
+ { \@@_non_latin:n { "00B0 } }
+ { { } ^ { \exp_not:N \circ } }
+ }
C
}
}
@@ -233,34 +231,33 @@
{ \exp_not:V \l_@@_tmpa_tl }
}
{
- \exp_not:N \ifmmode
- \@ifpackageloaded { fontspec }
- { \exp_not:V \l_@@_tmpb_tl }
- {
- \bool_lazy_or:nnTF
- {
- \@ifclassloaded { beamer }
- \c_true_bool
- \c_false_bool
- }
- {
- \@ifpackageloaded { kmath }
- \c_true_bool
- \c_false_bool
- }
- { \exp_not:V \l_@@_tmpb_tl }
- { \exp_not:V \l_@@_tmpa_tl }
- }
- \exp_not:N \else
- \exp_not:N \text
- {
- \bool_lazy_or:nnTF
- { \sys_if_engine_luatex_p: }
- { \sys_if_engine_xetex_p: }
- { \@@_non_latin:n { "2126 } }
- { \exp_not:N \textohm }
- }
- \exp_not:N \fi
+ \exp_not:N \TextOrMath
+ {
+ \bool_lazy_or:nnTF
+ { \sys_if_engine_luatex_p: }
+ { \sys_if_engine_xetex_p: }
+ { \@@_non_latin:n { "2126 } }
+ { \exp_not:N \textohm }
+ }
+ {
+ \@ifpackageloaded { fontspec }
+ { \exp_not:V \l_@@_tmpb_tl }
+ {
+ \bool_lazy_or:nnTF
+ {
+ \@ifclassloaded { beamer }
+ \c_true_bool
+ \c_false_bool
+ }
+ {
+ \@ifpackageloaded { kmath }
+ \c_true_bool
+ \c_false_bool
+ }
+ { \exp_not:V \l_@@_tmpb_tl }
+ { \exp_not:V \l_@@_tmpa_tl }
+ }
+ }
}
}
}
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx 2024-04-24 20:20:30 UTC (rev 71065)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx 2024-04-24 20:20:41 UTC (rev 71066)
@@ -86,7 +86,7 @@
% A small number of \LaTeXe{} math mode commands are assumed to be available
% as part of the formatted output. The \cs{mathchoice} command
% (normally the \TeX{} primitive) is needed when using different settings
-% for inline and siplay |per-mode|. The commands \cs{frac}, \cs{mathrm},
+% for inline and display |per-mode|. The commands \cs{frac}, \cs{mathrm},
% \cs{mbox}, \verb*|\ | and \cs{,} are used by the standard module settings.
% For the display of colored (highlighted) and cancelled units, the commands
% \cs{textcolor} and \cs{cancel} are assumed to be available.
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2024-04-24 20:20:30 UTC (rev 71065)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2024-04-24 20:20:41 UTC (rev 71066)
@@ -121,7 +121,7 @@
%
% Identify the package and give the over all version information.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2024-04-23} {3.3.15}
+\ProvidesExplPackage {siunitx} {2024-04-24} {3.3.16}
{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 2024-04-24 20:20:30 UTC (rev 71065)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2024-04-24 20:20:41 UTC (rev 71066)
@@ -41,7 +41,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {siunitx} {2024-04-23} {3.3.15}
+\ProvidesExplPackage {siunitx} {2024-04-24} {3.3.16}
{A comprehensive (SI) units package}
\msg_new:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -7733,18 +7733,17 @@
{
\siunitx_declare_unit:Nen \degree
{
- \exp_not:N \ifmmode
- \@ifpackageloaded { unicode-math }
- { \__siunitx_symbol_non_latin:n { "00B0 } }
- { { } ^ { \exp_not:N \circ } }
- \exp_not:N \else
- \exp_not:N \text
- {
- \@ifpackageloaded { inputenc }
- { \exp_not:N \textdegree }
- { \__siunitx_symbol_non_latin:n { "00B0 } }
- }
- \exp_not:N \fi
+ \exp_not:N \TextOrMath
+ {
+ \@ifpackageloaded { inputenc }
+ { \exp_not:N \textdegree }
+ { \__siunitx_symbol_non_latin:n { "00B0 } }
+ }
+ {
+ \@ifpackageloaded { unicode-math }
+ { \__siunitx_symbol_non_latin:n { "00B0 } }
+ { { } ^ { \exp_not:N \circ } }
+ }
}
{ quantity-product = { } }
}
@@ -7759,18 +7758,17 @@
\group_end:
\siunitx_declare_unit:Ne \degreeCelsius
{
- \exp_not:N \ifmmode
- \@ifpackageloaded { unicode-math }
- { \__siunitx_symbol_non_latin:n { "00B0 } }
- { { } ^ { \exp_not:N \circ } }
- \exp_not:N \else
- \exp_not:N \text
- {
- \@ifpackageloaded { inputenc }
- { \exp_not:N \textdegree }
- { \__siunitx_symbol_non_latin:n { "00B0 } }
- }
- \exp_not:N \fi
+ \exp_not:N \TextOrMath
+ {
+ \@ifpackageloaded { inputenc }
+ { \exp_not:N \textdegree }
+ { \__siunitx_symbol_non_latin:n { "00B0 } }
+ }
+ {
+ \@ifpackageloaded { unicode-math }
+ { \__siunitx_symbol_non_latin:n { "00B0 } }
+ { { } ^ { \exp_not:N \circ } }
+ }
C
}
}
@@ -7796,34 +7794,33 @@
{ \exp_not:V \l__siunitx_symbol_tmpa_tl }
}
{
- \exp_not:N \ifmmode
- \@ifpackageloaded { fontspec }
- { \exp_not:V \l__siunitx_symbol_tmpb_tl }
- {
- \bool_lazy_or:nnTF
- {
- \@ifclassloaded { beamer }
- \c_true_bool
- \c_false_bool
- }
- {
- \@ifpackageloaded { kmath }
- \c_true_bool
- \c_false_bool
- }
- { \exp_not:V \l__siunitx_symbol_tmpb_tl }
- { \exp_not:V \l__siunitx_symbol_tmpa_tl }
- }
- \exp_not:N \else
- \exp_not:N \text
- {
- \bool_lazy_or:nnTF
- { \sys_if_engine_luatex_p: }
- { \sys_if_engine_xetex_p: }
- { \__siunitx_symbol_non_latin:n { "2126 } }
- { \exp_not:N \textohm }
- }
- \exp_not:N \fi
+ \exp_not:N \TextOrMath
+ {
+ \bool_lazy_or:nnTF
+ { \sys_if_engine_luatex_p: }
+ { \sys_if_engine_xetex_p: }
+ { \__siunitx_symbol_non_latin:n { "2126 } }
+ { \exp_not:N \textohm }
+ }
+ {
+ \@ifpackageloaded { fontspec }
+ { \exp_not:V \l__siunitx_symbol_tmpb_tl }
+ {
+ \bool_lazy_or:nnTF
+ {
+ \@ifclassloaded { beamer }
+ \c_true_bool
+ \c_false_bool
+ }
+ {
+ \@ifpackageloaded { kmath }
+ \c_true_bool
+ \c_false_bool
+ }
+ { \exp_not:V \l__siunitx_symbol_tmpb_tl }
+ { \exp_not:V \l__siunitx_symbol_tmpa_tl }
+ }
+ }
}
}
}
More information about the tex-live-commits
mailing list.