我正在尝试将单元格与总体完成时间和任务 3(问题部分)完成时间对齐。这是我的代码。我只需要将这两个单元格对齐
\begin{table}[!htb]
\begin{threeparttable}
\caption{Pairwise comparisons for overall and task 3 (problematic sections) completion time}
\label{tab:taskcompletiontimepairwise}
\begin{tabular}{p{2.5cm}p{2.5cm}p{3cm}p{2.0cm}p{1.5cm}}
\toprule
Interface (i) &
Interface (j) &
Mean Difference (i-j) & Std. Error & Sig. \\
\midrule
\multirow{1}{*} {Overall completion time} \\
\midrule
Traditional & Timed & 36.96 & 30.95 & .753 \\
Traditional & VidComm & 105.98\tnote{\textasteriskcentered} & 29.90 & .009 \\
Timed & VidComm & 69.03 & 34.71 & .196 \\
\bottomrule
\multirow{1}{*}{Task 3 (problematic sections) completion time} \\
\midrule
Traditional & Timed & -4.03 & 18.39 & 1.000 \\
Traditional & VidComm & 58.30 & 22.49 & .061 \\
Timed & VidComm & 62.33\tnote{\textasteriskcentered} & 15.65 & .004 \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item[\textasteriskcentered] The mean difference is significant at the 0.05 level.
\end{tablenotes}
\end{threeparttable}
\end{table}
答案1
在我看来,\multirow
该表中的 没什么用。要使整个列居中,请使用\multicolumn{5}{c}{your text}
\documentclass{article}
\usepackage{booktabs}
\usepackage{threeparttable}
\usepackage{multirow}
\usepackage{textcomp}
\begin{document}
\begin{table}[!htb]
\begin{threeparttable}
\caption{Pairwise comparisons for overall and task 3 (problematic sections) completion time}
\label{tab:taskcompletiontimepairwise}
\begin{tabular}{p{2.5cm}p{2.5cm}p{3cm}p{2.0cm}p{1.5cm}}
\toprule
Interface (i) &
Interface (j) &
Mean Difference (i-j) & Std. Error & Sig. \\
\midrule
\multirow{1}{*} {Overall completion time} \\
\midrule
Traditional & Timed & 36.96 & 30.95 & .753 \\
Traditional & VidComm & 105.98\tnote{\textasteriskcentered} & 29.90 & .009 \\
Timed & VidComm & 69.03 & 34.71 & .196 \\
\bottomrule
\multicolumn{5}{c}{Task 3 (problematic sections) completion time} \\
% \multirow{1}{*}{Task 3 (problematic sections) completion time} \\
\midrule
Traditional & Timed & -4.03 & 18.39 & 1.000 \\
Traditional & VidComm & 58.30 & 22.49 & .061 \\
Timed & VidComm & 62.33\tnote{\textasteriskcentered} & 15.65 & .004 \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item[\textasteriskcentered] The mean difference is significant at the 0.05 level.
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}