# darray

Used for array-style mathematical tables when displaystyle entries are desired throughout the cells, such as for larger fractions or operators inside an array.

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

## Metadata

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

## Syntax

### base

Argument specification: `o m:C`

Used for array-style mathematical tables when displaystyle entries are desired throughout the cells, such as for larger fractions or operators inside an array.

## Examples

```latex
\begin{darray}{cc} \frac{1}{2} & x \end{darray}
```

[Open in Playground](https://play.texform.dev/?input=%5Cbegin%7Bdarray%7D%7Bcc%7D+%5Cfrac%7B1%7D%7B2%7D+%26+x+%5Cend%7Bdarray%7D)

```latex
\begin{darray}[t]{cc} x & y \end{darray}
```

[Open in Playground](https://play.texform.dev/?input=%5Cbegin%7Bdarray%7D%5Bt%5D%7Bcc%7D+x+%26+y+%5Cend%7Bdarray%7D)

## Renderer support

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

## In TeXForm

TeXForm reads the environment body in math mode.

## See also

- [array](https://texform.dev/latex/environments/array)

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \begin{darray}{cc} a & b \end{darray} | Positive: baseline | Pass | Pass | Fail |
| \begin{darray}[a]{cc} a & b \end{darray} | Positive: vary:o[0] | Pass | Fail | Fail |
| \begin{darray}cc a & b \end{darray} | Positive: bare[1] | Pass | Pass | Fail |
