summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/siunitx/siunitx.tex
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/latex/siunitx/siunitx.tex
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/latex/siunitx/siunitx.tex')
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.tex21
1 files changed, 19 insertions, 2 deletions
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.