Alignmentgather

gatherEnvironment

Displayed groups of equations on separate centered lines without shared alignment points.

\begin{gather} a = b \end{gather}
Topic
Alignment
Available in
ams
Allowed mode
math
Body mode
math
Frequency
0.43% of corpus formulasrank 14 of 31
Commonality
medium
Tags
math-alignment
Renderer support
PackageMathJaxKaTeXXeTeX
amsMathJax: FullKaTeX: NoneXeTeX: Full
About the test scope

Syntax#

\begin{gather}…math body\end{gather}

Takes no arguments. Reading argspecs

Common tasks#

How to center several equations without aligning#

\begin{gather} a=b \\ c=d+e \end{gather}

How to gather short identities#

Use gather when there is no shared alignment point.

\begin{gather} \sin^2 x+\cos^2 x=1 \\ e^{i\pi}+1=0 \end{gather}

In TeXForm#

TeXForm reads the environment body in math mode.

See also#

Test cases#

ams
InputCaseMathJaxKaTeXXeTeX
\begin{gather} a \\ b \end{gather}Positive · ctx:no-ampersandPassFailPass
All 25 in Alignment