diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/achemso/achemso.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/achemso/achemso.cls | 60 |
1 files changed, 36 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/achemso/achemso.cls b/Master/texmf-dist/tex/latex/achemso/achemso.cls index fce3ea5f251..17a6319ab17 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/04/28 v3.2a Submission to ACS journals] + [2009/04/28 v3.2b Submission to ACS journals] \LoadClass[12pt,letter]{article} \newcommand*{\acs@warning}{\ClassWarning{achemso}} \newcommand*{\acs@ifundefined}[1]{% @@ -29,6 +29,7 @@ } \RequirePackage{xkeyval} \define@boolkey{acs}[acs@]{biochem}[true]{} +\define@boolkey{acs}[acs@]{email}[true]{} \define@boolkey{acs}[acs@]{super}[true]{} \define@boolkey{acs}[acs@]{usetitle}[true]{} \newcommand*{\acs@journal}{jacsat} @@ -89,7 +90,6 @@ \newcommand*{\acs@niib@after@text}{} \newcommand*{\acs@niib@text}{% \@bsphack - \acs@bib@write \if@filesw \expandafter\acs@niib@write \else @@ -128,19 +128,14 @@ \@esphack \acs@niib@after@text } -\ifacs@super - \RequirePackage[sort&compress,numbers,super]{natbib} -\else - \RequirePackage[sort&compress,numbers,round]{natbib} - \def\citenumfont{\textit} -\fi -\RequirePackage{natmove} -\renewcommand*{\nmv@natbib@detect}{% - \ifNAT@super - \expandafter\acs@nmv@activate - \else - \expandafter\acs@autonote - \fi +\AtBeginDocument{ + \renewcommand*{\nmv@natbib@detect}{% + \ifNAT@super + \expandafter\acs@nmv@activate + \else + \expandafter\acs@autonote + \fi + } } \newcommand*{\acs@nmv@activate}{% \let\nmv@citex@nat\@citex @@ -186,14 +181,12 @@ required.^^J } \newcommand*{\acs@bib@name}{acs-\jobname.bib} -\newif\ifacs@bib@written \newcommand*{\acs@bib@write}{% \if@filesw - \ifacs@bib@written\else - \expandafter\expandafter\expandafter\acs@bib@write@aux - \fi + \expandafter\acs@bib@write@aux \fi } +\AtBeginDocument{\acs@bib@write} \newcommand*{\acs@bib@write@aux}{% \immediate\openout\acs@bib@file\acs@bib@name\relax \immediate\write\acs@bib@file{\acs@bib@message}% @@ -212,7 +205,6 @@ \immediate\write\@auxout{% \string\citation\string{achemso-control\string}% }% - \global\acs@bib@writtentrue \AtEndDocument{% \immediate\closeout\acs@bib@file\relax }% @@ -223,7 +215,6 @@ \AtBeginDocument{% \let\acs@bibliography\bibliography \renewcommand*{\bibliography}[1]{% - \acs@bib@write \acs@bibliography{acs-\jobname,#1}% }% } @@ -437,12 +428,17 @@ }% \vskip 1em\relax {% - \sffamily E-mail: \acs@email@list + \ifacs@email + \expandafter\acs@title@email + \fi }% \end{center} \par \vskip 1.5em\relax } +\newcommand*{\acs@title@email}{% + \sffamily E-mail: \acs@email@list +} \renewcommand*{\@thanks}{% \ifnum\acs@affil@cnt>\@ne\relax \expandafter\acs@affil@list @@ -764,8 +760,10 @@ \acs@subsection*{\suppinfoname}% }{} \newcommand*{\acknowledgementname}{Acknowledgement} -\renewcommand*{\bibsection}{% - \acs@subsection*{\refname}% +\AtEndOfClass{% + \renewcommand*{\bibsection}{% + \acs@subsection*{\refname}% + }% } \newcommand*{\suppinfoname}{Supporting Information Available} \newcommand*{\acs@abstract}{} @@ -912,6 +910,13 @@ \fi References% } +\newcommand*{\acs@setkeys}{\setkeys{acs}} +\let\acs@killabstract\AbstractOff +\let\acs@killsecs\SectionsOff +\newcommand*{\acs@validtype}[2][article]{% + \renewcommand*{\acs@type@default}{#1}% + \renewcommand*{\acs@type@list}{#2}% +} \InputIfFileExists{\acs@journal.cfg}{}{% \acs@warning{% Unknown journal `\acs@journal':\MessageBreak @@ -934,6 +939,13 @@ \setkeys{acs}{maxauthors = 0} \renewcommand*{\thepage}{S\arabic{page}} \fi +\ifacs@super + \RequirePackage[sort&compress,numbers,super]{natbib} +\else + \RequirePackage[sort&compress,numbers,round]{natbib} + \def\citenumfont{\textit} +\fi +\RequirePackage{natmove} %% %% Originally developed by Mats Dahlgren %% Copyright (C) 1996-1998 by Mats Dahlgren |