Matrices#
Matrix environments and matrix-building commands.
| Name | Definition | Packages | MathJax | KaTeX | XeTeX | Frequency |
|---|---|---|---|---|---|---|
array | Used for custom mathematical arrays, matrices, and piecewise-style layouts where the author supplies an explicit column preamble. | base | MathJax: Full | KaTeX: Partial | XeTeX: Partial | 3.24% |
pmatrix | Used for parenthesized matrices in linear algebra and systems of equations | ams | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.86% |
bmatrix | Used for bracketed matrices in linear algebra and array notation | ams | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.51% |
matrix | Used for ordinary matrices without surrounding delimiters inside equations and derivations | ams | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.21% |
smallmatrix | Used for compact inline matrices, often inside delimiters or larger formulas | ams, physics | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.05% |
vmatrix | Used for determinant-style or absolute-value-style vertical-bar matrices | ams | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.02% |
subarray | Creates a multi-line array of subscripts or limits, typically placed under operators like sum or prod | ams | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.02% |
Bmatrix | Used for matrices enclosed in curly braces, usually in specialized notational contexts | ams | MathJax: Full | KaTeX: Full | XeTeX: Full | <0.01% |
Vmatrix | Used for double-vertical-bar matrices, often for norms or specialized determinant-like notation | ams | MathJax: Full | KaTeX: Full | XeTeX: Full | <0.01% |
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. | base | MathJax: Full | KaTeX: Partial | XeTeX: None | — |
Alignment#
Multi-line equation, alignment, and cases environments.
| Name | Definition | Packages | MathJax | KaTeX | XeTeX | Frequency |
|---|---|---|---|---|---|---|
equation | Used for a numbered displayed equation that should participate in equation tagging. | base | MathJax: Full | KaTeX: None | XeTeX: Full | 37.20% |
align | Displayed multi-line derivations and systems with alignment points, usually at relation signs. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 10.14% |
eqnarray | Legacy multi-line displayed equations with column alignment via & and row breaks via \\, typically with equation numbering on rows. | base | MathJax: Full | KaTeX: None | XeTeX: Full | 7.31% |
align* | Displayed multi-line derivations and systems with alignment points, but without automatic equation numbers. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 6.82% |
equation* | Used for a single displayed equation without an equation number in AMS math documents. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 5.60% |
split | Splitting a single displayed equation across aligned lines, often inside a larger equation-like display. | ams | MathJax: Full | KaTeX: None | XeTeX: None | 2.31% |
eqnarray* | Legacy unnumbered multi-line equation arrays kept mainly for compatibility with older documents. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 1.93% |
aligned | Used for inner aligned systems of equations or derivation steps inside another displayed formula, with an optional vertical-position argument. | ams | MathJax: Full | KaTeX: Full | XeTeX: Full | 1.79% |
cases | Used for piecewise-defined expressions with a left brace and two aligned columns | ams | MathJax: Full | KaTeX: Full | XeTeX: Full | 1.42% |
multline | Used for long equations that span multiple lines, typically with the first line left-justified, the last line right-justified, and middle lines centered. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 0.44% |
gather | Displayed groups of equations on separate centered lines without shared alignment points. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 0.43% |
gather* | Displayed groups of equations on separate centered lines without shared alignment points and without automatic numbering. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 0.37% |
multline* | Used for long equations that span multiple lines without assigning an equation number. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 0.28% |
gathered | Used for grouped multi-line formulas centered as a single inner block inside another displayed equation, with an optional vertical-position argument. | ams | MathJax: Full | KaTeX: Full | XeTeX: Full | 0.10% |
flalign | Used for full-length aligned equations where the equations are spread out across the width of the page, allowing left alignment. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 0.09% |
alignat | Used for multi-line displayed equations with a fixed number of right/left aligned column pairs and no automatic intercolumn spacing. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 0.06% |
alignat* | Used for the unnumbered form of alignat when fixed aligned column pairs are needed without equation numbers. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 0.04% |
flalign* | Used for full-length aligned equations without equation numbers, where the equations are spread out across the width of the page, allowing left alignment. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 0.03% |
alignedat | Used as a nested aligned equation structure with a fixed number of column pairs, often inside another display, with optional top/center/bottom vertical positioning. | ams | MathJax: Full | KaTeX: Partial | XeTeX: Full | 0.01% |
math | Explicit inline math environment. Equivalent to using $ ... $ or \( ... \). | base | MathJax: Full | KaTeX: None | XeTeX: None | <0.01% |
displaymath | Used for an unnumbered displayed equation or short display-style formula block. | base | MathJax: Full | KaTeX: None | XeTeX: Full | 0% |
xalignat* | Used for the unnumbered form of xalignat, giving a full-width AMS multiline alignment display with an explicit integer count of aligned column pairs. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | 0% |
indentalign | Used to wrap displayed math content while setting MathML indentation shift and left/center/right alignment metadata for the first, middle, and last lines. | base | MathJax: Full | KaTeX: None | XeTeX: None | — |
xalignat | Used for full-width AMS multiline alignment displays with an explicit integer count of aligned column pairs and normal equation numbering. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | — |
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. | ams | MathJax: Full | KaTeX: None | XeTeX: Full | — |