summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx')
-rw-r--r--Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx43
1 files changed, 20 insertions, 23 deletions
diff --git a/Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx b/Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx
index d9a0a2c381d..fb90e48a8d7 100644
--- a/Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx
+++ b/Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx
@@ -289,7 +289,7 @@
% internal systems for generating new floats; for the standard
% classes, \pkg{floatrow} is used by default. The \opt{floats}
% package option can be used to control which method is employed.
-% This uses the key--value system, can can be given the values
+% This uses the key--value system, can be given the values
% \opt{float}, \opt{floatrow} or \opt{memoir}:
%\begin{LaTeXexample}[noexample]
% \usepackage[floats=float]{chemscheme}
@@ -334,7 +334,7 @@
%\DescribeMacro{\floatcontentsleft}
%\DescribeMacro{\floatcontentsright}
% The \LaTeX\ default is to position all float contents flush-left.
-% There is no ``hook'' provided to alter this. The \currpkg packages
+% There is no ``hook'' provided to alter this. The \currpkg package
% therefore provides commands to align all float contents
% automatically. As the macro names make clear,
% \cs{floatcontentscentre} will make all floats centred (for users
@@ -390,7 +390,7 @@
%\subsection{Usage}
% Getting automated numbers into schemes is a two step procedure. In
% the first step, schemes (or other graphics) should be prepared as
-% normal and saved as encapsulated postscript (EPS) files The most
+% normal and saved as encapsulated postscript (EPS) files. The most
% popular chemistry drawing package, \textsc{ChemDraw}, is able to do
% this from the \texttt{Save As \ldots} dialog.
%\DescribeMacro{\schemerefmarker}
@@ -413,7 +413,7 @@
% so for example to use \textsf{XXX} as the indicator for
% replacement in all graphics, you would execute:
%\begin{LaTeXexample}[noexample]
-% \renewcommand*{\chemeschemerefmarker}{XXX}
+% \renewcommand*{\schemerefmarker}{XXX}
%\end{LaTeXexample}
%
%\DescribeMacro{\schemeref}
@@ -649,7 +649,7 @@ An example file for PDFLaTeX use.
% plus the \pkg{babel} system means ensuring every possibility is
% covered is impossible. Users are asked to report any problems with
% compatibility with other packages or emulation of the standard
-% float types. Additional \pkg{babel} stings are also welcome, as
+% float types. Additional \pkg{babel} strings are also welcome, as
% are improvements to those already provided.
%
% \StopEventually{\bibliographystyle{unsrt}\bibliography{chemscheme}}
@@ -669,7 +669,7 @@ An example file for PDFLaTeX use.
\def\csh@id$#1: #2.#3 #4 #5-#6-#7 #8 #9${%
#5/#6/#7\space v1.4\space}
\ProvidesPackage{chemscheme}
- [\csh@id $Id: chemscheme.dtx 36 2008-07-17 07:39:53Z joseph $
+ [\csh@id $Id: chemscheme.dtx 45 2008-07-23 11:27:13Z joseph $
Support for chemical schemes]
% \end{macrocode}
%\end{macro}
@@ -1821,8 +1821,14 @@ showpage
\usepackage[scaled=0.95]{helvet}
\usepackage[version=3]{mhchem}
\usepackage[osf]{mathpazo}
-\usepackage{booktabs,array,url,courier,xspace,etoolbox,varioref}
+\usepackage{booktabs,array,url,courier,xspace,varioref}
\usepackage{upgreek,ifpdf,float,caption,longtable,babel}
+\begingroup
+ \@ifundefined{eTeXversion}
+ {\aftergroup\@gobble}
+ {\aftergroup\@firstofone}
+\endgroup
+{\usepackage{etoolbox}}
\floatstyle{plaintop}
\restylefloat{table}
\labelformat{figure}{\figurename~#1}
@@ -1886,24 +1892,13 @@ showpage
\hbox to\linewidth{\box\lst@samplebox\hss}%
\end{minipage}%
\end{list}}
-\let\LaTeXcodenoexample\LaTeXcodeexample
-\newcommand*{\LaTeXcodenoexampleend}{%
- \egroup
- \setlength\LaTeXwidth{\wd\lst@samplebox}%
- \begin{list}{}{%
- \setlength\itemindent{0pt}
- \setlength\leftmargin{0pt}
- \setlength\rightmargin{0pt}}%
- \item
- \begin{minipage}[c]{\LaTeXwidth}
- \hbox to\linewidth{\box\lst@samplebox\hss}%
- \end{minipage}%
- \end{list}}
\newcommand*{\LaTeXcodefloat}{%
\setkeys{lst}{tabsize=4,gobble=3,breakindent=0pt,
basicstyle=\small\ttfamily,basewidth=0.51em,
keywordstyle=\color{blue}}%
\lst@BeginAlsoWriteFile{\LaTeXexamplefile}}
+\let\LaTeXcodenoexample\LaTeXcodefloat
+\let\LaTeXcodenoexampleend\@empty
\newcommand*{\LaTeXcodefloatend}{%
\MakePercentComment\catcode`\^^M=10\relax
\small
@@ -1978,9 +1973,11 @@ showpage
\DeclareRobustCommand*{\XeTeX}
{X\kern-.125em\lower.5ex\hbox{\reflectbox{E}}\kern-.1667em\TeX}
\providecommand*{\CTAN}{\textsc{ctan}}
-\patchcmd{\@addmarginpar}
- {\@latex@warning@no@line {Marginpar on page \thepage\space moved}}
- {\relax}{}{}
+\@ifpackageloaded{etoolbox}
+ {\patchcmd{\@addmarginpar}
+ {\@latex@warning@no@line {Marginpar on page \thepage\space moved}}
+ {\relax}{}{}}
+ {}
\newcounter{argument}
\g@addto@macro\endmacro{\setcounter{argument}{0}}
\newcommand*\darg[1]{%