我正在使用以下模板撰写论文。
\documentclass[11pt,twoside]{book}
%\date{\today}
\begin{document}
\tableofcontents
\chapter{something}
\subsection{{$p: \underline{X}\rightarrow \mathcal{D}$} is an atlas for {$\mathcal{D}$}}
\subsection{Proof that $p: X\rightarrow \mathcal{D}$ is an epimorphism of stacks}
\end{document}
由于某种原因,当我运行该文件时,出现 4 个错误。
\contentsline {subsection}{\numberline {2.3.3}Proof that $p\penalty \@M \mskip 2mu\mathpunct {}\nonscript \mkern -\thinmuskip {:}\mskip 6muplus1mu\relax \relax $\@@underline {\hbox {X}}\mathsurround \z@ $\relax \rightarrow \mathcal {D}$ is an epimorphism of stacks}{71}{subsection.2.3.3}
\contentsline {subsection}{\numberline {2.3.4}$p\penalty \@M \mskip 2mu\mathpunct {}\nonscript \mkern -\thinmuskip {:}\mskip 6muplus1mu\relax \relax $\@@underline {\hbox {X}}\mathsurround \z@ $\relax \rightarrow \mathcal {D}$ is an atlas for $\mathcal {D}$}{73}{subsection.2.3.4}
我在小节中写了以下内容
"\subsection{Proof that $p\colon \underline{X}\ra \mc{D}$ is an epimorphism of stacks}" and "\subsection{$p\colon \underline{X}\ra \mc{D}$ is an atlas for $\mc{D}$}"
我该如何修复此错误?这是在 thesis.toc 中
答案1
我用的是旧版本。
\protect\underline
而不是仅仅\underline
解决问题。