
私が行った場合:
\begin{align}
a = b \\
b = c \\
c = d \\
\end{align}
出力は次のようになります。
(1) a = b
(2) b = c
(3) c = d
代わりに algin* を使用すると、行は列挙されません。
以下の出力を得る方法はありますか?
a = b
b = c
(1) c = d
答え1
列挙する行を選択するのではなく、mathtools
参照する方程式のみを列挙することもできます。
\documentclass{article}
\usepackage{mathtools}
\mathtoolsset{showonlyrefs}
\begin{document}
\begin{align}
a = b \\
b = c \label{eq:unused} \\
c = d \label{eq:used} % Only this row will be enumerated as it's the
% only row that is referenced to.
\end{align}
\eqref{eq:used}
\end{document}