%% %% This is file `chemscheme.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% chemscheme.dtx (with options: `package') %% ---------------------------------------------------------------- %% The chemscheme package - Support for chemical schemes %% 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{chemscheme}% [2007/08/05 v1.1 Support for chemical schemes] \RequirePackage{psfrag} \@ifclassloaded{memoir}{} {\RequirePackage{float}} \newif \ifCHEMSCH@chapter \CHEMSCH@chapterfalse \newif \ifCHEMSCH@bpchem \CHEMSCH@bpchemtrue \DeclareOption{chapter}{\global\CHEMSCH@chaptertrue} \DeclareOption{chemcompounds}{\global\CHEMSCH@bpchemfalse} \DeclareOption{bpchem}{} \ProcessOptions \newcommand*{\schemename}{Scheme} \newcommand*{\listschemes}{List of Schemes} \ifCHEMSCH@chapter \ifx\chapter\@undefined \PackageWarning{chemscheme}% {No chapters in this document \MessageBreak% Ignoring `chapter' option} \@ifclassloaded{memoir} {\newfloat{scheme}{los}{\schemename}} {\newfloat{scheme}{tbp}{los}} \else \@ifclassloaded{memoir} {\newfloat[chapter]{scheme}{los}{\schemename}} {\newfloat{scheme}{tbp}{los}[chapter]} \fi \else \@ifclassloaded{memoir} {\newfloat{scheme}{los}{\schemename}} {\newfloat{scheme}{tbp}{los}} \fi \@ifclassloaded{memoir} {\newlistof{listofschemes}{los}{\listschemes}} {\floatname{scheme}{\schemename} \newcommand*{\listofschemes}[1][\listschemes]% {\listof{scheme}{#1}}} \newcommand*{\floatcontentscentre}% {\let\CHEMSCH@everyfloat\centering} \let\floatcontentscenter\floatcontentscentre \newcommand*{\floatcontentsleft}% {\let\CHEMSCH@everyfloat\relax} \newcommand*{\floatcontentsright}% {\let\CHEMSCH@everyfloat\raggedleft} \let\CHEMSCH@floatboxreset\@floatboxreset \floatcontentsleft \def\@floatboxreset{\CHEMSCH@everyfloat\CHEMSCH@floatboxreset} \newcommand{\chemschemerefmarker}{TMP} \newcommand{\chemschemerefformat}{\textsf} \ifCHEMSCH@bpchem \RequirePackage{bpchem} \let\CHEMSCH@label\CNlabel \else \RequirePackage{chemcompounds} \let\CHEMSCH@label\compound \fi \newcommand{\chemschemeref}[2]{% \psfrag{\chemschemerefmarker#1}[b][b]% {\chemschemerefformat{\CHEMSCH@label{#2}}}% } \ifCHEMSCH@bpchem \newcommand{\chemschemerefsub}[3]{% \psfrag{\chemschemerefmarker#1}[b][b]% {\chemschemerefformat{\CNlabelsub{#2}{#3}}}% } \else \newcommand{\chemschemerefsub}[3]{% \PackageWarning{chemscheme}% {`chemcompound' option active\MessageBreak Command \protect\chemschemerefsub\space not used \MessageBreak Please alter your source to \MessageBreak \protect\chemschemeref}} \fi \endinput %% %% End of file `chemscheme.sty'.