我正在尝试为我的LaTex文档添加目录。我遇到的问题是这一行:
\subsubsection{The expectation of \(X^2\)}
在包含目录的文件中引起错误
\contentsline {subsubsection}{\numberline {1.2.3}
The expectation of \relax $X^2\relax \GenericError { }{
LaTeX Error: Bad math environment delimiter}{
See the LaTeX manual or LaTeX Companion for explanation.}
{Your command was ignored.\MessageBreak Type I <command> <return>
to replace it with another command,\MessageBreak or <return> to
continue without it.}}{5}
这会导致文档无法生成。
有人有解决方案可以在章节中使用数学公式,同时仍然有目录吗?
$
жҳҜеҸҜд»Ҙзҡ„пјҢдҪҶеә”иҜҘе§Ӣз»ҲдҪҝз”Ё\[
...\]
д»Јжӣҝ$$
...$$
гҖӮ - Will Robertson