错误缺少 $ 和额外的 }

错误缺少 $ 和额外的 }

我输入了以下代码:

\subsubsection{x....x}
x..................x \textit{a} and  \textit{a^{\dagger}} :

这给了我错误:缺少 $ 插入或额外的 }。请告诉我如何纠正此错误。

答案1

通过以下方式避免错误:

\subsubsection{Lx.....x}
x...........x \textit{a} and 
\begin{math}
\mathit{a^\dagger} :
\end{math}

匕首是数学符号,因此应包含在数学环境中。要使数学符号变为斜体,请使用 \mathit{} 而不是 \textit{}。

相关内容