Latex and equation numbering

Associate
Joined
6 Nov 2006
Posts
722
Location
Devon
Is there a way to tie equation numbers to a particular point in the text in latex, for example if I have equation number (2) and I refer to it in the text but subsequently decide that I need another numbered equation before that, therefore making the old equation number (3), is there a way to get the text to auto update the numbering where I previously refered to equation (2)?

I have had a quick google but found nothing.

I hope what I've said makes sense.

Thanks
 
Yep:

Code:
\begin{equation}
\label{einstein}
E = \gamma mc^2
\end{equation}

Here's a reference: \eqref{einstein}.

See page 50 of the manual. Beware that you may have to run the compilation process twice or more to get it to pick up changes in references, though.
 
Last edited:
Back
Top Bottom