如何在方程式環境中建立方程式列表?

如何在方程式環境中建立方程式列表?

amsart我正在嘗試在文檔類中創建類似的內容:

方程式環境中的方程式列表

\label我可以透過和命令標記和存取各個方程式\ref

我嘗試過alignequationalignedcasesarray環境的各種組合,但要么我犯了錯誤(很有可能),要么它比我想像的更複雜。

我真誠地希望你們中的某個人能夠以某種方式幫助我。先感謝您。

答案1

\label\ref 用於計數器,特別是 的最後一次出現\refstepcounter。但是,equation重新定義\label為始終返回方程式編號。

這使用一個新的計數器(案例)來產生案例編號,以便\label可以記錄它們。它也使用\normallabel,它只是\label在方程式環境之外定義的。

\thecase為了簡單起見,我把括號放在裡面。

\documentclass[leqno]{amsart}

\newcounter{case}[equation]% reset to 0
\renewcommand{\thecase}{\textrm{(\roman{case})}}
\let\normallabel=\label

\begin{document}

\begin{equation}
\begin{cases}
  \refstepcounter{case}\hfil\thecase\normallabel{first} & first\\
  \refstepcounter{case}\hfil\thecase\normallabel{second} & second\\
  \refstepcounter{case}\hfil\thecase\normallabel{third} & third
\end{cases}
\end{equation}
See cases \ref{first}, \ref{second} and \ref{third}.

\end{document}

示範

相關內容