I have two equations in an align block:


Both of these equations are numbered (1) and (2) respectively. In a sentence beneath this align block I want to reference these two equations by referring to their labelled numbers. Is there a way to do this without simply typing (1) and (2) i.e having the numbers automatically generated and inserted?

I tried this:

4x-3y&=2\\ \label{eq:simul1}
3x+2y&=1 \label{eq:simul2}

but this did not compile. Or is it not worth doing and better to just simply enter the equation numbers manually? Obviously the downside to this is if my numbering changes I would have to change all occurrences of this.


In the align use \label{simul1}"

4x-3y&=2 \label{simul1}\\
3x+2y&=1 \label{simul2}
See \eqref{simul2} for...
  • Why shouldn't \label{eq:simul1} be good? – egreg Oct 10 '11 at 16:42
  • @egreg: Both work. Since I label equations often, I tend to leave them out. But now you have me thinking: Should one be preferred over the other? Perhaps I should just delete this answer and you can add that option to yours. – Peter Grill Oct 10 '11 at 16:54
  • 1
    The argument of \label is any sequence of ASCII characters. Using prefixes uniformly helps to remember what reference we're using. – egreg Oct 10 '11 at 17:06

The \label command must be given before ending the equation:

4x-3y&=2 \label{eq:simul1} \\
3x+2y&=1 \label{eq:simul2}
  • 4
    For appropriate referencing use \eqref{eq:simul1} rather than just \ref{eq:simul1}, otherwise the brackets of the equation numbers will have to be inserted manually. As in, (\ref{eq:simul1}). – Werner Oct 10 '11 at 16:31
  • @Werner: it might be worth mentioning to the OP that the \eqref command requires loading the amsmath package. – Mico Oct 12 '11 at 2:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.