From b0de1f59bc796461f68938d74bf9ed12963ba720 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 2 Dec 2007 16:07:07 +0000 Subject: SIunits update from CTAN git-svn-id: svn://tug.org/texlive/trunk@5681 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/SIunits/SIunits.sty | 21 +++++++++++++++++---- Master/texmf-dist/tex/latex/SIunits/binary.sty | 4 ++-- 2 files changed, 19 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex') 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!}} diff --git a/Master/texmf-dist/tex/latex/SIunits/binary.sty b/Master/texmf-dist/tex/latex/SIunits/binary.sty index a98416bd328..f17b2bb08cf 100644 --- a/Master/texmf-dist/tex/latex/SIunits/binary.sty +++ b/Master/texmf-dist/tex/latex/SIunits/binary.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] -- cgit v1.2.3