Syntax#
\begin{aligned}o[a]optional math content…math body\end{aligned}Argspec o — one optional argument. Reading argspecs
Common tasks#
How to put a small system beside a condition#
How to top-align a nested block#
Examples#
In TeXForm#
TeXForm reads the environment body in math mode.
See also#
gatheredams
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\begin{aligned}
a & b
\end{aligned} | Positive · baseline | Pass | Pass | Pass |
\begin{aligned}[a]
a & b
\end{aligned} | Positive · vary:o[0] | Pass | Pass | Pass |