# \admat

Used as a short alias for building an anti-diagonal matrix from a comma-separated list of entries, typically inside \mqty{...}.

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

## Metadata

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

## Syntax

### physics

Argument specification: `g`

Used as a short alias for building an anti-diagonal matrix from a comma-separated list of entries, typically inside \mqty{...}.

## Examples

```latex
\admat
```

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

```latex
\mqty{\admat{a,b}}
```

[Open in Playground](https://play.texform.dev/?input=%5Cmqty%7B%5Cadmat%7Ba%2Cb%7D%7D)

## Renderer support

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

## In TeXForm

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

### Expands to (physics)

```latex
\admat{#1,#2}
```

→

```latex
& \mqty{#1} \\ \mqty{#2}
```

Expands to an anti-diagonal arrangement of \mqty-wrapped elements separated by & and \\.

## Equivalent forms

```latex
\antidiagonalmatrix{...}
```

exact. Long form provided by the same physics package with identical parsing and behavior.

## See also

- [\\antidiagonalmatrix](https://texform.dev/latex/commands/antidiagonalmatrix)
- [\\diagonalmatrix](https://texform.dev/latex/commands/diagonalmatrix)
- [\\dmat](https://texform.dev/latex/commands/dmat)

## Test cases

### physics

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \admat | Positive: baseline | Pass | Fail | Pass |
| \admat{a} | Positive: vary:g[0] | Pass | Fail | Pass |
