11

I tried to compile the following document but got an error.

\documentclass[10pt]{book}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{siunitx}
\sisetup{output-decimal-marker = {,}}

\usepackage[a5paper]{geometry}
%\usepackage[a5paper, top=2in, bottom=1.5in, left=1in, right=1in]{geometry}
\usepackage{scrextend}
\changefontsizes{10.0pt}  % Change base font size

\usepackage{lettrine}
\usepackage{fancyhdr}

\usepackage{wasysym}
\pagestyle{fancy}
\fancyhf{} % clear all fields
\fancyhead[RO,LE]{\thepage}
\linespread{1.3}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}

\begin{document}
\tableofcontents
\newpage

\section*{section}
demo
\end{document}
! 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}}

? 

I'm I doing something wrong?

14

Load the package wasysym after the amspackages ( amsthm in your case)

\documentclass[10pt]{book}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{siunitx}
\sisetup{output-decimal-marker = {,}}

\usepackage[a5paper]{geometry}
%\usepackage[a5paper, top=2in, bottom=1.5in, left=1in, right=1in]{geometry}
\usepackage{scrextend}
\changefontsizes{10.0pt}  % Change base font size

\usepackage{lettrine}
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{} % clear all fields
\fancyhead[RO,LE]{\thepage}
\linespread{1.3}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}

\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}

\usepackage{wasysym}

\begin{document}
\tableofcontents
\newpage

\section*{section}
demo
\end{document}
| improve this answer | |
  • 1
    more likely amssymb for \iint. – barbara beeton Jun 5 '14 at 18:17
  • 2
    sure, but it is easier to remember "after ams packages" – user2478 Jun 5 '14 at 18:51
2
\usepackage{savesym}
\savesymbol{iint}
\usepackage{wasysym}
\restoresymbol{WAS}{iint}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.