diff options
author | Norbert Preining <preining@logic.at> | 2007-12-02 16:07:07 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2007-12-02 16:07:07 +0000 |
commit | b0de1f59bc796461f68938d74bf9ed12963ba720 (patch) | |
tree | 5a1dadd28f2bfbdbf993f135db92c04e1e888a80 /Master/texmf-dist/tex/latex/SIunits/SIunits.sty | |
parent | e248bd684640a14cfb36eeb3df6319483901f1e5 (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/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!}} |