我正在嘗試爲我的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