I am trying to make a table; and this I use for centering headings;
\NewExpandableDocumentCommand\mcc{m}{\multicolumn{1}{c}{#1}}
I have the following table using longtable
package;
\begin{longtable}{l l l l l l}
\centering
\caption{Quality scores assigned to the papers selected for inclusion.}
\label{T:quality_scores}
\hline
\mcc{Paper reference} & \mcc{Objectives} & \mcc{Results evaluation} & \mcc{Research Process} & \mcc{Comparisons} & \mcc{Sum} \\
\hline
[1] & 0.0 & 1.0 & 1.0 & 1.0 & 3.0 \\
[2] & 0.0 & 1.0 & 1.0 & 0.5 & 2.5 \\
[3] & 0.5 & 1.0 & 0.5 & 1.0 & 3.0 \\
[4] & 0.0 & 0.5 & 0.5 & 1.0 & 2.0 \\
[5] & 0.5 & 1.0 & 1.0 & 1.0 & 3.5 \\
[6] & 0.5 & 1.0 & 0.0 & 1.0 & 2.5 \\
[7] & 1.0 & 0.0 & 1.0 & 0.0 & 2.0 \\
[8] & 1.0 & 0.5 & 1.0 & 1.0 & 3.5 \\
[9] & 1.0 & 0.5 & 1.0 & 1.0 & 3.5 \\
[10] & 0.5 & 1.0 & 1.0 & 1.0 & 3.5 \\
[11] & 1.0 & 0.5 & 1.0 & 1.0 & 3.5 \\
[12] & 1.0 & 1.0 & 0.5 & 1.0 & 3.5 \\
[13] & 0.5 & 0.5 & 1.0 & 0.0 & 2.0 \\
[14] & 1.0 & 1.0 & 1.0 & 1.0 & 4.0 \\
[15] & 1.0 & 1.0 & 1.0 & 1.0 & 4.0 \\
[16] & 1.0 & 1.0 & 1.0 & 1.0 & 4.0 \\
[17] & 1.0 & 0.5 & 0.5 & 0.0 & 2.0 \\
[18] & 1.0 & 1.0 & 1.0 & 1.0 & 4.0 \\
[19] & 1.0 & 1.0 & 1.0 & 0.0 & 3.0 \\
[20] & 1.0 & 1.0 & 1.0 & 1.0 & 4.0 \\
[21] & 1.0 & 0.0 & 0.5 & 1.0 & 2.5 \\
[22] & 0.5 & 0.5 & 0.5 & 0.5 & 2.0 \\
[23] & 1.0 & 1.0 & 0.5 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52] & 1.0 & 1.0 & 1.0 & 1.0 & 4.0 \\
[53] & 1.0 & 1.0 & 1.0 & 1.0 & 4.0 \\
[54] & 1.0 & 1.0 & 0.5 & 0.5 & 3.0 \\
[55] & 0.5 & 1.0 & 0.5 & 1.0 & 3.0 \\
[56] & 0.0 & 1.0 & 1.0 & 1.0 & 3.0 \\
[57] & 1.0 & 0.0 & 0.5 & 0.5 & 2.0 \\
[58] & 0.0 & 1.0 & 0.0 & 1.0 & 2.0 \\
[59] & 1.0 & 1.0 & 0.0 & 0.5 & 2.5 \\
[60] & 1.0 & 1.0 & 0.5 & 0.5 & 3.0 \\
[61] & 0.5 & 1.0 & 0.5 & 1.0 & 3.0 \\
[62] & 1.0 & 1.0 & 1.0 & 1.0 & 4.0 \\
[63] & 1.0 & 0.5 & 0.0 & 0.5 & 2.0 \\
[64] & 1.0 & 0.5 & 0.5 & 0.5 & 2.5 \\
[65] & 1.0 & 0.0 & 0.5 & 1.0 & 2.5 \\
[66] & 1.0 & 0.5 & 0.5 & 0.5 & 2.5 \\
[67] & 0.5 & 1.0 & 0.5 & 1.0 & 3.0 \\
[68] & 0.5 & 1.0 & 0.5 & 0.5 & 2.5 \\
\hline
\end{longtable}
And got this error Misplaced alignment tab character &
. Any suggestions?
\\
after the caption material, secondly\centering
cannot be used like this inlongtable
delete it. Thirdly\\
are reading your[1]
etc as an argument to\\
and that argument is not allowed to be just a number, use{[1]}
instead. Then it compiles just fine.booktabs
package and its three rules instead of\hline
, they give better spacing around he line.