# \array

Undocumented MathJax command alias for \matrix

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

## Metadata

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

## Syntax

### base

Argument specification: `m`

Undocumented MathJax command alias for \matrix

## Examples

```latex
\array{a & b \cr c & d}
```

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

```latex
\array a
```

[Open in Playground](https://play.texform.dev/?input=%5Carray+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 237 of 263 entries with frequency data.

## In TeXForm

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

### Discouraged in base

Non-standard MathJax command alias. In LaTeX, \array is not a valid macro, only an environment.

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

Standard LaTeX (amsmath) convention.

## Equivalent forms

```latex
\matrix{#1}
```

exact. MathJax alias

## See also

- [\\cases](https://texform.dev/latex/commands/cases)
- [\\displaylines](https://texform.dev/latex/commands/displaylines)
- [\\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 |
| --- | --- | --- | --- | --- |
| \array{a} | Positive: baseline | Pass | Fail | Fail |
| \array a | Positive: bare[0] | Pass | Fail | Fail |
