1

I try to compile my latex but it doesn't work. It shows the following error

Command \iint already defined. ...d{\iint}{\DOTSI\protect\MultiIntegral{2}}

The command that I'm using is as follows:

\documentclass{aip-cp}

\usepackage{amsmath}
\usepackage[numbers]{natbib}
\usepackage{rotating}
\usepackage{graphicx, amsfonts, amssymb, longtable}
\let\openbox\relax
\usepackage{amsthm, amsthm}

\begin{document}

\end{document}

Somebody please help me.

BambOo
  • 8,801
  • 2
  • 20
  • 47
Amirul Aizad
  • 977
  • 7
  • 18

1 Answers1

3

As mentioned by others this comes from the fact that the class loads txfonts which defines some symbols that amsmath also defines.

Here is an even shorter MWE:

\documentclass[a4paper]{article}
\usepackage{txfonts}
\usepackage{amsmath}
\begin{document}
test
\end{document}

You can use the normal \let...\relax trick to remove these symbols. Turns out there are four:

\documentclass[a4paper]{article}
\usepackage{txfonts}
\let\iint\relax
\let\iiint\relax
\let\iiiint\relax
\let\idotsint\relax
\usepackage{amsmath}
\begin{document}
test
\end{document}
daleif
  • 54,450
  • This document https://usermanual.wiki/Pdf/guide.451200889.pdf (apparently written by "AIP Tex support") says txfonts (and hyperref) are "optional packages", but it doesn't say how to deselect the option! – alephzero Oct 17 '18 at 10:04
  • @alephzero if the class in question is the same as BambOo referred to, then you cannot. BTW: might be an idea to refer to the PDF on their own homepage instead of some website that collects random manuals (that might be out of date). – daleif Oct 17 '18 at 10:11
  • Well, that 's what a Google search for "aip-cp" found for me, and it looked likeuseful information. I don't intend to go on a treasure hunt through the AIP site to try to find out more, though. – alephzero Oct 17 '18 at 10:14