summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/chemstyle/chemstyle.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/chemstyle/chemstyle.dtx')
-rw-r--r--Master/texmf-dist/source/latex/chemstyle/chemstyle.dtx78
1 files changed, 47 insertions, 31 deletions
diff --git a/Master/texmf-dist/source/latex/chemstyle/chemstyle.dtx b/Master/texmf-dist/source/latex/chemstyle/chemstyle.dtx
index d212c772739..bf700c99c44 100644
--- a/Master/texmf-dist/source/latex/chemstyle/chemstyle.dtx
+++ b/Master/texmf-dist/source/latex/chemstyle/chemstyle.dtx
@@ -107,8 +107,6 @@ This work consists of the file chemstyle.dtx and
\else
\expandafter\endgroup
\fi
-\immediate\write18{makeindex -s gglo.ist -o chemstyle.gls chemstyle.glo}
-\immediate\write18{makeindex -s gind.ist -o chemstyle.ind chemstyle.idx}
%</internal>
%<*package|chemscheme>
\NeedsTeXFormat{LaTeX2e}
@@ -374,13 +372,24 @@ This work consists of the file chemstyle.dtx and
% \item either \pkg{siunitx} or \pkg{SIunits} (otherwise no
% units are defined);
% \item \pkg{psfrag};
-% \item \pkg{varioref} (part of the standard \pkg{tools} bundle);
+% \item \pkg{varioref} (part of the standard \pkg{tools} bundle):
+% only loaded if not turned off;
% \item \pkg{xspace} (part of the standard \pkg{tools} bundle).
%\end{itemize}
% These are normally present in the current major \TeX\ distributions,
% but are also available from \href{http://www.ctan.org}{The
% Comprehensive TeX Archive Network}.
%
+%\DescribeOption{varioref}
+%\changes{v2.0a}{2009/08/23}{New \opt{varioref} option}
+% The option \opt{varioref} can be used to determine whether
+% \pkg{chemstyle} loads the \pkg{varioref} package. For example,
+% users of \pkg{cleveref} will want to turn off loading of
+% \pkg{varioref} using:
+%\begin{LaTeXdemo}[code only]
+% \usepackage[varioref=false]{chemstyle}
+%\end{LaTeXdemo}
+%
%\section{The \pkg{chemstyle} package: tools for chemistry}
%
% The package recognises a number of key--value options when loading.
@@ -905,7 +914,7 @@ This work consists of the file chemstyle.dtx and
%
% \pkg{chemstyle} and \pkg{chemscheme} are designed to avoid, as far as
% possible, clashes with other packages. The standard packages
-% \pkg{graphicx} and \pkg{varioref} are used by the budnle. If you
+% \pkg{graphicx} and \pkg{varioref} are used by the bundle. If you
% need to load these with specific options, this needs to be done
% \emph{before} loading \pkg{chemstyle} (or \pkg{chemscheme}).
%
@@ -978,8 +987,8 @@ This work consists of the file chemstyle.dtx and
% \begin{macrocode}
%<*package>
\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@
@@ -1001,6 +1010,7 @@ This work consists of the file chemstyle.dtx and
%\begin{macro}{\ifcst@radhyphen}
%\begin{macro}{\ifcst@radpreix}
%\begin{macro}{\ifcst@radsuper}
+%\begin{macro}{\ifcst@varioref}
%\begin{macro}{\ifcst@xspace}
% Some simple Boolean options.
% \begin{macrocode}
@@ -1013,9 +1023,11 @@ This work consists of the file chemstyle.dtx and
\DeclareBoolOption[true]{radhyphen}
\DeclareBoolOption[true]{radprefix}
\DeclareBoolOption[false]{radsuper}
+\DeclareBoolOption[true]{varioref}
\DeclareBoolOption[true]{xspace}
% \end{macrocode}
%\end{macro}
+%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
@@ -1042,7 +1054,8 @@ This work consists of the file chemstyle.dtx and
\DeclareStringOption{language}
\setkeys{cst}{%
journal = ,
- language = english
+ language = english,
+ varioref = true
}
% \end{macrocode}
%\end{macro}
@@ -1462,21 +1475,6 @@ This work consists of the file chemstyle.dtx and
%\end{macro}
%\end{macro}
%
-%\subsection{Cross-references}
-%
-% The naming for cross-references is sorted out properly using the
-% \pkg{varioref} package. Schemes are done at the start of the document
-% as the definition of \cs{schemename} may not exist yet.
-% \begin{macrocode}
-\labelformat{figure}{\figurename~#1}
-\labelformat{table}{\tablename~#1}
-\AtEndOfPackage{%
- \AtBeginDocument{%
- \labelformat{scheme}{\schemename~#1}%
- }%
-}
-% \end{macrocode}
-%
% \subsection{Handling reference section naming}
%
%\begin{macro}{bibnote}
@@ -1667,6 +1665,24 @@ This work consists of the file chemstyle.dtx and
\ProcessKeyvalOptions{cst}
% \end{macrocode}
%
+%\subsection{Cross-references}
+%
+% The naming for cross-references is sorted out properly using the
+% \pkg{varioref} package. Schemes are done at the start of the document
+% as the definition of \cs{schemename} may not exist yet.
+% \begin{macrocode}
+\ifcst@varioref
+ \RequirePackage{varioref}
+ \labelformat{figure}{\figurename~#1}
+ \labelformat{table}{\tablename~#1}
+ \AtEndOfPackage{%
+ \AtBeginDocument{%
+ \labelformat{scheme}{\schemename~#1}%
+ }%
+ }
+\fi
+% \end{macrocode}
+%
%\subsection{Float formatting}
%
%\begin{macro}{\cst@float@memoir@correct}
@@ -1749,7 +1765,7 @@ This work consists of the file chemstyle.dtx and
% \begin{macrocode}
%<*chemscheme>
\ProvidesPackage{chemscheme}
- [2009/06/06 v2.0 Schemes for chemistry]
+ [2009/08/23 v2.0a Schemes for chemistry]
\RequirePackage{kvoptions,psfrag}
\SetupKeyvalOptions{
family=cst,
@@ -2233,7 +2249,7 @@ This work consists of the file chemstyle.dtx and
% \begin{macrocode}
%<*angew>
\ProvidesFile{angew.chemstyle.cfg}
- [2009/06/06 v2.0 Angew. Chem. journal style]
+ [2009/08/23 v2.0a Angew. Chem. journal style]
\setkeys{cst}{
abbremph = false,
radhyphen = false
@@ -2255,7 +2271,7 @@ This work consists of the file chemstyle.dtx and
% \begin{macrocode}
%<*ic>
\ProvidesFile{ic.chemstyle.cfg}
- [2009/06/06 v2.0 Inorg. Chem. journal style]
+ [2009/08/23 v2.0a Inorg. Chem. journal style]
\DeclareCaptionLabelSeparator{perquad}{.\quad}
\captionsetup{
labelfont = {bf,it,sf},
@@ -2288,7 +2304,7 @@ This work consists of the file chemstyle.dtx and
% \begin{macrocode}
%<*jacs>
\ProvidesFile{jacs.chemstyle.cfg}
- [2009/06/06 v2.0 J. Am. Chem. Soc. journal style]
+ [2009/08/23 v2.0a J. Am. Chem. Soc. journal style]
\DeclareCaptionLabelSeparator{perquad}{.\quad}
\captionsetup{
labelfont = {bf,it,sf},
@@ -2321,7 +2337,7 @@ This work consists of the file chemstyle.dtx and
% \begin{macrocode}
%<*jomc>
\ProvidesFile{jomc.chemstyle.cfg}
- [2009/06/06 v2.0 J. Organomet. Chem. journal style]
+ [2009/08/23 v2.0a J. Organomet. Chem. journal style]
\setkeys{cst}{
abbremph = false,
radhyphen = true,
@@ -2345,7 +2361,7 @@ This work consists of the file chemstyle.dtx and
% \begin{macrocode}
%<*jpc>
\ProvidesFile{jpc.chemstyle.cfg}
- [2009/06/06 v2.0 J. Phys. Chem. journal style]
+ [2009/08/23 v2.0a J. Phys. Chem. journal style]
\DeclareCaptionFormat{labelcaps}{\MakeUppercase{#1}#2#3}
\captionsetup{
font = bf,
@@ -2379,7 +2395,7 @@ This work consists of the file chemstyle.dtx and
% \begin{macrocode}
%<*orglett>
\ProvidesFile{orglett.chemstyle.cfg}
- [2009/06/06 v2.0 Org. Lett. journal style]
+ [2009/08/23 v2.0a Org. Lett. journal style]
\DeclareCaptionLabelSeparator{perquad}{.\quad}
\captionsetup{
labelfont = bf,
@@ -2503,7 +2519,7 @@ This work consists of the file chemstyle.dtx and
% \begin{macrocode}
%<*rsc>
\ProvidesFile{rsc.chemstyle.cfg}
- [2009/06/06 v2.0 RSC journal style]
+ [2009/08/23 v2.0a RSC journal style]
\captionsetup{
labelsep = quad,
labelfont = bf
@@ -2519,7 +2535,7 @@ This work consists of the file chemstyle.dtx and
% \begin{macrocode}
%<*tetlett>
\ProvidesFile{tetlett.chemstyle.cfg}
- [2009/06/06 v2.0 Tetrahedron Lett. journal style]
+ [2009/08/23 v2.0a Tetrahedron Lett. journal style]
\captionsetup{
labelsep = period,
labelfont = bf,