\documentclass[11pt]{article}
\usepackage{amsmath, amsthm, amssymb,amsfonts}
\begin{document}
$A=\begin{pmatrix}
1 && 1 && 1 && 0 && 0 && 0 && 0 && 0 && 0 \\
0 && 0 && 1 && 1 && 1 && 0 && 0 && 0 && 0 \\
0 && 1 && 0 && 1 && 0 && 1 && 1 && 0 && 0 \\
0 && 1 && 0 && 0 && 1 && 0 && 0 && 1 && 1 \\
0 && 0 && 0 && 0 && 0 && 1 && 0 && 0 && 0 \\
0 && 0 && 0 && 0 && 0 && 0 && 0 && 1 && 0 \\
1 && 0 && 0 && 0 && 0 && 0 && 1 && 0 && 0 \\
1 && 0 && 0 && 0 && 0 && 0 && 0 && 0 && 1 \\
1 && 0 && 0 && 0 && 0 && 0 && 0 && 0 && 0 \\
\end{pmatrix}$
\end{document}
Asked
Active
Viewed 1.3k times
16
1 Answers
27
number of columns in your matrix exceed default value (10). it can be enlarged for example to 20 columns by adding
\setcounter{MaxMatrixCols}{20}
in preamble. why you need empty columns?
Zarko
- 296,517
&&with&and (b) issued the command\setlength\arraycolsep{10pt}. A side benefit of the approach recommended here would be that you wouldn't have to increase the value of the counter variableMaxMatrixCols-- at least, not the thepmatrixat hand. – Mico Jun 16 '18 at 10:03&&, not a single&? In short, is each other column empty? – Bernard Jun 16 '18 at 10:07&&in every row it doesn't increase space – David Carlisle Jun 16 '18 at 10:31\setcounter{MaxMatrixCols}{17}, of course) the outputs of (a)$A=\begin{pmatrix} 1 && 1 && 1 && 0 && 0 && 0 && 0 && 0 && 00 \end{pmatrix}$and (b)\setlength\arraycolsep{10pt}$A=\begin{pmatrix} 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \end{pmatrix}$. Thesepmatrixenvironments have the same width -- a result that isn't changed by having more rows of the type shown in the OP's example. – Mico Jun 16 '18 at 10:38