Chemstyle 造成导出错误

Chemstyle 造成导出错误

因此,在添加几个我从未想过需要添加的包后,我终于让一切正常了。实时预览显示了完美的手稿,但出于某种原因,当我导出时,出现了以下错误:

/usr/local/texlive/2012/texmf-dist/tex/latex/chemstyle/chemstyle.sty:441: LaTeX Error: Command \c@scheme already defined.
           Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.441 ...\@nameuse{cst@float@make@\cst@float@pkg}}

当我点击链接(我使用 LaTeXian)时,它会带我到文件chemstyle.sty,并突出显示以下代码行:

\cst@float@execute{\@nameuse{cst@float@make@\cst@float@pkg}}

我不知道该怎么办,因为我不想毁掉这个.sty文件。

这也是一种典型的方案格式:

\begin{scheme}[htb]
    \schemeref[TMP6]{cmpd:cyclenam}
    \schemeref[TMP7]{cmpd:cyclylide}
    \schemeref[TMP8]{cmpd:cyclindole}
    \schemeref[TMP9]{cmpd:cyclinter}

    \begin{center}
    \includegraphics[scale=0.7]{Figures/photolysis.eps}
    \end{center}

\caption{Proposed mechanism of photochemical cyclization}
\label{sch:photolysis}
\end{scheme}

这是我的文档标题:

\documentclass[super,compress]{proposalnsf} %super=superscript citations, compress=compressed citations
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage[version=3]{mhchem}
\usepackage{amsmath}
\usepackage{chngcntr}
\usepackage{chemscheme}
\usepackage[runs=2]{auto-pst-pdf}
\usepackage{chemnum,chemstyle} %chemnum,
\usepackage{setspace}
\usepackage[nottoc]{tocbibind}
\settocbibname{References}


\DeclareFontFamily{OT1}{psyr}{}
\DeclareFontShape{OT1}{psyr}{m}{n}{<-> psyr}{}
\def\times{{\fontfamily{psyr}\selectfont\char180}}


%Chemical Equation Formatting

\newcounter{reaction}
\renewcommand\thereaction{\arabic{reaction}}

\renewcommand{\thereaction}{\arabic{reaction}}
\newcommand{\thealignedreaction}{\arabic{equation}}

%changing the equation tag appereance when amsmath has been loaded
\makeatletter
  \def\tagform@#1{\maketag@@@{[#1]\@@italiccorr}}
\makeatother

\makeatletter
\newenvironment{reactionalign}{%
    \mathchardef\c@mainequation\c@equation
    \protected@edef\themainequation{\theequation}%
    \let\theequation\thealignedreaction
    \global\c@equation\c@reaction
    }%
    {
    \global\c@equation\c@mainequation
    \global\@ignoretrue
    }
\makeatother


\newcommand{\thesubreaction}{\themainreaction\alph{equation}}

\makeatletter   
\newenvironment{subreactions}{%
    \refstepcounter{reaction}%
    \mathchardef\c@mainequation\c@equation
    \protected@edef\themainequation{\theequation}%
    \mathchardef\c@mainreaction\c@reaction
    \protected@edef\themainreaction{\thereaction}%
    \let\theequation\thesubreaction
    \global\c@equation\z@
    }{%
    \global\c@reaction\c@mainreaction
    \global\c@equation\c@mainequation
    \global\@ignoretrue
    }
\makeatother

%figure counting rules
%\counterwithin{figure}{section}

% this handles hanging indents for publications
\def\rrr#1\\{\par
\medskip\hbox{\vbox{\parindent=2em\hsize=6.12in
\hangindent=4em\hangafter=1#1}}}

\def\baselinestretch{1}

任何帮助深表感谢。

相关内容