LaTeX Wiki
Advertisement

The matrix environments are array, matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix, and smallmatrix. Each provides a table for expressions, aligned in rows and columns. The main difference between the various types of matrix is the kind of delimeters that surround them.

Each row of a matrix ends with two backslashes (\\). Each column ends with an ampersand (&).

LaTeX markup... ...results in: ...is used for:
\begin{array}{|l|cr}
left1 & center1 & right1\\
\hline
d & e & f
\end{array}
array.
|l|cr means
left-align, center,
and right align columns;
vertical bars before and
after first column.
\hline draws a
horizontal line.
\begin{matrix}
\alpha& \beta^{*}\\
\gamma^{*}& \delta
\end{matrix}
plain matrix
Advertisement