TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
up vote 17 down vote accepted

Use {[} as the argument for left delimiter, and similar for the right.


\matrix [matrix of math nodes,left delimiter={[},right delimiter={]}]
a_8 & a_1 & a_6 \\
a_3 & a_5 & a_7 \\
a_4 & a_9 & a_2 \\

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.

share|improve this answer
It works :-) Thanks! – chandra Jun 8 '11 at 15:15

Yes Torbjorn T. is right, there is a problem with the brackets. You need to hide the bracket in tex group {...} but another solution is to write right delimiter=\rbrack,left delimiter= \lbrack

share|improve this answer
Thanks, @Altermundus. It too works. In my file, I needed to have [left delimiter=\lbrack, right delimiter=\rbrack ]. Note the space after \rbrack. – chandra Jun 10 '11 at 4:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.