summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/achemso/achemso.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/achemso/achemso.cls')
-rw-r--r--Master/texmf-dist/tex/latex/achemso/achemso.cls81
1 files changed, 49 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/achemso/achemso.cls b/Master/texmf-dist/tex/latex/achemso/achemso.cls
index 1220dc8d3ca..4e6fda57f67 100644
--- a/Master/texmf-dist/tex/latex/achemso/achemso.cls
+++ b/Master/texmf-dist/tex/latex/achemso/achemso.cls
@@ -16,7 +16,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{achemso}
- [2009/07/11 v3.2d Submission to ACS journals]
+ [2009/07/29 v3.2e Submission to ACS journals]
\LoadClass[12pt,letter]{article}
\newcommand*\acs@warning{\ClassWarning{achemso}}
\newcommand*\acs@ifundefined[1]{%
@@ -964,7 +964,7 @@
}{}
\newenvironment{suppinfo}{%
\acs@subsection*{\suppinfoname}%
- \acs@toc@collect\acs@suppinfo@print
+ \acs@collect\acs@suppinfo@print
}{}
\newcommand\acs@suppinfo@print[1]{%
#1
@@ -1023,50 +1023,50 @@
\let\endabstract\acs@endabstract
}
\@onlypreamble\AbstractOn
-\newtoks\acs@toc@toks
-\newtoks\acs@toc@empty@toks
-\newcommand*\acs@toc@begins{}
-\newcommand*\acs@toc@content{}
-\newcommand\acs@toc@collect[1]{%
- \acs@toc@toks{%
- \expandafter#1\expandafter{\the\acs@toc@toks}%
+\newtoks\acs@collect@toks
+\newtoks\acs@collect@empty@toks
+\newcommand*\acs@collect@begins{}
+\newcommand*\acs@collect@content{}
+\newcommand\acs@collect[1]{%
+ \acs@collect@toks{%
+ \expandafter#1\expandafter{\the\acs@collect@toks}%
}%
- \edef\acs@toc@content{%
- \the\acs@toc@toks
+ \edef\acs@collect@content{%
+ \the\acs@collect@toks
\noexpand\end{\@currenvir}%
}%
- \acs@toc@toks\acs@toc@empty@toks
- \def\acs@toc@begins{b}%
+ \acs@collect@toks\acs@collect@empty@toks
+ \def\acs@collect@begins{b}%
\begingroup
- \expandafter\let\csname\@currenvir\endcsname\acs@toc@collect@aux
- \edef\acs@toc@content{%
+ \expandafter\let\csname\@currenvir\endcsname\acs@collect@aux
+ \edef\acs@collect@content{%
\expandafter\noexpand\csname\@currenvir\endcsname
}%
- \acs@toc@content
+ \acs@collect@content
}
-\newcommand*\acs@toc@collect@aux{}
-\long\def\acs@toc@collect@aux#1\end#2{%
- \edef\acs@toc@begins{%
- \acs@toc@collect@begins#1\begin\end
- \expandafter\@gobble\acs@toc@begins
+\newcommand*\acs@collect@aux{}
+\long\def\acs@collect@aux#1\end#2{%
+ \edef\acs@collect@begins{%
+ \acs@collect@begins@#1\begin\end
+ \expandafter\@gobble\acs@collect@begins
}%
- \ifx\@empty\acs@toc@begins
+ \ifx\@empty\acs@collect@begins
\endgroup
\@checkend{#2}%
- \acs@toc@collect@body{#1}%
+ \acs@collect@body{#1}%
\else
- \acs@toc@collect@body{#1\end{#2}}%
+ \acs@collect@body{#1\end{#2}}%
\fi
- \acs@toc@content
+ \acs@collect@content
}
-\newcommand*\acs@toc@collect@begins{}
-\long\def\acs@toc@collect@begins#1\begin#2{%
+\newcommand*\acs@collect@begins@{}
+\long\def\acs@collect@begins@#1\begin#2{%
\ifx\end#2\else
- b\expandafter\acs@toc@collect@begins
+ b\expandafter\acs@collect@begins@
\fi
}
-\newcommand\acs@toc@collect@body[1]{%
- \global\acs@toc@toks\expandafter{\the\acs@toc@toks#1}%
+\newcommand\acs@collect@body[1]{%
+ \global\acs@collect@toks\expandafter{\the\acs@collect@toks#1}%
}
\newcommand\acs@toc@print[1]{%
\begin{center}
@@ -1077,6 +1077,23 @@
}%
\end{center}%
}
+\newcommand\acs@abstract@print[1]{%
+ \global\long\def\acs@abstract@text{%
+ \if@twocolumn
+ \@restonecoltrue\onecolumn
+ \else
+ \@restonecolfalse\newpage
+ \fi
+ \acs@section*{Abstract}%
+ #1%
+ \if@restonecol
+ \twocolumn
+ \else
+ \newpage
+ \fi
+ }%
+ \AtEndDocument{\acs@abstract@text}%
+}
\newenvironment{tocentry}{%
\if@twocolumn
\@restonecoltrue\onecolumn
@@ -1087,7 +1104,7 @@
\tocsize
\sffamily
\singlespacing
- \acs@toc@collect\acs@toc@print
+ \acs@collect\acs@toc@print
}{%
\if@restonecol
\twocolumn
@@ -1174,7 +1191,7 @@
\suppsize
\vspace{6pt}%
\textbf{\suppinfoname:}
- \acs@toc@collect\acs@suppinfo@print
+ \acs@collect\acs@suppinfo@print
}
\newcommand*\acksize{\normalsize}
\newcommand*\suppsize{\normalsize}