diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty b/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty index b810230c4a3..70db3750fdb 100644 --- a/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty +++ b/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty @@ -14,7 +14,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{chemstyle} - [2010/04/13 v2.0h Schemes and style for chemistry] + [2010/06/06 v2.0i Schemes and style for chemistry] \RequirePackage{amstext,caption,chemscheme,xspace} \SetupKeyvalOptions{ family=cst, @@ -108,14 +108,12 @@ \expandafter\xspace \fi } -\@ifpackageloaded{siunitx}{ - \requiresiconfigs{synchem} +\@ifpackageloaded{siunitx}{% }{% \@ifpackageloaded{SIunits}{}{% \@ifpackageloaded{unitsdef}{}{% \IfFileExists{siunitx.sty}{% \RequirePackage{siunitx} - \AtBeginDocument{\requiresiconfigs{synchem}}% }{% \IfFileExists{SIunits.sty}{% \RequirePackage{SIunits} @@ -129,6 +127,15 @@ } } } +\@ifpackageloaded{siunitx}{% + \sisetup{load-configurations = abbreviations} + \DeclareSIUnit\cubiccentimeter{\cubic\centi\metre} + \DeclareSIUnit\cmc{\cubic\centi\metre} + \DeclareSIUnit\molar{\mole\per\cubic\deci\metre} + \DeclareSIUnit\Molar{\textsc{m}} + \DeclareSIUnit\torr{torr} + \sisetup{load-configurations = abbreviations} +}{} \@ifpackageloaded{SIunits}{% \newcommand*\cubiccentimeter{\centi\metre\cubed} \newcommand*\Molar{\textsc{m}} |