%%
%% This is file `rsc.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% rsc.dtx  (with options: `package')
%%  ----------------------------------------------------------------
%%  The rsc package - BibTeX and macro support for Royal Society
%%  of Chemistry and Wiley chemistry articles
%%  Maintained by Joseph Wright
%%  E-mail: joseph.wright@morningstar2.co.uk
%%  Released under the GNU General Public License
%%  See http://www.gnu.org/licenses/gpl.txt
%%  ----------------------------------------------------------------

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{rsc}[2007/07/21 v2.0
  Useful chemistry functions]
\RequirePackage{unitsdef,graphicx,amssymb,fixltx2e,varioref}
\newif  \ifRSC@fl       \RSC@flfalse
\newif  \ifRSC@cl       \RSC@clfalse
\newif  \ifRSC@chapter  \RSC@chapterfalse
\newif  \ifRSC@angew    \RSC@angewfalse
\newif  \ifRSC@natbib   \RSC@natbibfalse
\DeclareOption{floatleft}{\global\RSC@fltrue}
\DeclareOption{fl}{\global\RSC@fltrue}
\DeclareOption{captionleft}{\global\RSC@cltrue}
\DeclareOption{cl}{\global\RSC@cltrue}
\DeclareOption{chapter}{\global\RSC@chaptertrue%
  \PassOptionsToPackage{chapter}{chemscheme}}
\DeclareOption{ch}{\global\RSC@chaptertrue%
  \PassOptionsToPackage{chapter}{chemscheme}}
\DeclareOption{angew}{\global\RSC@angewtrue%
  \global\RSC@cltrue}
\DeclareOption{natbib}{\global\RSC@natbibtrue}
\DeclareOption{chemcompounds}%
  {\PassOptionsToPackage{chemcompounds}{chemscheme}}
\ProcessOptions
\RequirePackage{chemscheme}
\ifRSC@natbib
  \RequirePackage[numbers,sort&compress,super]{natbib}
\else
  \RequirePackage[super]{cite}
\fi
\newunit{\cubiccentimeter}{\cm\unitsuperscript{3}}
\newcommand*{\cmc}{\cubiccentimeter}
\newcommand*{\Hz}{\hertz}
\newunit{\Molar}{\textsc{m}}
\newunit{\molar}{\mole\unitsep\dm\unitsuperscript{--3}}
\newunit{\mmHg}{mm\unitsep{}Hg}
\newcommand*{\standardstate}%
  {\textsuperscript{\rotatebox[origin=c]{140.8}%
  {\ensuremath{\varnothing}}}}
\newcommand*{\iPr}%
  {\ifRSC@angew\emph{i}Pr\else Pr\textsuperscript{i}\fi}
\newcommand*{\iBu}%
  {\ifRSC@angew\emph{i}Bu\else Bu\textsuperscript{i}\fi}
\newcommand*{\sBu}%
  {\ifRSC@angew\emph{s}Bu\else Bu\textsuperscript{s}\fi}
\newcommand*{\tBu}%
  {\ifRSC@angew\emph{t}Bu\else Bu\textsuperscript{t}\fi}
\ifRSC@angew
  \ifRSC@natbib
    \renewcommand\NAT@open{[}\renewcommand\NAT@close{]}
  \else
    \def\@citess#1{\textsuperscript{[#1]}}
  \fi
  \else
    \def\@biblabel#1{#1}
\fi
\ifRSC@angew
  \RequirePackage[labelsep=period,labelfont=bf]{caption}
  \captionsetup[table]{labelsep=colon}
\else
  \RequirePackage[labelsep=quad,labelfont=bf]{caption}
\fi
\ifRSC@cl
  \captionsetup{singlelinecheck=off}
\else
\fi
\ifRSC@angew
\else
  \renewcommand{\figurename}{Fig.}
\fi
\@ifclassloaded{memoir}
  {\let\newfloat\@undefined
   \RequirePackage{float}}
  {}
\floatstyle{plaintop}
\restylefloat{table}
\floatstyle{plain}
\restylefloat{scheme}
\restylefloat{figure}
\floatplacement{table}{htbp}
\floatplacement{scheme}{htbp}
\floatplacement{figure}{htbp}
\newcommand*{\floatcontentscentre}%
  {\let\RSC@everyfloat\centering}
\newcommand*{\floatcontentsleft}%
  {\let\RSC@everyfloat\relax}
\let\RSC@floatboxreset\@floatboxreset
\def\@floatboxreset{\RSC@everyfloat\RSC@floatboxreset}
\ifRSC@fl
  \floatcontentsleft
\else
  \floatcontentscentre
\fi
\labelformat{scheme}{\schemename~#1}
\labelformat{figure}{\figurename~#1}
\labelformat{table}{\tablename~#1}
\endinput
%%
%% End of file `rsc.sty'.
