TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 would like to avoid the use of eqnarray. I would like to use the align environment instead.

However, I have an equation that I specify currently the following way:

\lefteqn{f(a,b,c,d,e,...)} \\
& = & A

as you can see, I am using \lefteqn, and that cannot be used in the align environment (the reason for using \lefteqn is because f(a,b,c,...) is a very long term).

Any ideas how to do that with the align environment (something corresponding to the align environment)?


\lefteqn helps better alignment for long equations in a certain line. Whenever you have a long term appearing in a certain line, you can use lefteqn so that the line below is not put vertically right after the long line. It is hard to perhaps explain, but the idea is that you would get something like:

 very long text =
   continue here

instead of

  very long text =
                   continue here
share|improve this question
I should mention that I learned using eqnarray is a bad idea here: tex.ac.uk/cgi-bin/texfaq2html?label=eqnarray following an advice I got here. – kloop Nov 18 '10 at 16:04
This question might benefit from an explanation of what \lefteqn is doing for you. I don't know, but I expect I might eventually want to use something like it at some stage... – Seamus Nov 18 '10 at 18:02
I hope I explain it now better above. – kloop Nov 18 '10 at 18:34
Now, \lefteqn as been integrated in align environment. No more need for \MoveEqLeft ;-) – user15934 Jun 25 '12 at 14:04
Really? I don't think I've missed any update of amsmath and the documentation shows no trace of \lefteqn. – egreg Jun 25 '12 at 15:57
up vote 10 down vote accepted

Use \MoveEqLeft from the mathtools package, like this:

\MoveEqLeft \text{very very long} \\
 &= \text{shorter}

Edit: If you feel that this doesn't move the first line far enough to the left, then use, e.g., \MoveEqLeft[4] instead of \MoveEqLeft. This moves the first line 4em to the left; the default is 2em. See also page 17 of the mathtools documentation.

share|improve this answer
I didn't know you could do that! Most useful. – Antal Spector-Zabusky Nov 18 '10 at 16:43

I prefer combining multline with aligned:

 &= y\\
 &= z
share|improve this answer

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.