# \displaylines

Typesetting multiple centered equation lines using Plain TeX syntax

https://texform.dev/latex/commands/displaylines

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Matrices](https://texform.dev/latex/topics/matrices) |
| Packages | base |
| Allowed mode | math |
| Tags | discouraged |
| Commonality | low |
| Kind | prefix |

## Syntax

### base

Argument specification: `m`

Typesetting multiple centered equation lines using Plain TeX syntax

## Examples

```latex
\displaylines{a \cr b}
```

[Open in Playground](https://play.texform.dev/?input=%5Cdisplaylines%7Ba+%5Ccr+b%7D)

```latex
\displaylines a
```

[Open in Playground](https://play.texform.dev/?input=%5Cdisplaylines+a)

## Renderer support

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

## Usage frequency

<0.01% of formulas in the measured corpus contain this entry, rank 198 of 263 entries with frequency data.

## In TeXForm

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

### Discouraged in base

Plain TeX command that has been superseded by LaTeX environments.

```latex
\begin{gather} $1 \end{gather}
```

Standard LaTeX (amsmath) convention.

## See also

- [\\array](https://texform.dev/latex/commands/array)
- [\\cases](https://texform.dev/latex/commands/cases)
- [\\eqalign](https://texform.dev/latex/commands/eqalign)
- [\\eqalignno](https://texform.dev/latex/commands/eqalignno)
- [\\leqalignno](https://texform.dev/latex/commands/leqalignno)
- [\\matrix](https://texform.dev/latex/commands/matrix)
- [\\pmatrix](https://texform.dev/latex/commands/pmatrix)

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \displaylines{a} | Positive: baseline | Pass | Fail | Fail |
| \displaylines a | Positive: bare[0] | Pass | Fail | Fail |
