From b5deca5ab245af14ca010a3e61225189e9c860f9 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 27 Jan 2022 03:00:41 +0000 Subject: CTAN sync 202201270300 --- macros/latex/contrib/siunitx/CHANGELOG.md | 16 +++++++++++++++- macros/latex/contrib/siunitx/siunitx-angle.dtx | 2 +- macros/latex/contrib/siunitx/siunitx-code.pdf | Bin 607607 -> 608131 bytes macros/latex/contrib/siunitx/siunitx-locale.dtx | 2 +- macros/latex/contrib/siunitx/siunitx-symbol.dtx | 2 +- macros/latex/contrib/siunitx/siunitx-table.dtx | 13 +++++++------ macros/latex/contrib/siunitx/siunitx-unit.dtx | 2 +- macros/latex/contrib/siunitx/siunitx.dtx | 2 +- macros/latex/contrib/siunitx/siunitx.pdf | Bin 638357 -> 639472 bytes macros/latex/contrib/siunitx/siunitx.tex | 21 +++++++++++++++++++-- 10 files changed, 46 insertions(+), 14 deletions(-) (limited to 'macros/latex/contrib/siunitx') diff --git a/macros/latex/contrib/siunitx/CHANGELOG.md b/macros/latex/contrib/siunitx/CHANGELOG.md index 18a32f8d8e..bda701dec1 100644 --- a/macros/latex/contrib/siunitx/CHANGELOG.md +++ b/macros/latex/contrib/siunitx/CHANGELOG.md @@ -7,8 +7,21 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to ## [Unreleased] +## [v3.0.44] - 2022-01-26 + +### Added +- Hint concerning hyphen inside `\text` + +### Fixed +- Handling of `output-exponent-marker` in tables (see issue + [\#578](https://github.com/josephwright/siunitx/issues/578)) + ## [v3.0.43] - 2022-01-20 +### Fixed +- Printing `\ohm` with `beamer` class (see issue + [\#572](https://github.com/josephwright/siunitx/issues/572)) + ## [v3.0.42] - 2022-01-18 ### Added @@ -1673,7 +1686,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.43...HEAD +[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.44...HEAD +[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 [v3.0.42]: https://github.com/josephwright/siunitx/compare/v3.0.41...v3.0.42 [v3.0.41]: https://github.com/josephwright/siunitx/compare/v3.0.40...v3.0.41 diff --git a/macros/latex/contrib/siunitx/siunitx-angle.dtx b/macros/latex/contrib/siunitx/siunitx-angle.dtx index 3cd8db4b74..ac1c19638c 100644 --- a/macros/latex/contrib/siunitx/siunitx-angle.dtx +++ b/macros/latex/contrib/siunitx/siunitx-angle.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% File: siunitx-angle.dtx Copyright (C) 2016-2019,2021 Joseph Wright +% File: siunitx-angle.dtx Copyright (C) 2016-2019,2021,2022 Joseph Wright % % It may be distributed and/or modified under the conditions of the % LaTeX Project Public License (LPPL), either version 1.3c of this diff --git a/macros/latex/contrib/siunitx/siunitx-code.pdf b/macros/latex/contrib/siunitx/siunitx-code.pdf index 65ba4d6894..b2f80bc1ea 100644 Binary files a/macros/latex/contrib/siunitx/siunitx-code.pdf and b/macros/latex/contrib/siunitx/siunitx-code.pdf differ diff --git a/macros/latex/contrib/siunitx/siunitx-locale.dtx b/macros/latex/contrib/siunitx/siunitx-locale.dtx index 681ad06ee7..3bdb5c941e 100644 --- a/macros/latex/contrib/siunitx/siunitx-locale.dtx +++ b/macros/latex/contrib/siunitx/siunitx-locale.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% File: siunitx-locale.dtx Copyright (C) 2020,2021 Joseph Wright +% File: siunitx-locale.dtx Copyright (C) 2020-2022 Joseph Wright % % It may be distributed and/or modified under the conditions of the % LaTeX Project Public License (LPPL), either version 1.3c of this diff --git a/macros/latex/contrib/siunitx/siunitx-symbol.dtx b/macros/latex/contrib/siunitx/siunitx-symbol.dtx index 95e067aa97..af3c88a095 100644 --- a/macros/latex/contrib/siunitx/siunitx-symbol.dtx +++ b/macros/latex/contrib/siunitx/siunitx-symbol.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% File: siunitx-symbol.dtx Copyright (C) 2018-2021 Joseph Wright +% File: siunitx-symbol.dtx Copyright (C) 2018-2022 Joseph Wright % % It may be distributed and/or modified under the conditions of the % LaTeX Project Public License (LPPL), either version 1.3c of this diff --git a/macros/latex/contrib/siunitx/siunitx-table.dtx b/macros/latex/contrib/siunitx/siunitx-table.dtx index 45b6689f66..20683fb63e 100644 --- a/macros/latex/contrib/siunitx/siunitx-table.dtx +++ b/macros/latex/contrib/siunitx/siunitx-table.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% File: siunitx-table.dtx Copyright (C) 2016-2019,2021 Joseph Wright +% File: siunitx-table.dtx Copyright (C) 2016-2019,2021,2022 Joseph Wright % % It may be distributed and/or modified under the conditions of the % LaTeX Project Public License (LPPL), either version 1.3c of this @@ -1217,7 +1217,7 @@ \hbox_set:Nn \l_@@_decimal_box { \siunitx_print_number:x - { \@@_print_marker_aux:w #4 } + { \@@_print_marker_aux:w #4 \q_stop } } \@@_center_marker: \use:c { @@_align_ \l_@@_align_text_tl :n } @@ -1229,11 +1229,12 @@ } } \cs_new:Npn \@@_print_marker_aux:w - #1 \q_nil #2 \q_nil #3 \q_nil #4 \q_nil #5 \q_nil #6 \q_nil #7 \q_nil + #1 \q_nil #2 \q_nil #3 \q_nil #4 \q_nil #5 + \q_nil #6 \q_nil #7 \q_nil #8 \q_stop { - \exp_not:n {#1#2#3#4#5} - \tl_if_blank:nT {#1#2#3#4#5} { { } } - \exp_not:n {#6#7} + \exp_not:n {#1#2#3#4#5#6} + \tl_if_blank:nT {#1#2#3#4#5#6} { { } } + \exp_not:n {#7#8} } % \end{macrocode} % For positioning based on a format, we have to work part-by-part as there diff --git a/macros/latex/contrib/siunitx/siunitx-unit.dtx b/macros/latex/contrib/siunitx/siunitx-unit.dtx index 1ac6db5596..cc3b5a2b41 100644 --- a/macros/latex/contrib/siunitx/siunitx-unit.dtx +++ b/macros/latex/contrib/siunitx/siunitx-unit.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% File: siunitx-unit.dtx Copyright (C) 2014-2021 Joseph Wright +% File: siunitx-unit.dtx Copyright (C) 2014-2022 Joseph Wright % % It may be distributed and/or modified under the conditions of the % LaTeX Project Public License (LPPL), either version 1.3c of this diff --git a/macros/latex/contrib/siunitx/siunitx.dtx b/macros/latex/contrib/siunitx/siunitx.dtx index 3274b37931..646594e8da 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} {2022-01-20} {3.0.43} +\ProvidesExplPackage {siunitx} {2022-01-26} {3.0.44} {A comprehensive (SI) units package} % \end{macrocode} % diff --git a/macros/latex/contrib/siunitx/siunitx.pdf b/macros/latex/contrib/siunitx/siunitx.pdf index f3a4ee3924..4237617c1f 100644 Binary files a/macros/latex/contrib/siunitx/siunitx.pdf and b/macros/latex/contrib/siunitx/siunitx.pdf differ diff --git a/macros/latex/contrib/siunitx/siunitx.tex b/macros/latex/contrib/siunitx/siunitx.tex index 7306796936..f6ad528345 100644 --- a/macros/latex/contrib/siunitx/siunitx.tex +++ b/macros/latex/contrib/siunitx/siunitx.tex @@ -1,6 +1,6 @@ \iffalse meta-comment -File: siunitx.tex Copyright (C) 2014-2021 Joseph Wright +File: siunitx.tex Copyright (C) 2014-2022 Joseph Wright It may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), either version 1.3c of this @@ -3111,6 +3111,23 @@ mathematics font without affecting the rest of the output. In some cases, simply forcing \cs{mathnormal} will suffice, but this is less reliable with non-Latin characters. +\subsection{Including a literal hyphen inside \cs{text}% + \label{sec:hint:hyphen-minus}} + +In most cases, a "-" character inside \cs{text} will represent a minus. The +package will therefore replace it with \cs{textminus}. However, this may be +problematic if you want a hyphen, or if you are using "-" in a piece of \TeX{} +syntax. You can prevent this by using a second set of braces +\begin{LaTeXdemo}[code only] + \DeclareSIUnit\electronvolt{\text{{e\kern -0.1em V}}} +\end{LaTeXdemo} +or by defining a protected command that will yield a hyphen on typesetting +\begin{LaTeXdemo}[code only] + \usepackage{etoolbox} + \newrobustcmd*\hyphenminus{-} + \DeclareSIUnit\electronvolt{\text{e\kern \hyphenminus0.1em V}} +\end{LaTeXdemo} + \subsection{Expanding content in tables% \label{sec:hint:expanding}} @@ -3870,7 +3887,7 @@ a copy of the log file generate by \LaTeX{} when reporting a bug (as the versions of packages can be important to solving the issue). Feedback can be sent in a range of ways. The development code and issue tracker -are hosted on \href{https://github.com/josephwright/siunitx/}{GitHub}. Issues +are hosted on GitHub: \url{https://github.com/josephwright/siunitx/}. Issues opened there are visible to other users and makes sure that they cannot be forgotten. -- cgit v1.2.3