diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/SIunits/SIunits.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/SIunits/SIunits.sty | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/SIunits/SIunits.sty b/Master/texmf-dist/tex/latex/SIunits/SIunits.sty index 65cefad8627..464e83ccbf6 100644 --- a/Master/texmf-dist/tex/latex/SIunits/SIunits.sty +++ b/Master/texmf-dist/tex/latex/SIunits/SIunits.sty @@ -20,8 +20,8 @@ %% \def\SIunits@RCS$#1: #2 #3${#2} \def\filename{SIunits.dtx}%Source File Name -\xdef\fileversion{\SIunits@RCS$Revision: 1.35 $}%Revision generated by CS-RCS -\xdef\filedate{\SIunits@RCS$Date: 2007/11/24 11:20:00 $}%Date generated by CS-RCS +\xdef\fileversion{\SIunits@RCS$Revision: 1.36 $}%Revision generated by CS-RCS +\xdef\filedate{\SIunits@RCS$Date: 2007/12/02 12:00:00 $}%Date generated by CS-RCS \let\docversion=\fileversion \let\docdate=\filedate \NeedsTeXFormat{LaTeX2e}[1997/12/01] @@ -170,7 +170,21 @@ \DeclareRobustCommand*{\cubic}[1]{\power{#1}{3}} \DeclareRobustCommand*{\cubed}{\ensuremath{^{\SI@fstyle{3}}}} \DeclareRobustCommand*{\fourth}[1]{\power{#1}{4}} -\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$-$}% +} \DeclareRobustCommand*{\reciprocal}[1]{\power{#1}{\SIminus1}} \DeclareRobustCommand*{\rp}{\reciprocal} \DeclareRobustCommand*{\rpsquare}[1]{\power{#1}{\SIminus2}} @@ -537,7 +551,6 @@ \DeclareOption{thinqspace}{\@thinqspace{Option `thinqspace' provided!}} \DeclareOption{textstyle}{\renewcommand\SI@fstyle[1]{\@text{\protect#1}}% \@textstyletrue% -\renewcommand*{\SIminus}{--}% \typeout{Option `textstyle' provided!}} \DeclareOption{amssymb}{\@redefsquaretrue% \typeout{Option `amssymb' provided!}} |