The TikZ-PGF manual is clear that for the matrix library, the delimiters are parentheses and braces:
Delimiters are parentheses or braces
to the left and right of a formula or
a matrix.
I would like to use brackets as delimiters for a matrix of math nodes. I have tried \left[
and \right]
but they do not work.
Is there any way to get brackets as delimiters for a matrix of math nodes?
Thanks.
Best Answer
Use
{[}
as the argument forleft delimiter
, and similar for the right.The matrix was copied directly from the
pgf
manual (section 38.3 Delimiters), only the delimiters changed. The reason you have to put the braces there is, I suspect, that the delimiter specification is placed within a set of brackets, and you therefore have to separate the delimiter brackets from the brackets for the matrix options.