我正在尝试为我的LaTex文档添加一个目录。我遇到的问题是,这条线: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}
这将导致不生成文档的表格文件中导致错误。
有没有人有一个解决方案,具有部分数学,同时还具有内容
有使用$和$而不是\\(和\\ [? – Yacoby 2009-11-15 22:37:06
'$'很好,但是'\ ['...'\]'应该总是用在'$$'上面)。 '$$'。 – 2009-11-15 23:22:02
@威尔:当然同意。 – Stephan202 2009-11-15 23:27:48