summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/SIunits
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2007-12-02 16:07:07 +0000
committerNorbert Preining <preining@logic.at>2007-12-02 16:07:07 +0000
commitb0de1f59bc796461f68938d74bf9ed12963ba720 (patch)
tree5a1dadd28f2bfbdbf993f135db92c04e1e888a80 /Master/texmf-dist/source/latex/SIunits
parente248bd684640a14cfb36eeb3df6319483901f1e5 (diff)
SIunits update from CTAN
git-svn-id: svn://tug.org/texlive/trunk@5681 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/SIunits')
-rw-r--r--Master/texmf-dist/source/latex/SIunits/SIunits.dtx28
1 files changed, 24 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/SIunits/SIunits.dtx b/Master/texmf-dist/source/latex/SIunits/SIunits.dtx
index 4924b360f3e..5b1afac0b0c 100644
--- a/Master/texmf-dist/source/latex/SIunits/SIunits.dtx
+++ b/Master/texmf-dist/source/latex/SIunits/SIunits.dtx
@@ -42,8 +42,8 @@
% \iffalse
%<+package|binary>\def\SIunits@RCS$#1: #2 #3${#2}
%<+package|binary>\def\filename{SIunits.dtx}%Source File Name
-%<+package|binary>\xdef\fileversion{\SIunits@RCS$Revision: 1.35 $}%Revision generated by CS-RCS
-%<+package|binary>\xdef\filedate{\SIunits@RCS$Date: 2007/11/24 11:20:00 $}%Date generated by CS-RCS
+%<+package|binary>\xdef\fileversion{\SIunits@RCS$Revision: 1.36 $}%Revision generated by CS-RCS
+%<+package|binary>\xdef\filedate{\SIunits@RCS$Date: 2007/12/02 12:00:00 $}%Date generated by CS-RCS
%<+package|binary>\let\docversion=\fileversion
%<+package|binary>\let\docdate=\filedate
%<+package|binary>\NeedsTeXFormat{LaTeX2e}[1997/12/01]
@@ -422,6 +422,10 @@ Comprehensive TeX Archive Network (CTAN).
%\end{abstract}
%\newpage
%\section*{What's new?}
+%\subsubsection*{New in version~1.36}
+%\begin{enumerate}
+% \item Real minus sign in text mode
+%\end{enumerate}
%\subsubsection*{New in version~1.35}
%\begin{enumerate}
% \item Improved \cs{elecronvolt} appearance\footnote{All changes for this version suggested by Philip Ratcliffe}
@@ -2119,12 +2123,29 @@ Comprehensive TeX Archive Network (CTAN).
\DeclareRobustCommand*{\fourth}[1]{\power{#1}{4}}
% \end{macrocode}
% \end{macro}
+%
%\begin{macro}{\SIminus}
%\changes{v1.34}{2007/11/22}{New macro}
+%\changes{v1.35}{2007/12/02}{Use real minus sign in text mode}
+%\changes{v1.35}{2007/12/02}{Require \texttt{amstext} package}
% To allow text-mode and maths-mode use, the appearance of the minus
% sign needs to be controlled by a macro.
% \begin{macrocode}
-\DeclareRobustCommand*{\SIminus}{-}
+\RequirePackage{amstext}
+\DeclareRobustCommand*{\SIminus}{%
+ \let\SI@tempa\relax
+ \ifmmode
+ \edef\SI@tempb{bold}%
+ \ifx\math@version\SI@tempb
+ \let\SI@tempa\boldmath%
+ \fi
+ \else
+ \if b\expandafter\@car\f@series\@nil
+ \let\SI@tempa\bfseries%
+ \fi
+ \fi
+ \text{\SI@tempa$-$}%
+}
% \end{macrocode}
%\end{macro}
% The macros |\reciprocal|, |\rpsquare|, |\rpsquared|, |\rpcubic|, |\rpcubed| and |\rpfourth| provide the reciprocal (negative power): e.\,g.
@@ -3095,7 +3116,6 @@ Comprehensive TeX Archive Network (CTAN).
% \begin{macrocode}
\DeclareOption{textstyle}{\renewcommand\SI@fstyle[1]{\@text{\protect#1}}%
\@textstyletrue%
-\renewcommand*{\SIminus}{--}%
\typeout{Option `textstyle' provided!}}
% \end{macrocode}
% \subsection{compatibility options}