![在 \[ \] 环境中标记方程式时出现问题](https://linux22.com/image/408287/%E5%9C%A8%20%5C%5B%20%5C%5D%20%E7%8E%AF%E5%A2%83%E4%B8%AD%E6%A0%87%E8%AE%B0%E6%96%B9%E7%A8%8B%E5%BC%8F%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98.png)
我不确定在这里展示代码的常见做法,所以我肯定会做错事,感谢您的耐心。
我正在使用 overleaf.com。
现在,以下代码将正确编译:
By exercise 5.4, the line $L_P$ is given by
\[
L_P=C_X(P)(X)+C_Y(P)Y+C_Z(P)Z.
\]
但是我想标记这个方程式(并且希望用数字以外的其他东西来标记,因为如果它是唯一的方程式,那么将其称为方程式 1 似乎很愚蠢。使用\begin{equation}\end{equation}
是有效的,但我不知道是否可以将其更改(1)
为(*)
)。
如果我尝试
By exercise 5.4, the line $L_P$ is given by
\[
L_P=C_X(P)(X)+C_Y(P)Y+C_Z(P)Z.\tag{\ast}
\]
然后我得到了一个正确编译的 pdf,据我所知,它得到了我预期的结果,但我得到了以下错误列表(在“\]”行上精确标记):
Missing $ inserted.
Extra }, or forgotten $.
Missing } insterted.
Display math should end with $$.
到底是怎么回事?
编辑:
刚刚检查过
\begin{equation}
L_P=C_X(P)(X)+C_Y(P)Y+C_Z(P)Z.\tag{\ast}
\end{equation}
给了我完全相同的问题。但如果我删除 ,一切就都正常了\tag{\ast}
。