# \newline

Forcing a line break in displayed math or matrix/array-like material as a named alternative to a bare \\.

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

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Layout and breaks](https://texform.dev/latex/topics/layout) |
| Packages | base |
| Allowed mode | math |
| Tags | spacing |
| Commonality | medium |
| Kind | prefix |

## Syntax

### base

Argument specification: ``

Forcing a line break in displayed math or matrix/array-like material as a named alternative to a bare \\.

## Examples

```latex
\newline
```

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

## Renderer support

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

## Usage frequency

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

## In TeXForm

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

### [base/newline-to-linebreak](https://texform.dev/rules/base/newline-to-linebreak)

Collapse newline to the explicit linebreak command.

Level: authoring. Fidelity: reading.

```latex
\newline
```

→

```latex
\\
```

```latex
x_1 + y_1 = z_1 \newline x_2 + y_2 = z_2
```

→

```latex
x_1 + y_1 = z_1 \\ x_2 + y_2 = z_2
```

## Equivalent forms

```latex
\\
```

exact. Equivalent to the bare unstarred \\ form only. Unlike \\, this record does not consume optional * or [<dimen>] because it is mapped as CrLaTeX with nobrackets=true.

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \newline | Positive: baseline | Pass | Pass | Pass |
