I am using the command \begin{pmatrix} [...] \end{pmatrix}. I wonder why this command is not just called \begin{matrix} [...] \end{matrix} and why a "p" before "matrix".
Asked
Active
Viewed 5,850 times
17
3 Answers
33
The amsmath package provides a number of options. The leading letter before matrix indicates the delimiter that is used:
p for parens, b for brackets, v for verts, B for braces, V for double verts.
\documentclass{article}
\usepackage{amsmath,tabstackengine}
\begin{document}
\[
\begin{matrix}
1&2&3\\
4&5&6\\
7&8&9
\end{matrix}
\quad
\begin{pmatrix}
1&2&3\\
4&5&6\\
7&8&9
\end{pmatrix}
\quad
\begin{bmatrix}
1&2&3\\
4&5&6\\
7&8&9
\end{bmatrix}
\quad
\begin{vmatrix}
1&2&3\\
4&5&6\\
7&8&9
\end{vmatrix}
\]
\[
\begin{Bmatrix}
1&2&3\\
4&5&6\\
7&8&9
\end{Bmatrix}
\quad
\begin{Vmatrix}
1&2&3\\
4&5&6\\
7&8&9
\end{Vmatrix}
\]
\end{document}
Steven B. Segletes
- 237,551
2
Plain TeX defines the macro \pmatrix as matrix with parentheses and \matrix as the same without parentheses. So, the terminology mentioned here is inspired by plain TeX.
wipet
- 74,238
-1
The "p" in pmatrix stands for "parentheses"
There is also Bmatrix for "Brace Matrix"
and... bmatrix for "bracket Matrix"
IdleCustard
- 1,194
-
6All this is already mentioned in the @Steven B. Segletes answer, from where is also showed image ... – Zarko Sep 23 '22 at 02:17

bmatrixis for bracketed matrices. – Steven B. Segletes Jan 19 '16 at 15:16matrixenvironment is the generic version -- it has no delimiters. – Jan 19 '16 at 15:18Bfor braces,Vfor vertical bars and there are more. – Sigur Jan 19 '16 at 15:19Bfor “braces”,vfor “vert” (like in\vert),Vfor “Vert” (like in\Vert). – egreg Jan 19 '16 at 15:19matrixdelimiters? ;-) – Jan 19 '16 at 15:37