Tell me more ×
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.

Is gather* with one line of math equivalent to displaymath?

share|improve this question
1  
Does this question regarding difference between displaymath and equation environments answer your question? – Peter Grill Nov 2 '11 at 19:14
By "equivalent", do you mean in terms of spacing and alignment (both vertical and horizontal)? – Werner Nov 2 '11 at 19:24

1 Answer

up vote 9 down vote accepted

No, it is not: the vertical spaces before and after the display are different.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\noindent Text
\begin{gather*}
  a=b
\end{gather*}
Text
\begin{displaymath}
  a=b
\end{displaymath}
Text
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

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.