diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx/siunitx.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/siunitx/siunitx.sty | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty index 80e5028ee35..f40b590df1a 100644 --- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty +++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty @@ -15,7 +15,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{siunitx} - [2009/12/25 v1.3g A comprehensive (SI) units package] + [2010/01/16 v1.4 A comprehensive (SI) units package] \begingroup \@ifundefined{eTeXversion} {\PackageError{siunitx} @@ -1091,6 +1091,26 @@ \si@log@inf{\string\mathtt not found}% \global\chardef\si@fam@tt=99\relax \fi} +\newcommand*\si@fam@detect@default{% + \edef\si@tempa{\familydefault}% + \edef\si@tempb{\sfdefault}% + \ifx\si@tempa\si@tempb + \sisetup + { + mathsrm = mathsf, + textrm = sffamily + }% + \fi + \edef\si@tempb{\ttdefault}% + \ifx\si@tempa\si@tempb + \sisetup + { + mathsrm = mathtt, + textrm = ttfamily + }% + \fi +} +\AtBeginDocument{\si@fam@detect@default} \newcommand*{\si@fam@ifbtext}[1]{% \if b\expandafter\@car\f@series\@nil #1\fi} @@ -3957,7 +3977,7 @@ {} \si@catcodes %% -%% Copyright (C) 2008-2009 by +%% Copyright (C) 2008-2010 by %% Joseph Wright <joseph.wright@morningstar2.co.uk> %% %% It may be distributed and/or modified under the conditions of |