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 am trying to make a table with 10 columns. For some reason, when I add an 11th column, the table no longer compiles.

Below is, I believe, a minimum working example.

Specifically, the table works with

 \begin{tabular}{l*9{c}}

but it does not work with

 \begin{tabular}{l*10{c}}

Note that the following ONLY compiles because it is the version with the 9 rather than the 10. I would like for it to have the 10 so I can insert an extra column.

My tables begin as:

\documentclass{article}
\usepackage{array}
\begin{document}

\begin{tabular}{l*10{c}}
 & (1) & (2) & (3) & (4) & (5) & (6) & (7) & (8) & (9) & (10) \\  
\end{tabular}

\end{document}
share|improve this question
1  
I've edited the MWE here down to an absolute minimum to show the issue: this should help other uses see what is going on. In particular, the issue is independent of tabularx. –  Joseph Wright Feb 15 '12 at 20:05

1 Answer 1

up vote 6 down vote accepted

Your problem is that the * syntax takes a single argument: it does not keep 'looking' for a number. So instead of

\begin{tabularx}{1.0\textwidth}{l*10{c}}

you need

\begin{tabularx}{1.0\textwidth}{l*{10}{c}}

Notice the braces around the 10.

share|improve this answer

Your Answer

 
discard

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.