I have a table

\begin{tabularx}{\textwidth}{c *{6}{Y}}
 Compare with game & \multicolumn{2}{3}{95\% confidence interval} & p-value\\
P1 & 0.45 & 0.28 & 9e-06 \\
P2 & -0.94 & -0.43 & 9e-05 \\
P3 & 0.36 & 0.74 & 7e-05 \\
\caption{My caption}

and the error is reported at the line \end{tabularx}. I searched through the site but it seems to me that no one have exact same problem with me.


Here is my 'Y' definition:

\usepackage{tabularx, booktabs}
  • It seems you have not defined the "Y" column; can you please give us the definition?
    – Moriambar
    Commented Nov 3, 2015 at 19:15
  • 3
    Your \multicolumn call is wrong...
    – cgnieder
    Commented Nov 3, 2015 at 19:27
  • 1
    you have specified {3} as the alignment to \multicolumn but please always post a complete document that shows the error not disconnected fragments. Commented Nov 3, 2015 at 19:59

1 Answer 1


As it states in the error message in the title, the illegal specification is 3 the error is

 \multicolumn{2}{3}{95\% confidence interval}

which should be

 \multicolumn{2}{c}{95\% confidence interval}

The error is reported at the \end{tabularx} as the entire tabularx environment is saved (to allow multiple trial width settings) before it is evaluated, so before the error is seen.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .