I'd like to write something as
\begin{align}
f(x) & = x + 1 \nonumber \\
& =: \eqref{eq:foo} \label{eq:foo} \nonumber \\
g(x) & = x + 2 \nonumber \\
& =: \eqref{eq:bar} \label{eq:bar} \nonumber
\end{align}
but amsmath does not allow me to do it:
! Package amsmath Error: Multiple \label's: label 'eq:foo' will be lost.See the amsmath package documentation for explanation.Type H for immediate help....
So what shall I do to solve this problem?
Interestingly
\begin{align}
f(x) & = x + 1 \nonumber \\
& =: \eqref{eq:foo} \label{eq:foo} \nonumber
\end{align}
is accepted by LaTeX, but the reference always stays a (??), even if I run LaTeX multiple times.
amsmath
rejects your code because it doesn't make sense!\label{...}
you must either have\tag
or not have\nonumber
. What should\eqref{eq:foo}
refer to, otherwise?