Matricesmatrix

matrixEnvironment

Used for ordinary matrices without surrounding delimiters inside equations and derivations

\begin{matrix} a & b \\ c & d \end{matrix}
Topic
Matrices
Available in
ams
Allowed mode
math
Body mode
math
Frequency
0.21% of corpus formulasrank 17 of 31
Commonality
high
Tags
matrix, nestable
Renderer support
PackageMathJaxKaTeXXeTeX
amsMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

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

Takes no arguments. Reading argspecs

Common tasks#

How to write a matrix with no fences#

\begin{matrix} a & b \\ c & d \end{matrix}

How to wrap a bare matrix in your own delimiters#

matrix is the unfenced building block behind pmatrix and friends.

\left\lVert \begin{matrix} a & b \\ c & d \end{matrix} \right\rVert

In TeXForm#

TeXForm reads the environment body in math mode.

See also#

Test cases#

ams
InputCaseMathJaxKaTeXXeTeX
\begin{matrix} a & b \\\\ c & d \end{matrix}Positive · baselinePassPassPass
All 18 in Matrices