elsarticle 文档类错误

elsarticle 文档类错误

我正在使用elsarticleShareLaTeX 上的文档类,它给出了五个对我来说没多大意义的错误。

我的代码是

\documentclass{elsarticle}
\usepackage{pifont, natbib, geometry, fleqn, graphicx, txfonts,hyperref}
\usepackage{amssymb,amsmath,parskip}

\title{plasma paper}
\author{Garrett Young}

\begin{document}

\maketitle

\section{Introduction}
Lorentz force equations:
\begin{equation}
    \mathbf{F} = \mathbf{-\mathit{e}(E + v \times B)} = m\frac{d\mathbf{v}}{dt}
\end{equation}
\end{document}

错误是

/usr/local/texlive/2015/texmf-dist/tex/latex/amsmath/amsmath.sty, line 505
LaTeX Error: Command \iint 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.505 ...d{\iint}{\DOTSI\protect\MultiIntegral{2}}

Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.
 /usr/local/texlive/2015/texmf-dist/tex/latex/amsmath/amsmath.sty, line 506
LaTeX Error: Command \iiint 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.506 ...{\iiint}{\DOTSI\protect\MultiIntegral{3}}

Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.
 /usr/local/texlive/2015/texmf-dist/tex/latex/amsmath/amsmath.sty, line 507
LaTeX Error: Command \iiiint 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.507 ...\iiiint}{\DOTSI\protect\MultiIntegral{4}}

Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.
 /usr/local/texlive/2015/texmf-dist/tex/latex/amsmath/amsmath.sty, line 508
LaTeX Error: Command \idotsint 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.508 ...dotsint}{\DOTSI\protect\MultiIntegral{0}}

Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.
 /usr/local/texlive/2015/texmf-dist/tex/latex/base/fleqn.sty
inputting `fleqn.clo' instead of obsolete `fleqn.sty'.

内容显示正确。我不知道哪里出了问题。如能提供任何帮助,我将不胜感激。

答案1

里面定义了许多符号txfonts也定义在amsmath,因此您可以再次使它们可用:

\usepackage{txfonts}
\let\iint\relax
\let\iiint\relax
\let\iiiint\relax
\let\idotsint\relax
\usepackage{amsmath}

但是,以下做法更好:

\documentclass{elsarticle}

\usepackage{newtxtext,newtxmath}
\usepackage{amsmath}

\begin{document}

Lorem ipsum \ldots

\end{document}

来自newtx自述

该捆绑包拆分tx­fonts.sty(从TX 字体分发版)分成两个独立的包newtx­text.stynewtx­math.sty,每个包都有修复和增强功能。

看起来修复可能包括删除符号定义。

相关内容