我尝试编译以下文档但出现错误。
\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}}
?
我是不是做错什么了?
答案1
wasysym
在软件包之后加载软件包ams
(amsthm
就你的情况而言)
\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}
答案2
\usepackage{savesym}
\savesymbol{iint}
\usepackage{wasysym}
\restoresymbol{WAS}{iint}