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 am using align*, but I still need an equation number. I know one solution is to use align and add \nonumber to all lines but the last. Is there a 'lazy' way to do it?

I searched a little and found similar ones suggesting use split: Show equation number only once in align environment

Unfortunately, due to the page break issue I have, I need to use align, because split won't auto page break, as described in Long equation does not page break.

share|improve this question
up vote 83 down vote accepted

Use \tag:

a &=b \\
  &=c \numberthis \label{eqn}
Equation \eqref{eqn} shows that $a=c$.
d = e

See page 3 of the amsmath package documentation for details.

share|improve this answer
this \numberthis works beautifully. Thank you very much! – cpp initiator Jan 29 '12 at 22:16
Why didn't you use \stepcounter or \refstepcounter instead of \addtocounter? – kiss my armpit Aug 31 '13 at 6:14
@PSTikZ --- \refstepcounter isn't needed, as the \ref value is set correctly already. \stepcounter is probably the best choice, to take care of subsidiary counters. I don't think I gave much thought to this when I composed the answer. – Ian Thompson Sep 2 '13 at 8:25
OK. Thank you for responding! – kiss my armpit Sep 2 '13 at 13:44
@magu_ Please post a new question with an example showing exactly what you want. I think I understand your question, but I'm not 100% sure. Also, other users (who may have better solutions than me) will see the new question, whereas they are unlikely to see new comments here. – Ian Thompson Mar 24 '14 at 12:04

Here are minimal working examples that I use. This is what I have as a header



Two equations each with separate equation numbers and separate reference labels

        \dot{a} &  =2\alpha(t)\eta\label{classicalmotion1}\\
        \dot{\eta} &  =-2\gamma(t)a\label{classicalmotion2}%

Two equations with single equation number and single reference label

        \dot{A} &  =2i\alpha(t)B\\
        \dot{B} &  =2i\gamma(t)A

I am guessing you know how to do the one without equation numbers.

share|improve this answer
thanks! somewhat surprisingly putting the \label(eqn2.qo} before \begin{aligned} changed the position of the eqn number in my case... – Xi'an Oct 26 '14 at 16:38

Another option is to use align, and then use \nonumber, as mentioned in http://mirrors.dotsrc.org/ctan/info/math/voss/mathmode/Mathmode.pdf.


a &=b \nonumber \\
b &=c
Equation \eqref{eq:test} shows that $a=c$.
share|improve this answer
The user seems to want to use an align* environment, though. Your approach would involve a lot of \nonumber, if the align contains a lot of lines. – Jubobs Feb 26 '14 at 9:50
Welcome to TeX.SX! This answer, while technically correct, is already mentioned in the second sentence of the question; the asker is looking for a different solution. – ChrisS Feb 26 '14 at 9:51
I must have misread the question. I did not see that. Sorry. – martinweiss Feb 27 '14 at 13:03

protected by Jubobs Feb 26 '14 at 9:51

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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