%%
%% This is file `achemso.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% achemso.dtx  (with options: `package')
%%  ----------------------------------------------------------------
%%  The achemso package - LaTeX and BibTeX support for American
%%  Chemical Society publications
%%  Maintained by Joseph Wright
%%  E-mail: joseph.wright@morningstar2.co.uk
%%  Released under the LaTeX Project Public License v1.3c or later
%%  See http://www.latex-project.org/lppl.txt
%%  ----------------------------------------------------------------
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{achemso}
  [2008/01/21 v2.2g LaTeX and BibTeX support for American
     Chemical Society publications]
\newif\ifACS@sctnnmbr\ACS@sctnnmbrfalse
\newif\ifACS@list\ACS@listfalse
\newif\ifACS@note\ACS@notefalse
\newif\ifACS@super\ACS@supertrue
\newif\ifACS@natbib\ACS@natbibfalse
\newif\ifACS@mcite\ACS@mcitefalse
\newif\ifACS@iecr\ACS@iecrfalse
\DeclareOption{note}{\ExecuteOptions{notes}}
\DeclareOption{notes}{\ACS@notetrue}
\DeclareOption{number}{\ACS@sctnnmbrtrue}
\DeclareOption{super}{\ACS@supertrue}
\DeclareOption{list}{\ACS@listtrue}
\DeclareOption{notsuper}{\ACS@superfalse}
\DeclareOption{natbib}{\ACS@natbibtrue}
\DeclareOption{mcite}{\ACS@mcitetrue}
\DeclareOption{iecr}{\ACS@iecrtrue}
\DeclareOption*{\OptionNotUsed}
\ProcessOptions\relax
\ifACS@natbib
  \ifACS@super
    \RequirePackage[numbers,sort&compress,super]{natbib}
  \else
    \RequirePackage[numbers,sort&compress,round]{natbib}
    \newcommand*{\citenumfont}{\textit}
  \fi
\else
  \ifACS@super
    \RequirePackage[nospace]{overcite}
  \else
    \RequirePackage{cite}
    \renewcommand{\citeleft}{(}
    \renewcommand{\citeright}{)}
    \renewcommand{\citeform}[1]{\emph{#1}}
  \fi
\fi
\@ifpackageloaded{babel}
  {\ACS@notefalse\PackageWarning{achemso}%
    {babel package loaded - note option disabled}}
  {}
\newcommand*{\ACS@biberror}{\PackageError{achemso}%
  {No bibliography name command defined}
  {The document class you have used does not define
    \string\refname\MessageBreak or \string\bibname}}
\@ifundefined{refname}{%
  \@ifundefined{bibname}{%
    \ACS@biberror
  }{%
    \ifACS@note
      \renewcommand*{\bibname}{References and Notes}
    \else
      \renewcommand*{\bibname}{References}
    \fi
  }
}{%
  \ifACS@note
    \renewcommand*{\refname}{References and Notes}
  \fi
}
\ifACS@sctnnmbr
  \RequirePackage[numbib]{tocbibind}
\fi
\ifACS@mcite
  \RequirePackage{mciteplus}
\fi
\ifACS@iecr
  \ifACS@natbib
    \ifACS@mcite
      \bibliographystyle{iecrnatM}
    \else
      \bibliographystyle{iecrnat}
    \fi
  \else
    \ifACS@mcite
      \bibliographystyle{iecrM}
    \else
      \bibliographystyle{iecr}
    \fi
  \fi
\else
  \ifACS@list
    \ifACS@natbib
        \ifACS@mcite
          \bibliographystyle{achemlntM}
        \else
          \bibliographystyle{achemlnt}
        \fi
    \else
      \ifACS@mcite
        \bibliographystyle{achemsolM}
      \else
        \bibliographystyle{achemsol}
      \fi
    \fi
    \RequirePackage[notcite]{showkeys}
  \else
    \ifACS@natbib
        \ifACS@mcite
          \bibliographystyle{achemnatM}
        \else
          \bibliographystyle{achemnat}
        \fi
    \else
      \ifACS@mcite
        \bibliographystyle{achemsoM}
      \else
        \bibliographystyle{achemso}
      \fi
    \fi
  \fi
\fi
\ifACS@iecr
  \renewcommand*{\@biblabel}[1]{(#1)}
\else
  \renewcommand*{\@biblabel}[1]{#1.}
\fi
\newcommand*{\ACS@bibwarning}{\PackageWarning{achemso}%
  {Additional bibliographystyle command ignored}}
\renewcommand*{\bibliographystyle}{\ACS@bibwarning\@gobble}
\endinput
%%
%% End of file `achemso.sty'.
