Alignmenteqnarray

eqnarrayEnvironment

Legacy multi-line displayed equations with column alignment via & and row breaks via \\, typically with equation numbering on rows.

\begin{eqnarray} a = b \end{eqnarray}
Topic
Alignment
Available in
base
Allowed mode
math
Body mode
math
Frequency
7.31% of corpus formulasrank 3 of 31
Commonality
medium
Tags
math-alignment, discouraged
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: NoneXeTeX: Full
About the test scope

Syntax#

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

Takes no arguments. Reading argspecs

Common tasks#

How to write a three-column equation array#

eqnarray uses &rel&; prefer align, which has better spacing.

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

How to write two numbered lines in eqnarray#

\begin{eqnarray} x+y &=& 1 \\ x-y &=& 0 \end{eqnarray}

Examples#

\begin{eqnarray} x & = & y \end{eqnarray}

In TeXForm#

TeXForm reads the environment body in math mode.

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\begin{eqnarray} a & b \end{eqnarray}Positive · baselinePassFailPass
All 25 in Alignment