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

Possible Duplicate:
Remove vertical space around align

I would like to center two text lines with equations. Normally, one can do that with the align* environment. But I do not want the extra vertical space at the top and the bottom of the formulas (see example below).

An alternative could be to simply center the formulas with \centerline. But then, the two equation symbols will not be placed one below the other.

Here is an example:


text before % Extra space after this line
  1 &= 1 \\
  x &= \text{here is a long formula}
text after % Extra space before this line

text before \\
\centerline{$1 = 1$} \\ % equation symbols not below each other
\centerline{$x = \text{here is a long formula}$} \\
text after

Is it possible to use align* without the extra vertical space ?

If not, what could be another solution ?

share|improve this question

marked as duplicate by Gonzalo Medina, Kurt, Harish Kumar, Qrrbrbirlbel, Heiko Oberdiek Oct 22 '12 at 3:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Have you considered editing the \abovedisplayskip? – azetina Oct 22 '12 at 0:34

Add the following lines of code:

  1 &= 1 \\
  x &= \text{here is a long formula}

Enclosing the above in {} ensures that the display break adjustments are made local and not global.

share|improve this answer

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