The displaymath environment is used for mathematical equations. It puts LaTeX into math mode.
Syntax[]
\begin{displaymath}
expression
\end{displaymath}
% shorthand:
\[ expression \]
The expression will be rendered on its own line, in display style and centered. To make it flush-left, use the global option fleqn
.
The old construct $$expression$$
from plain TeX is similar to displaymath, but should be avoided.
Sum-class symbols take up more vertical space in displaymath compared to inline math.
See also[]
- equation (adds an equation number)
- align (supports splitting equations over multiple lines and aligning them)
This article includes content from the unofficial LaTeX2e reference manual, which is licensed under the old-style GNU documentation license.