diff options
author | Karl Berry <karl@freefriends.org> | 2009-06-30 00:37:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-06-30 00:37:53 +0000 |
commit | 9c2c06e150241d32a63aca29e5fe19ef4955692a (patch) | |
tree | 6290a7f5b01835da7e8fe9b04b02855b6c7103fd /Master/texmf-dist/tex/latex/achemso/achemso.sty | |
parent | 5fa926769060d32ca128bbd8f349d90d7fa228b9 (diff) |
achemso 3.2c (29jun09)
git-svn-id: svn://tug.org/texlive/trunk@14009 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/achemso/achemso.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/achemso/achemso.sty | 73 |
1 files changed, 40 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/latex/achemso/achemso.sty b/Master/texmf-dist/tex/latex/achemso/achemso.sty index e983aa8ae05..4b98a0f2739 100644 --- a/Master/texmf-dist/tex/latex/achemso/achemso.sty +++ b/Master/texmf-dist/tex/latex/achemso/achemso.sty @@ -16,7 +16,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{achemso} - [2009/04/28 v3.2b Support for ACS journals] + [2009/06/28 v3.2c Support for ACS journals] \@ifclassloaded{achemso}{% \PackageInfo{achemso}{% You have already loaded the `achemso' class:\MessageBreak @@ -29,8 +29,8 @@ use the achemso document class% }% } -\newcommand*{\acs@warning}{\PackageWarning{achemso}} -\newcommand*{\acs@ifundefined}[1]{% +\newcommand*\acs@warning{\PackageWarning{achemso}} +\newcommand*\acs@ifundefined[1]{% \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname #1\endcsname\relax \expandafter\@firstoftwo @@ -39,13 +39,15 @@ \fi } \RequirePackage{xkeyval} +\define@boolkey{acs}[acs@]{abbreviations}[true]{} \define@boolkey{acs}[acs@]{biochem}[true]{} \define@boolkey{acs}[acs@]{email}[true]{} +\define@boolkey{acs}[acs@]{keywords}[true]{} \define@boolkey{acs}[acs@]{super}[true]{} \define@boolkey{acs}[acs@]{usetitle}[true]{} -\newcommand*{\acs@journal}{jacsat} -\newcommand*{\acs@manuscript}{article} -\newcommand*{\acs@maxauthors}{15} +\newcommand*\acs@journal{jacsat} +\newcommand*\acs@manuscript{article} +\newcommand*\acs@maxauthors{15} \define@cmdkey{acs}[acs@]{journal}{} \define@cmdkey{acs}[acs@]{manuscript}{} \define@cmdkey{acs}[acs@]{maxauthors}{} @@ -61,21 +63,27 @@ \@nameuse{acs@biblabel@#1}% }% } -\newcommand*{\acs@biblabel@brackets}{\def\@biblabel##1{(##1)}} -\newcommand*{\acs@biblabel@fullstop}{\def\@biblabel##1{##1.}} -\newcommand*{\acs@biblabel@period}{\def\@biblabel##1{##1.}} -\newcommand*{\acs@biblabel@plain}{\def\@biblabel##1{##1}} +\newcommand*\acs@biblabel@brackets{\def\@biblabel##1{(##1)}} +\newcommand*\acs@biblabel@fullstop{\def\@biblabel##1{##1.}} +\newcommand*\acs@biblabel@period{\def\@biblabel##1{##1.}} +\newcommand*\acs@biblabel@plain{\def\@biblabel##1{##1}} \setkeys{acs}{ + email = true, super = true } \ProcessOptionsX*<acs> -\newcommand*{\acs@niib@create}{% +\newcommand*\acs@manuscript@communication{communication} +\newcommand*\acs@manuscript@letter{letter} +\newcommand*\acs@manuscript@note{note} +\newcommand*\acs@manuscript@review{review} +\newcommand*\acs@manuscript@suppinfo{suppinfo} +\newcommand*\acs@niib@create{% \@namedef{ver@notes2bib.sty}{% 2009/04/20 v1.6a Integrating notes into the bibliography (achemso version) }% \newcounter{bibnote} - \renewcommand*{\thebibnote}{% + \def\thebibnote{% Note-\the\value{bibnote}% }% \DeclareRobustCommand*{\bibnote}[1][\thebibnote]{% @@ -91,15 +99,15 @@ \let\acs@niib@after@text\relax \acs@niib@text{##1}% }% - \newcommand*{\printbibnotes}{% + \newcommand*\printbibnotes{% \ifnum\the\value{bibnote}>\z@\relax \nocite{achemso-control}% \acs@bibliography{acs-\jobname}% \fi }% } -\newcommand*{\acs@niib@after@text}{} -\newcommand*{\acs@niib@text}{% +\newcommand*\acs@niib@after@text{} +\newcommand*\acs@niib@text{% \@bsphack \if@filesw \expandafter\acs@niib@write @@ -107,7 +115,7 @@ \expandafter\acs@niib@no@write \fi } -\newcommand*{\acs@niib@write}[1]{% +\newcommand*\acs@niib@write[1]{% \begingroup \let\do\@makeother \dospecials @@ -115,7 +123,7 @@ \catcode`\} 2\relax \acs@niib@write@aux@i{#1}% } -\newcommand*{\acs@niib@write@aux@i}[1]{% +\newcommand*\acs@niib@write@aux@i[1]{% \long\def\@tempa##1{% \def\@tempa{##1}% \@onelevel@sanitize\@tempa @@ -126,7 +134,7 @@ \catcode`\^^M 10\relax \@tempa } -\newcommand*{\acs@niib@write@aux@ii}[1]{% +\newcommand*\acs@niib@write@aux@ii[1]{% \immediate\write\acs@bib@file{% @Misc\string{#1,^^J% \space\space note = \string{\@tempa\string},^^J% @@ -135,12 +143,12 @@ \@esphack \acs@niib@after@text } -\newcommand{\acs@niib@no@write}[2]{% +\newcommand\acs@niib@no@write[2]{% \@esphack \acs@niib@after@text } \AtBeginDocument{ - \renewcommand*{\nmv@natbib@detect}{% + \def\nmv@natbib@detect{% \ifNAT@super \expandafter\acs@nmv@activate \else @@ -148,7 +156,7 @@ \fi } } -\newcommand*{\acs@nmv@activate}{% +\newcommand*\acs@nmv@activate{% \let\nmv@citex@nat\@citex \let\@citex\nmv@citex \let\nmv@cite\cite @@ -162,7 +170,7 @@ }% }% } -\newcommand*{\acs@autonote}{% +\newcommand*\acs@autonote{% \let\nmv@cite\cite \renewcommand*{\cite}[2][]{% \nmv@ifmtarg{##1}{% @@ -173,32 +181,31 @@ }% }% } -\newcommand*{\acs@bibstyle}{achemso} +\newcommand*\acs@bibstyle{achemso} \bibliographystyle{achemso} \ifacs@biochem - \renewcommand*{\acs@bibstyle}{biochem} + \def\acs@bibstyle{biochem} \bibliographystyle{biochem} \fi -\newcommand*{\acs@bibliographystyle}{} +\newcommand*\acs@bibliographystyle{} \let\acs@bibliographystyle\bibliographystyle -\renewcommand*{\bibliographystyle}[1]{% +\def\bibliographystyle#1{% \acs@warning{\string\bibliographystyle\space ignored}% \expandafter\acs@bibliographystyle\expandafter{\acs@bibstyle}% } \newwrite\acs@bib@file -\newcommand*{\acs@bib@message}{% +\newcommand*\acs@bib@message{% This is an auxiliary file used by the `achemso' bundle.^^J% - This file may safely be deleted. It will be recreated as - required.^^J + This file may safely be deleted. It will be recreated as required.^^J } -\newcommand*{\acs@bib@name}{acs-\jobname.bib} -\newcommand*{\acs@bib@write}{% +\newcommand*\acs@bib@name{acs-\jobname.bib} +\newcommand*\acs@bib@write{% \if@filesw \expandafter\acs@bib@write@aux \fi } \AtBeginDocument{\acs@bib@write} -\newcommand*{\acs@bib@write@aux}{% +\newcommand*\acs@bib@write@aux{% \immediate\openout\acs@bib@file\acs@bib@name\relax \immediate\write\acs@bib@file{\acs@bib@message}% \edef\@tempa##1##2{% @@ -225,7 +232,7 @@ }{} \AtBeginDocument{% \let\acs@bibliography\bibliography - \renewcommand*{\bibliography}[1]{% + \def\bibliography#1{% \acs@bibliography{acs-\jobname,#1}% }% } |