summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-26 21:06:44 +0000
committerKarl Berry <karl@freefriends.org>2022-01-26 21:06:44 +0000
commit2bc75edcb41d1753bb0a6c08524226af14b7b8ac (patch)
treefb38c515de4ff54013a04c955dfbb0d828468944
parent3df5e896a6bea265eb74a5f3bf555ac8df711e31 (diff)
siunitx (26jan22)
git-svn-id: svn://tug.org/texlive/trunk@61746 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md16
-rw-r--r--Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdfbin607607 -> 608131 bytes
-rw-r--r--Master/texmf-dist/doc/latex/siunitx/siunitx.pdfbin638357 -> 639472 bytes
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx-angle.dtx2
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx-locale.dtx2
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx2
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx13
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx2
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.dtx2
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.tex21
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty13
11 files changed, 53 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md b/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
index 18a32f8d8e5..bda701dec10 100644
--- a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
+++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
index 65ba4d68949..b2f80bc1eaa 100644
--- a/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
+++ b/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
index f3a4ee3924c..4237617c1f2 100644
--- a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
+++ b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-angle.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-angle.dtx
index 3cd8db4b740..ac1c19638ca 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx-angle.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/siunitx/siunitx-locale.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-locale.dtx
index 681ad06ee72..3bdb5c941e7 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx-locale.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx
index 95e067aa97a..af3c88a095c 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx-symbol.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx
index 45b6689f667..20683fb63ea 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx-table.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx
index 1ac6db55966..cc3b5a2b41c 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx-unit.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
index 3274b37931e..646594e8da3 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
+++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/source/latex/siunitx/siunitx.tex b/Master/texmf-dist/source/latex/siunitx/siunitx.tex
index 73067969363..f6ad5283457 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.tex
+++ b/Master/texmf-dist/source/latex/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.
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index 36f8ed586e7..4f9bd12f8f6 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
@@ -42,7 +42,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {siunitx} {2022-01-20} {3.0.43}
+\ProvidesExplPackage {siunitx} {2022-01-26} {3.0.44}
{A comprehensive (SI) units package}
\msg_new:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -4725,7 +4725,7 @@
\hbox_set:Nn \l__siunitx_table_decimal_box
{
\siunitx_print_number:x
- { \__siunitx_table_print_marker_aux:w #4 }
+ { \__siunitx_table_print_marker_aux:w #4 \q_stop }
}
\__siunitx_table_center_marker:
\use:c { __siunitx_table_align_ \l__siunitx_table_align_text_tl :n }
@@ -4737,11 +4737,12 @@
}
}
\cs_new:Npn \__siunitx_table_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}
}
\cs_new_protected:Npn \__siunitx_table_print_format:nnn #1#2#3
{