%%
%% This is file `achemso.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% achemso.dtx  (with options: `package')
%% ----------------------------------------------------------------
%% The achemso package - A BibTeX style for American Chemical
%% Society publications
%% Maintained by Joseph Wright
%% E-mail: joseph.wright@morningstar2.co.uk
%% Originally developed by Mats Dahlgren
%%  (c) 1996-98 by Mats Dahlgren
%%  (c) 2007 Joseph Wright
%% Released under the LaTeX Project Public license v1.3 or later
%% ----------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{achemso}
 [2007/07/09 v2.2b Enhancements for ACS publications]
\def\ACSver{\texttt{achemso} v2.2b (2007/07/09)}
\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
\DeclareOption{note}{\global\ACS@notetrue}
\DeclareOption{number}{\global\ACS@sctnnmbrtrue}
\DeclareOption{super}{\global\ACS@supertrue}
\DeclareOption{list}{\global\ACS@listtrue}
\DeclareOption{notsuper}{\global\ACS@superfalse}
\DeclareOption{natbib}{\global\ACS@natbibtrue}
\DeclareOption*{\OptionNotUsed}
\ProcessOptions
\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[super,nospace]{cite}
  \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}}
  {\relax}
\def\ACS@biberror{\PackageError{achemso}%
  {No bibliography name command defined}\@eha}
\ifx\refname\undefined
   \ifx\bibname\undefined
      \ACS@biberror
    \else
      \ifACS@note
        \renewcommand*{\bibname}{References and Notes}
      \else
        \renewcommand*{\bibname}{References}
      \fi
    \fi
 \else
   \ifACS@note
     \renewcommand*{\refname}{References and Notes}
   \fi
\fi
\ifACS@sctnnmbr
  \RequirePackage[numbib]{tocbibind}
\fi
\ifACS@list
  \ifACS@natbib
    \bibliographystyle{achemlnt}
  \else
    \bibliographystyle{achemsol}
  \fi
  \RequirePackage[notcite]{showkeys}
\else
  \ifACS@natbib
    \bibliographystyle{achemnat}
  \else
    \bibliographystyle{achemso}
  \fi
\fi
\def\@biblabel#1{#1.}
\def\ACS@bibwarning{\PackageWarning{achemso}%
  {Additional bibliographystyle command ignored}}
\def\bibliographystyle{\ACS@bibwarning\@gobble}

\endinput
%%
%% End of file `achemso.sty'.
