Syntax#
\begin{gathered}o[a]optional math content…math body\end{gathered}Argspec o — one optional argument. Reading argspecs
Examples#
In TeXForm#
TeXForm reads the environment body in math mode.
See also#
alignedams
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\begin{gathered} a \\ b \end{gathered} | Positive · ctx:basic | Pass | Pass | Pass |
\begin{gathered}[b] a \\ b \end{gathered} | Positive · ctx:with-pos | Pass | Pass | Pass |