I'd welcome versions of the bmatrix
and pmatrix
environments that dash or dot the brackets. A MWE is below. I found another question that explains how to draw dashed curly braces, but I'd like an environment that behaves in every way like bmatrix
or pmatrix
except for the dashed pattern. How would I accomplish that? My guess is that bmatrix is much easier than pmatrix.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{bmatrix}
0 & 1 \\ 2& 3
\end{bmatrix}
\end{equation}
I want the brackets of this matrix dashed or densely dotted.
\end{document}
Best Answer
See below for expanded answer.
Here is the
dBmatrix
anddpmatrix
environments, using code from the cited question and theenviron
package. Mytikz
is primitive, so I am still trying to figure out how to get bracket decorations.Employing Peter Grill's answer at draw round/rectangular bracket embracing nodes in tikz allowed for the definition of rounded parens as well as square bracket decorations. Thus, the look here is slightly different than above. So here,
dpmatrix
is redefined from above anddbmatrix
is introduced.