summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
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 /Master/texmf-dist/source
parent3df5e896a6bea265eb74a5f3bf555ac8df711e31 (diff)
siunitx (26jan22)
git-svn-id: svn://tug.org/texlive/trunk@61746 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-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
7 files changed, 31 insertions, 13 deletions
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.