复杂表格问题

复杂表格问题

我的表格有问题。我试图在两列文档中创建一个表格。这是一个具有多层的“复杂”表格。我使用的是 booktab 和 multicol。在我的文档的其余部分,所有内容都内置在 2 列的“类”中...

我遇到了以下问题:扫描多列文档时文件结束。有人能解释一下我的问题以及如何解决吗?

干杯!

\usepackage{booktabs,bm}
\newcolumntype{N}{>{\centering\arraybackslash}m{.5in}}
\newcolumntype{G}{>{\centering\arraybackslash}m{2in}}   

\begin{table*}
\caption{Reliability of short maximal-cycling and jumping -related indices of performance.}
\begin{tabular}{N N N N N N N N N N}\toprule

\multicolumn{4}{N}{\textbf{empty}} & \multicolumn{3}{N}{Intra-day reliability} & \multicolumn{3}{N}{Inter-day reliability} \\
\cline{5-7}
\cline{8-10}
\multicolumn{1}{N}{\textbf{Tests} & \textbf{Variable} & \textbf{Performance} & \textbf{SWC (\%)} & \textbf{TE (\%)} & \textbf{Magnitude} & \textbf{ICC} & 
\textbf{TE (\%)} & \textbf{Magnitude} & \textbf{ICC} \\
\cmidrule(lr){1-10}
\multicolumn{1}{ N } CMJ    & Height (cm) & 43.1$\pm$4.9 &  2.3\%   & 4.4$\pm$1.2   & small &   0.88$\pm$0.09   &   5.4$\pm$1.4 &   small   & 0.81$\pm$0.12 \\
\multicolumn{1}{ N } CMJ    & Peak velocity (m.s-1)&    3.3$\pm$0.3&    1.7\% & 3.2$\pm$0.8 &   small & 0.87$\pm$0.09   &   4.0$\pm$1.0 &   small & 0.8$\pm$0.13 \\
\multicolumn{1}{ N } CMJ &  Mean Power (W) &    3304.1$\pm$961.5 &  5.8\% & 16.8$\pm$4.7 &  moderate &  0.65$\pm$0.2 &      20.2$\pm$5.8 &  moderate &  0.50$\pm$0.26 \\
\multicolumn{1}{ N } Cycling &  Max Power (W) & 1219.4$\pm$159.5 &  2.6\% & 2.6$\pm$0.7 &   small & 0.97$\pm$0.02 &     3.4$\pm$0.9 &   small & 0.94$\pm$0.04 \\
\multicolumn{1}{ N } Cycling &  Mean Power (W) &    1100.5$\pm$129.2 &  2.3\% & 3$\pm$0.8 & small & 0.94$\pm$0.04 &     3.2$\pm$0.8 &   small & 0.94$\pm$0.05 \\
\bottomrule
\end{tabular}
\end{table*}

答案1

您忘记将单元格的内容放在multicolumn两个括号之间{}。这些错误中的第一个是此行\multicolumn{1}{N}{\textbf{Tests}},后续行中重复出现相同的错误。

\begin{table*}
\caption{Reliability of short maximal-cycling and jumping -related indices of performance.}
\begin{tabular}{N N N N N N N N N N}\toprule

\multicolumn{4}{N}{\textbf{empty}} & \multicolumn{3}{N}{Intra-day reliability} & \multicolumn{3}{N}{Inter-day reliability} \\
\cline{5-7}
\cline{8-10}
\multicolumn{1}{N}{\textbf{Tests}} & \textbf{Variable} & \textbf{Performance} & \textbf{SWC (\%)} & \textbf{TE (\%)} & \textbf{Magnitude} & \textbf{ICC} & 
\textbf{TE (\%)} & \textbf{Magnitude} & \textbf{ICC} \\
\cmidrule(lr){1-10}
\multicolumn{1}{ N } {CMJ}    & Height (cm) & 43.1$\pm$4.9 &  2.3\%   & 4.4$\pm$1.2   & small &   0.88$\pm$0.09   &   5.4$\pm$1.4 &   small   & 0.81$\pm$0.12 \\
\multicolumn{1}{ N } {CMJ}    & Peak velocity (m.s-1)&    3.3$\pm$0.3&    1.7\% & 3.2$\pm$0.8 &   small & 0.87$\pm$0.09   &   4.0$\pm$1.0 &   small & 0.8$\pm$0.13 \\
\multicolumn{1}{ N } {CMJ} &  Mean Power (W) &    3304.1$\pm$961.5 &  5.8\% & 16.8$\pm$4.7 &  moderate &  0.65$\pm$0.2 &      20.2$\pm$5.8 &  moderate &  0.50$\pm$0.26 \\
\multicolumn{1}{ N } {Cycling} &  Max Power (W) & 1219.4$\pm$159.5 &  2.6\% & 2.6$\pm$0.7 &   small & 0.97$\pm$0.02 &     3.4$\pm$0.9 &   small & 0.94$\pm$0.04 \\
\multicolumn{1}{ N } {Cycling} &  Mean Power (W) &    1100.5$\pm$129.2 &  2.3\% & 3$\pm$0.8 & small & 0.94$\pm$0.04 &     3.2$\pm$0.8 &   small & 0.94$\pm$0.05 \\
\bottomrule
\end{tabular}
\end{table*}

相关内容