summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/siunitx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-09-30 03:01:06 +0000
committerNorbert Preining <norbert@preining.info>2021-09-30 03:01:06 +0000
commitc0e66330261a0098e8041d4cc1428666ef598c30 (patch)
tree6048e9d4cf052ff3dc32b3ffd1081ef3c95bc42c /macros/latex/contrib/siunitx
parent0396814223158484c2f424d382bcd670de158d82 (diff)
CTAN sync 202109300301
Diffstat (limited to 'macros/latex/contrib/siunitx')
-rw-r--r--macros/latex/contrib/siunitx/CHANGELOG.md16
-rw-r--r--macros/latex/contrib/siunitx/siunitx-code.pdfbin1513710 -> 1515203 bytes
-rw-r--r--macros/latex/contrib/siunitx/siunitx-symbol.dtx32
-rw-r--r--macros/latex/contrib/siunitx/siunitx.dtx2
-rw-r--r--macros/latex/contrib/siunitx/siunitx.pdfbin637213 -> 638362 bytes
-rw-r--r--macros/latex/contrib/siunitx/siunitx.tex16
6 files changed, 51 insertions, 15 deletions
diff --git a/macros/latex/contrib/siunitx/CHANGELOG.md b/macros/latex/contrib/siunitx/CHANGELOG.md
index 0ffdc514f5..8818c33ad9 100644
--- a/macros/latex/contrib/siunitx/CHANGELOG.md
+++ b/macros/latex/contrib/siunitx/CHANGELOG.md
@@ -7,9 +7,20 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
## [Unreleased]
-## [v3.0.31]
+## [v3.0.32]
+
+### Added
+- Hint concerning non-standard font encodings (see issues
+ [#547](https://github.com/josephwright/siunitx/issues/550) and
+ [#550](https://github.com/josephwright/siunitx/issues/550))
### Changed
+- Use math mode symbol for degree where possible (see issue
+ [#550](https://github.com/josephwright/siunitx/issues/550))
+
+## [v3.0.31]
+
+### Fixed
- Avoid infinite loop with `tex4ht` (issue
[#549](https://github.com/josephwright/siunitx/issues/549))
@@ -1585,7 +1596,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.0.31...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.32...HEAD
+[v3.0.32]: https://github.com/josephwright/siunitx/compare/v3.0.31...v3.0.32
[v3.0.31]: https://github.com/josephwright/siunitx/compare/v3.0.30...v3.0.31
[v3.0.30]: https://github.com/josephwright/siunitx/compare/v3.0.29...v3.0.30
[v3.0.29]: https://github.com/josephwright/siunitx/compare/v3.0.28...v3.0.29
diff --git a/macros/latex/contrib/siunitx/siunitx-code.pdf b/macros/latex/contrib/siunitx/siunitx-code.pdf
index 5070f406eb..02cae532e0 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 1501f334b3..e851918722 100644
--- a/macros/latex/contrib/siunitx/siunitx-symbol.dtx
+++ b/macros/latex/contrib/siunitx/siunitx-symbol.dtx
@@ -179,12 +179,16 @@
{
\siunitx_declare_unit:Nxn \degree
{
- \exp_not:N \text
- {
- \@ifpackageloaded { inputenc }
- { \exp_not:N \textdegree }
- { \@@_non_latin:n { "00B0 } }
- }
+ \exp_not:N \ifmmode
+ { } ^ { \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
}
{ quantity-product = { } }
}
@@ -203,12 +207,16 @@
\group_end:
\siunitx_declare_unit:Nx \degreeCelsius
{
- \exp_not:N \text
- {
- \@ifpackageloaded { inputenc }
- { \exp_not:N \textdegree }
- { \@@_non_latin:n { "00B0 } }
- }
+ \exp_not:N \ifmmode
+ { } ^ { \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
C
}
}
diff --git a/macros/latex/contrib/siunitx/siunitx.dtx b/macros/latex/contrib/siunitx/siunitx.dtx
index 736c737e92..f786828c46 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} {2021-09-22} {3.0.31}
+\ProvidesExplPackage {siunitx} {2021-09-29} {3.0.32}
{A comprehensive (SI) units package}
% \end{macrocode}
%
diff --git a/macros/latex/contrib/siunitx/siunitx.pdf b/macros/latex/contrib/siunitx/siunitx.pdf
index 71b3565536..ac7c947955 100644
--- a/macros/latex/contrib/siunitx/siunitx.pdf
+++ b/macros/latex/contrib/siunitx/siunitx.pdf
Binary files differ
diff --git a/macros/latex/contrib/siunitx/siunitx.tex b/macros/latex/contrib/siunitx/siunitx.tex
index d6d300c399..3ef382d722 100644
--- a/macros/latex/contrib/siunitx/siunitx.tex
+++ b/macros/latex/contrib/siunitx/siunitx.tex
@@ -3063,6 +3063,22 @@ When the \pkg{units} package is loaded before \pkg{siunitx}, the command
\section{Hints for using \pkg{siunitx}}
+\subsection{Problematic font encodings%
+ \label{sec:hint:encoding}}
+
+The standard settings in \pkg{siunitx} assume that \enquote{sensible} input and
+font encoding values prevail. The input encoding is assumed to be \acro{UTF-8}
+in all cases. With pdf\LaTeX{}, the font encoding should be \texttt{T1},
+whereas for Xe\LaTeX{} and Lua\LaTeX{}, \texttt{TU} (Unicode font encoding) is
+expected.
+
+Some packages, for example \pkg{newtxtext} or \pkg{stix2}, either force
+\texttt{T1} or do not anticipate \texttt{TU} correctly with Xe\LaTeX{} and
+Lua\LaTeX{}. In these cases, the symbols used by \pkg{siunitx} may be
+incorrect. If correcting the font encoding is not possible, you will need to
+re-declare the relevant units using symbol definitions which account for this
+non-standard setup.
+
\subsection{Adjusting \cs{litre} and \cs{liter}%
\label{sec:hint:litre}}