Alignmentaligned

alignedEnvironment

Used for inner aligned systems of equations or derivation steps inside another displayed formula, with an optional vertical-position argument.

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

Syntax#

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

Argspec o — one optional argument. Reading argspecs

Common tasks#

How to nest an alignment inside one equation#

aligned is nestable; align is not.

\begin{equation} \begin{aligned} a &= b+c \\ &= d \end{aligned} \end{equation}

How to put a small system beside a condition#

\begin{equation} \left\{ \begin{aligned} x &= a \\ y &= b \end{aligned} \right. \end{equation}

How to top-align a nested block#

\begin{equation} f(x)= \begin{aligned}[t] &x^2 \\ &+1 \end{aligned} \end{equation}

Examples#

\begin{aligned}[t]a\end{aligned}

In TeXForm#

TeXForm reads the environment body in math mode.

See also#

Test cases#

ams
InputCaseMathJaxKaTeXXeTeX
\begin{aligned} a & b \end{aligned}Positive · baselinePassPassPass
\begin{aligned}[a] a & b \end{aligned}Positive · vary:o[0]PassPassPass
All 25 in Alignment