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

Here's a minimal example of what I'm doing presently:

    \renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%
      \hskip -\arraycolsep

  1&2&3&0 \\
  4&5&6&0 \\
  7&8&9&0 \\

Here's what the output looks like:

Present output (parens)

I'd prefer if the left and right brackets on the matrix were square brackets instead of parentheses.

Is there an easy way to make such a change?

share|improve this question
A excellent summary of matricies is in this answer: where is the matrix command – Peter Grill Nov 21 '11 at 17:46
Nice. That is a good summary. – Harold Nov 21 '11 at 17:59
up vote 9 down vote accepted

Easy. Change pmatrix to bmatrix:

enter image description here

See amsmath documentation for other kinds of matrices, like vmatrix, Vmatrix, etc

share|improve this answer
Thanks @Boris! That works great! I really appreciate the help. – Harold Nov 21 '11 at 17:42
or look at mathmode.pdf (26.6 Matrix environments) with texdoc mathmode.pdf – Alain Matthes Nov 21 '11 at 17:42

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.