summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/siunitx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-04-25 03:01:05 +0000
committerNorbert Preining <norbert@preining.info>2024-04-25 03:01:05 +0000
commit8c332d190fc87f5943debba153cad209c0f8952e (patch)
tree2dfcbedcfb35c6225af07ec323b508f94f29d3d2 /macros/latex/contrib/siunitx
parenta1bae2c92d8b9b9cbd26c71b0feb7abd276e5993 (diff)
CTAN sync 202404250301
Diffstat (limited to 'macros/latex/contrib/siunitx')
-rw-r--r--macros/latex/contrib/siunitx/CHANGELOG.md9
-rw-r--r--macros/latex/contrib/siunitx/siunitx-code.pdfbin645465 -> 645251 bytes
-rw-r--r--macros/latex/contrib/siunitx/siunitx-symbol.dtx101
-rw-r--r--macros/latex/contrib/siunitx/siunitx-unit.dtx2
-rw-r--r--macros/latex/contrib/siunitx/siunitx.dtx2
-rw-r--r--macros/latex/contrib/siunitx/siunitx.pdfbin703731 -> 703738 bytes
6 files changed, 59 insertions, 55 deletions
diff --git a/macros/latex/contrib/siunitx/CHANGELOG.md b/macros/latex/contrib/siunitx/CHANGELOG.md
index e469eef743..97c77dc5bc 100644
--- a/macros/latex/contrib/siunitx/CHANGELOG.md
+++ b/macros/latex/contrib/siunitx/CHANGELOG.md
@@ -7,6 +7,12 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
## [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 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
### 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
diff --git a/macros/latex/contrib/siunitx/siunitx-code.pdf b/macros/latex/contrib/siunitx/siunitx-code.pdf
index 5571b7dbd5..2dc8e65250 100644
--- a/macros/latex/contrib/siunitx/siunitx-code.pdf
+++ b/macros/latex/contrib/siunitx/siunitx-code.pdf
Binary files differ
diff --git a/macros/latex/contrib/siunitx/siunitx-symbol.dtx b/macros/latex/contrib/siunitx/siunitx-symbol.dtx
index 455adb6d59..ea97431841 100644
--- a/macros/latex/contrib/siunitx/siunitx-symbol.dtx
+++ b/macros/latex/contrib/siunitx/siunitx-symbol.dtx
@@ -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 }
+ }
+ }
}
}
}
diff --git a/macros/latex/contrib/siunitx/siunitx-unit.dtx b/macros/latex/contrib/siunitx/siunitx-unit.dtx
index a7fd28e8bc..7faf5740da 100644
--- a/macros/latex/contrib/siunitx/siunitx-unit.dtx
+++ b/macros/latex/contrib/siunitx/siunitx-unit.dtx
@@ -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.
diff --git a/macros/latex/contrib/siunitx/siunitx.dtx b/macros/latex/contrib/siunitx/siunitx.dtx
index 30b2d92366..6f49440f7c 100644
--- a/macros/latex/contrib/siunitx/siunitx.dtx
+++ b/macros/latex/contrib/siunitx/siunitx.dtx
@@ -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}
%
diff --git a/macros/latex/contrib/siunitx/siunitx.pdf b/macros/latex/contrib/siunitx/siunitx.pdf
index 9315de3947..3c058ce3fa 100644
--- a/macros/latex/contrib/siunitx/siunitx.pdf
+++ b/macros/latex/contrib/siunitx/siunitx.pdf
Binary files differ