Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using bmatrix environment from the amsmath package, and I'm trying to do something like this:


             1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11\\

However, pdfLaTeX returns an error: "Extra alignment tab has been changed to \cr", and in the output the extra element is moved to the next row. (If I remove one element, then it works perfectly fine). I guess this means that I've hit some hard limit on the number of tab stops in a matrix. Is there a way to change this?

The elements in the matrix are short and could fit perfectly on a single row.

share|improve this question
Funny enough, I looked once more after I got an answer to the question, and this latex-community.org/forum/viewtopic.php?f=46&t=5996 popped up, answered by @Stefan Kottwitz a year ago. Wish I could give him some rep for that! –  Martin Tapankov Sep 27 '10 at 11:32

1 Answer 1

up vote 19 down vote accepted

Googling "10 columns" together with "tex" and "halign" lead me to this document, where it is explained that, e.g.,


enables you to use 20 columns.

share|improve this answer
This is documented in the footnote on page 8 of the amsmath manual. –  Philipp Sep 27 '10 at 12:07

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.