# Is gather* equivalent to displaymath?

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

-
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

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}


-