summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-08-25 00:47:32 +0000
committerKarl Berry <karl@freefriends.org>2009-08-25 00:47:32 +0000
commit0c39f6183ef8d27bb4bd8dec75424a862f0aa62f (patch)
tree53768c14993882994fd97040cd68de5e033f962a /Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty
parent6e1d56bcef3555d123c3ca24fa1eb956585d0478 (diff)
chemstyle update (24aug09)
git-svn-id: svn://tug.org/texlive/trunk@14850 c570f23f-e606-0410-a88d-b1316a301751
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
}