I am receiving the "extra alignment tab has been changed to \cr" error in producing a complicated table in LaTeX. The minimalist table below should replicate the error. I have read the other answers on StackExchange but they do not identify why this error arises. An answer will (a) identify the issue and a resolution and (b) why this is happening.

\begin{table}[!htbp] \centering 
\hline \\[-1.8ex] 
& \multicolumn{2}{c}{\textit{Dependent variable:}} \\ 
\\[-1.8ex] & \multicolumn{2}{c}{Test} \\ 
 & Test & Test & Test \\ 
\hline \\[-1.8ex] 
\textit{Note:}  & \multicolumn{2}{r}{$^{*}$p$<$0.1; $^{**}$p$<$0.05; $^{***}$p$<$0.01} \\ 

closed as off-topic by Mico, Romain Picot, user13907, user31729, Svend Tveskæg Feb 21 '16 at 9:38

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    you define three cols with lcc but entered four on the Test entry row. Hence the extra alignment tab... – percusse Feb 20 '16 at 22:26
  • 4
    I'm voting to close this question as off-topic because the cause of the error wasn't fully shown in the OP's example code and because the error was resolved based on information available only to the OP. – Mico Feb 21 '16 at 7:32

Issue was that I defined three columns with lcc but entered four on the Test entry row. This arose because the column names (excluded from the above code) had been "X & Y" which was converted from R's Stargazer to LaTeX literally and thus produced an extra column by accident.

Not the answer you're looking for? Browse other questions tagged or ask your own question.