TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted

In the align use \label{simul1}"

4x-3y&=2 \label{simul1}\\
3x+2y&=1 \label{simul2}
See \eqref{simul2} for...
share|improve this answer
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
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}
share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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