Graphics, Figures & Tables\extra alignment tab has been changed to \cr in table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
xly
Posts: 7
Joined: Fri Mar 06, 2009 4:00 am

\extra alignment tab has been changed to \cr in table

Post by xly »

Hi,
I am consistently getting this error which is driving me crazy whenever I put \cline in my code. If I remove \cline, the code compiles with no errors. The error I got is "\extra alignement tab has been changed to \cr 1.260 \cline". I was wondering if somebody can help me with this. Here is my code for the table:

Code: Select all

\begin{table}
\caption{Iron concentrations of MPIO phantoms used to quantify $K_{Fe}$, the calibration constant of LMD and MPIO Iron content.}
\begin{center}
\begin{tabular}{| c | c | c |}
\hline
\multirow{2}{*}{Sample \#} & \multicolumn{2}{|c|}{Iron Concentration ($\mu$g/ml)}  \\
\cline{2-6}
  & 0.96$\mu$m MPIO & 1.63$\mu$m MPIO \\
\hline
1 & 0  &  0 \\
\hline
2 & 4  & 3.1 \\
\hline
3 & 8  & 6.1   \\
\hline
4 & 12 & 9.2   \\
\hline
5 & 16  & 12.2   \\
\hline
6 & 18  & 15.3  \\
\hline
7 & 20  & 18.3 \\
\hline
8 & 22  & 21.4   \\
\hline
9 & 24 & 24.5  \\
\hline
10 & 26  & 27.5  \\ 
\hline
11 & 28 & 30.6  \\
\hline
12 &  -  & 33.6 \\
\hline
13 & -  & 36.7   \\
\hline
14 & - & 39.8  \\
\hline
15 & -  & 42.8  \\
\hline
\end{tabular}
\end{center}
\label{tb:LMDconc}
\end{table}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

\extra alignment tab has been changed to \cr in table

Post by gmedina »

Hi,

your table only has three columns. Change

Code: Select all

\cline{2-6}
to

Code: Select all

\cline{2-3}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
xly
Posts: 7
Joined: Fri Mar 06, 2009 4:00 am

Re: Table \cr error

Post by xly »

Thanks, gmedina. It was a stupid error from me. This is the first for me to use this forum, and I think it is a great service.
Post Reply