我如何将方程式编号为文本?

我如何将方程式编号为文本?
\begin{align}
  \mathcal{L}_{\lambda} =  u_{1}(h) - u_{1}(h^{*}) + T \geq 0 \text{(foc$\lambda$)}, \label{eqn:foca1}\\
  \mathcal{L}_{T} = -1 + \lambda = 0 \Leftrightarrow \lambda = 1 \text{(focT)} ,\label{eqn:focb1}\\
  \mathcal{L}_{h} =- u'_{2}(h) + \lambda u'_{1}(h) = 0 \Leftrightarrow \lambda = \frac{u'_{2}(h)}{u'_{1}(h)} \text{(foch)}.\label{eqn:focc1}\\
  \lambda \geq 0 \text{(nn)}, \label{eqn:focd1}\\
  \lambda \mathcal{L}_{\lambda} =  \lambda [u_{1}(h) - u_{1}(h^{*}) + T] = 0 \text{(cs$\lambda$)} .\label{eqn:foce1}
\end{align}

如果有意义的话,我希望将 foc$\lambda$、\text{(focT)} 等作为其他边的方程编号?

答案1

您可以使用该\tag命令——它会()为您提供括号:

在此处输入图片描述

以下是完整的 MWE:

\documentclass{amsart}
\begin{document}

\begin{align}
  \mathcal{L}_{\lambda} =  u_{1}(h) - u_{1}(h^{*}) + T \geq 0,
      \tag{\text{foc$\lambda$}} \label{eqn:foca1}\\
  \mathcal{L}_{T} = -1 + \lambda = 0 \Leftrightarrow \lambda = 1,
      \tag{\text{focT}}\label{eqn:focb1}\\
  \mathcal{L}_{h} =- u'_{2}(h) + \lambda u'_{1}(h) = 0 \Leftrightarrow \lambda = \frac{u'_{2}(h)}{u'_{1}(h)},
      \tag{\text{foch}}\label{eqn:focc1}\\
  \lambda \geq 0,  \tag{\text{nn}}\label{eqn:focd1}\\
  \lambda \mathcal{L}_{\lambda} =  \lambda [u_{1}(h) - u_{1}(h^{*}) + T] = 0.
      \tag{\text{cs$\lambda$}}\label{eqn:foce1}
\end{align}

By \eqref{eqn:foca1}.

\end{document}

相关内容