texlive[60660] Master/texmf-dist: siunitx (30sep21)
commits+karl at tug.org
commits+karl at tug.org
Thu Sep 30 22:13:14 CEST 2021
Revision: 60660
http://tug.org/svn/texlive?view=revision&revision=60660
Author: karl
Date: 2021-09-30 22:13:14 +0200 (Thu, 30 Sep 2021)
Log Message:
-----------
siunitx (30sep21)
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.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-09-30 20:12:57 UTC (rev 60659)
+++ trunk/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md 2021-09-30 20:13:14 UTC (rev 60660)
@@ -7,9 +7,20 @@
## [Unreleased]
+## [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]
-### Changed
+### Fixed
- Avoid infinite loop with `tex4ht` (issue
[#549](https://github.com/josephwright/siunitx/issues/549))
@@ -1585,7 +1596,8 @@
### 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
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 2021-09-30 20:12:57 UTC (rev 60659)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx 2021-09-30 20:13:14 UTC (rev 60660)
@@ -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
}
}
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2021-09-30 20:12:57 UTC (rev 60659)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2021-09-30 20:13:14 UTC (rev 60660)
@@ -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}
%
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex 2021-09-30 20:12:57 UTC (rev 60659)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.tex 2021-09-30 20:13:14 UTC (rev 60660)
@@ -3063,6 +3063,22 @@
\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}}
Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2021-09-30 20:12:57 UTC (rev 60659)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2021-09-30 20:13:14 UTC (rev 60660)
@@ -42,7 +42,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {siunitx} {2021-09-22} {3.0.31}
+\ProvidesExplPackage {siunitx} {2021-09-29} {3.0.32}
{A comprehensive (SI) units package}
\msg_new:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -6349,12 +6349,16 @@
{
\siunitx_declare_unit:Nxn \degree
{
- \exp_not:N \text
- {
- \@ifpackageloaded { inputenc }
- { \exp_not:N \textdegree }
- { \__siunitx_symbol_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 }
+ { \__siunitx_symbol_non_latin:n { "00B0 } }
+ }
+ \exp_not:N \fi
}
{ quantity-product = { } }
}
@@ -6369,12 +6373,16 @@
\group_end:
\siunitx_declare_unit:Nx \degreeCelsius
{
- \exp_not:N \text
- {
- \@ifpackageloaded { inputenc }
- { \exp_not:N \textdegree }
- { \__siunitx_symbol_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 }
+ { \__siunitx_symbol_non_latin:n { "00B0 } }
+ }
+ \exp_not:N \fi
C
}
}
More information about the tex-live-commits
mailing list.