Next: `document`

, Previous: `description`

, Up: Environments [Contents][Index]

`displaymath`

Synopsis:

\begin{displaymath}mathematical text\end{displaymath}

Environment to typeset the `mathematical text` on its own line, in
display style and centered. To make the text be flush-left use the
global option `fleqn`

; see Document class options.

In the `displaymath`

environment no equation number is added to the
math text. One way to get an equation number is to use the
`equation`

environment (see `equation`

).

LaTeX will not break the `math text` across lines.

Note that the `amsmath`

package has significantly more extensive
displayed equation facilities. For example, there are a number of
ways in that package for having math text broken across lines.

The construct `\[`

is a synonym for the environment
`math`\]`\begin{displaymath} `

but the
latter is easier to work with in the source; for instance,
searching for a square bracket may get false positives but the word
`math` \end{displaymath}`displaymath`

will likely be unique.

(Aside: The construct `$$`

from Plain TeX is
sometimes mistakenly used as a synonym for `math`$$`displaymath`

. It is
not a synonym, and is not officially supported in LaTeX at all;
`$$`

doesn’t support the `fleqn`

option (see Document class options), has different vertical spacing, and doesn’t perform
consistency checks.)

The output from this example is centered and alone on its line.

\begin{displaymath} \int_1^2 x^2\,dx=7/3 \end{displaymath}

Also, the integral sign is larger than the inline version
`\( \int_1^2 x^2\,dx=7/3 \)`

produces.