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