summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty')
-rw-r--r--Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty25
1 files changed, 15 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty b/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty
index 7fa4babf398..f8d2999cd85 100644
--- a/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty
+++ b/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty
@@ -14,8 +14,8 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{chemstyle}
- [2009/06/06 v2.0 Schemes and style for chemistry]
-\RequirePackage{amstext,caption,chemscheme,varioref,xspace}
+ [2009/08/23 v2.0a Schemes and style for chemistry]
+\RequirePackage{amstext,caption,chemscheme,xspace}
\SetupKeyvalOptions{
family=cst,
prefix=cst@
@@ -30,6 +30,7 @@
\DeclareBoolOption[true]{radhyphen}
\DeclareBoolOption[true]{radprefix}
\DeclareBoolOption[false]{radsuper}
+\DeclareBoolOption[true]{varioref}
\DeclareBoolOption[true]{xspace}
\DeclareStringOption{journal}
\DeclareDefaultOption{%
@@ -44,7 +45,8 @@
\DeclareStringOption{language}
\setkeys{cst}{%
journal = ,
- language = english
+ language = english,
+ varioref = true
}
\newif\ifcst@notes
\newif\ifcst@autonotes
@@ -278,13 +280,6 @@
\cst@radical@emph{#1}%
}%
}
-\labelformat{figure}{\figurename~#1}
-\labelformat{table}{\tablename~#1}
-\AtEndOfPackage{%
- \AtBeginDocument{%
- \labelformat{scheme}{\schemename~#1}%
- }%
-}
\AtBeginDocument{%
\@ifpackageloaded{notes2bib}{}{%
\newcounter{bibnote}%
@@ -411,6 +406,16 @@
\fi
\fi
\ProcessKeyvalOptions{cst}
+\ifcst@varioref
+ \RequirePackage{varioref}
+ \labelformat{figure}{\figurename~#1}
+ \labelformat{table}{\tablename~#1}
+ \AtEndOfPackage{%
+ \AtBeginDocument{%
+ \labelformat{scheme}{\schemename~#1}%
+ }%
+ }
+\fi
\newcommand*\cst@float@memoir@correct{%
\let\newfloat\@undefined
}