summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/achemso/achemso.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/achemso/achemso.sty')
-rw-r--r--Master/texmf-dist/tex/latex/achemso/achemso.sty61
1 files changed, 51 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/achemso/achemso.sty b/Master/texmf-dist/tex/latex/achemso/achemso.sty
index 664f2e8d3bc..1290b12a797 100644
--- a/Master/texmf-dist/tex/latex/achemso/achemso.sty
+++ b/Master/texmf-dist/tex/latex/achemso/achemso.sty
@@ -15,11 +15,8 @@
%% ----------------------------------------------------------------
%%
\NeedsTeXFormat{LaTeX2e}
-\def\acs@id$#1: #2.#3 #4 #5-#6-#7 #8 #9${%
- \def\acs@ver{#5/#6/#7\space v3.0a\space}}
-\acs@id$Id: achemso.dtx 32 2008-08-22 08:09:56Z joseph $
\ProvidesPackage{achemso}
- [\acs@ver Support for ACS journals]
+ [2008/12/18 v3.1 Support for ACS journals]
\@ifclassloaded{achemso}{}
{\PackageInfo{achemso}{When using the achemso bundle
for\MessageBreak submission of articles to the ACS,
@@ -71,6 +68,48 @@
\MessageBreak changing to #1}%
\renewcommand*{\acs@manuscript}{#1}%
\fi}}
+\let\acs@orgstartsection\@startsection
+\newcommand*{\acs@startsection}[6]{%
+ \if@noskipsec \leavevmode \fi
+ \par
+ \@tempskipa #4\relax
+ \@afterindenttrue
+ \ifdim\@tempskipa<\z@\relax
+ \@tempskipa -\@tempskipa \@afterindentfalse
+ \fi
+ \if@nobreak
+ \everypar{}%
+ \else
+ \addpenalty\@secpenalty\addvspace\@tempskipa
+ \fi
+ \@ifstar
+ {\@ssect{#3}{#4}{#5}{#6}}
+ {\@ssect{#3}{#4}{#5}{#6}}}
+\newcommand*{\acs@killsecnums}{%
+ \let\@startsection\acs@startsection}
+\newcommand*{\acs@restsecnums}{%
+ \let\@startsection\acs@orgstartsection}
+\@ifclassloaded{achemso}
+ {\acs@killsecnums}
+ {}
+\let\acs@section\section
+\let\acs@subsection\subsection
+\newcommand*{\acs@killsecs}{%
+ \newcommand*{\acs@gobblesection}{%
+ \ClassWarning{achemso}
+ {Sections not allowed for this manuscript type}%
+ \@ifstar{\@gobble}{\@gobble}}
+ \let\section\acs@gobblesection
+ \let\subsection\acs@gobblesection
+ \let\subsubsection\acs@gobblesection
+ \AtBeginDocument{
+ \renewcommand*{\bibsection}{\acs@section*{\refname}}}}
+\newcommand*{\acknowledgement}{%
+ \acs@subsection*{\acs@acknowledgement}}
+\newcommand*{\suppinfo}{%
+ \acs@subsection*{\acs@suppinfo}}
+\newcommand*{\acs@acknowledgement}{Acknowledgement}
+\newcommand*{\acs@suppinfo}{Supporting Information Available}
\newcommand*{\acs@killabstract}{%
\let\abstract\acs@startgobble}
\begingroup
@@ -122,12 +161,12 @@
\MessageBreak your installation}}}}}%
{\@ifundefined{acs@journal}{}
{\PackageWarning{achemso}{The `journal' option is only
- applicable\MessageBreak when using the achemso document
- class}}%
+ applicable\MessageBreak when using the achemso
+ document class}}%
\@ifundefined{acs@manuscript}{}
{\PackageWarning{achemso}{The `type' option is only
- applicable\MessageBreak when using the achemso document
- class}}}
+ applicable\MessageBreak when using the achemso
+ document class}}}
\ifacs@super
\RequirePackage[sort&compress,numbers,super]{natbib}
\else
@@ -176,10 +215,12 @@
\newcommand*{\acs@writebib}{%
\immediate\openout\acs@out\acs@stream\relax
\immediate\write\acs@out{\acs@msg}%
- \edef\acs@tempa##1##2{\space\space##1\space=\space"##2",^^J}%
+ \edef\acs@tempa##1##2{\space\space##1\space
+ =\space"##2",^^J}%
\immediate\write\acs@out{%
@Control\string{achemso-control,^^J%
- \acs@tempa{ctrl-use-title}{\ifacs@usetitle yes\else no\fi}%
+ \acs@tempa{ctrl-use-title}{\ifacs@usetitle
+ yes\else no\fi}%
\acs@tempa{ctrl-etal-number}{\acs@maxauthors}%
\string}^^J}}
\if@filesw