Syntax#
\begin{pmatrix}…math body\end{pmatrix}Takes no arguments. Reading argspecs
Common tasks#
How to write a matrix in parentheses#
How to write a column vector in parentheses#
How to write a 2-by-3 matrix#
In TeXForm#
TeXForm reads the environment body in math mode.
Rewrite the fenced pmatrix environment to explicit parens around a core matrix environment.
\begin{pmatrix} #1 \end{pmatrix} \left(\begin{matrix} #1 \end{matrix}\right)See also#
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\begin{pmatrix}
a & b \\\\ c & d
\end{pmatrix} | Positive · baseline | Pass | Pass | Pass |