# xxalignat

Used for AMS multiline alignment displays with an explicit integer count of aligned column pairs, in the xxalignat variant without equation numbering and without the extra outer padding columns.

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

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Alignment](https://texform.dev/latex/topics/alignment) |
| Packages | ams |
| Allowed mode | math |
| Tags | math-alignment |
| Commonality | low |
| Body mode | math |

## Syntax

### ams

Argument specification: `m:I`

Used for AMS multiline alignment displays with an explicit integer count of aligned column pairs, in the xxalignat variant without equation numbering and without the extra outer padding columns.

## Examples

```latex
\begin{xxalignat}{2} a&=b & c&=d \end{xxalignat}
```

[Open in Playground](https://play.texform.dev/?input=%5Cbegin%7Bxxalignat%7D%7B2%7D+a%26%3Db+%26+c%26%3Dd+%5Cend%7Bxxalignat%7D)

## Renderer support

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

## In TeXForm

TeXForm reads the environment body in math mode.

## See also

- [xalignat](https://texform.dev/latex/environments/xalignat)
- [xalignat*](https://texform.dev/latex/environments/xalignat-star)

## Test cases

### ams

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \begin{xxalignat}{1} a & b \end{xxalignat} | Positive: baseline | Pass | Fail | Pass |
| \begin{xxalignat}1 a & b \end{xxalignat} | Positive: bare[0] | Pass | Fail | Pass |
| \begin{xxalignat}{a} a & b \end{xxalignat} | Negative: neg:I[0] | Fail | Fail | Fail |
