# displaymath

Used for an unnumbered displayed equation or short display-style formula block.

https://texform.dev/latex/environments/displaymath

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Alignment](https://texform.dev/latex/topics/alignment) |
| Packages | base |
| Allowed mode | math |
| Tags | discouraged |
| Commonality | medium |
| Body mode | math |

## Syntax

### base

Argument specification: ``

Used for an unnumbered displayed equation or short display-style formula block.

## Examples

```latex
\begin{displaymath}a\end{displaymath}
```

[Open in Playground](https://play.texform.dev/?input=%5Cbegin%7Bdisplaymath%7Da%5Cend%7Bdisplaymath%7D)

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| base | full | none | full |

## Usage frequency

0% of formulas in the measured corpus contain this entry, rank 31 of 31 entries with frequency data.

## In TeXForm

TeXForm reads the environment body in math mode.

### Discouraged in base

Verbose alternative to \[ ... \] without semantic advantage in most contexts

```latex
\[ $1 \]
```

Shorter syntax widely encouraged for unnumbered display math over the explicit displaymath environment

## See also

- [equation](https://texform.dev/latex/environments/equation)
- [equation*](https://texform.dev/latex/environments/equation-star)
- [math](https://texform.dev/latex/environments/math)

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \begin{displaymath} a \end{displaymath} | Positive: baseline | Pass | Fail | Pass |
