Alignmentgathered

gatheredEnvironment

Used for grouped multi-line formulas centered as a single inner block inside another displayed equation, with an optional vertical-position argument.

\begin{gathered}a\end{gathered}
Topic
Alignment
Available in
ams
Allowed mode
math
Body mode
math
Frequency
0.10% of corpus formulasrank 18 of 31
Commonality
medium
Tags
math-alignment, nestable
Renderer support
PackageMathJaxKaTeXXeTeX
amsMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\begin{gathered}o[a]optional math content…math body\end{gathered}

Argspec o — one optional argument. Reading argspecs

Examples#

\begin{gathered}[b]a\end{gathered}

In TeXForm#

TeXForm reads the environment body in math mode.

See also#

Test cases#

ams
InputCaseMathJaxKaTeXXeTeX
\begin{gathered} a \\ b \end{gathered}Positive · ctx:basicPassPassPass
\begin{gathered}[b] a \\ b \end{gathered}Positive · ctx:with-posPassPassPass
All 25 in Alignment