Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
base | MathJax: Full | KaTeX: Full | XeTeX: Full |
textmacros | MathJax: Full | KaTeX: Full | XeTeX: None |
Syntax#
\\!s*star!o:L[1em]optional dimensionArgspec !s !o:L — two optional arguments. Same argspec in base and textmacros. Reading argspecs
Common tasks#
How to break a line inside an aligned equation#
\\ ends a row in align, cases, and matrix environments.
How to add a line break in a stacked subscript#
How to break a long matrix row#
Package variants#
| Package | Signature | Allowed mode | Notes |
|---|---|---|---|
base | !s !o:L | math | — |
textmacros | !s !o:L | text | — |
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\\ | Positive · baseline | Pass | Pass | Pass |
\\* | Positive · vary:s[0] | Pass | Pass | Pass |
\\[1pt] | Positive · vary:o[1] | Pass | Pass | Pass |
\\*[1pt] | Positive · maximal | Pass | Pass | Pass |
\\[a] | Negative · neg:L[1] | Fail | Fail | Fail |
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\\ | Positive · baseline | Pass | Pass | Fail |
\\* | Positive · vary:s[0] | Pass | Pass | Fail |
\\[1pt] | Positive · vary:o[1] | Pass | Pass | Fail |
\\*[1pt] | Positive · maximal | Pass | Pass | Fail |
\\[a] | Negative · neg:L[1] | Pass | Fail | Fail |