
我正在嘗試align*
使用環境中的標籤和編號第一行\tag{\theequation}
,它只是重複相同的方程式編號。它使用先前的方程式編號來計算所有後續的\tag
。
答案1
這是預期的行為,因為帶有星號的版本 - align*
- 不會增加計數器equation
。您必須手動執行此操作:
\newcommand{\tagaligneq}{\refstepcounter{equation}\tag{\theequation}}
\begin{align*}
. & .. \\
. & .. \tagaligneq \\
. & .. \\
. & .. \tagaligneq \\
. & ..
\end{align*}
當然,您也可以使用相反的方法,其中所有行都編號,除非您在 :\nonumber
內使用align
:
\begin{align}
. & .. \nonumber \\
. & .. \\
. & .. \nonumber \\
. & .. \\
. & .. \nonumber
\end{align}