然而,这是我通过将 \thead 嵌套在 \multicolumn 中所能实现的:
请注意,所需的表头如何完全跨越 2 列,而我的情况看起来缩小了。
这是 tex 本身:
\begin{table*}[th]
\centering
\par%
\begin{tabular}
[c]{cccccccc}\hline
Method & \multicolumn{2}{c}{\thead{NOT YOS \\\hline LIB}} &
\multicolumn{2}{c}{\thead{LIB YOS \\\hline NOT}} & \multicolumn{2}{c}{\thead{LIB NOT \\\hline YOS}} & Mean\\\hline
答案1
\documentclass[twocolumn]{article}
\usepackage{booktabs}
\usepackage{multirow}
\begin{document}
\begin{table*}
\centering
\begin{tabular}{cccccccc}
\toprule
\multirow{2.4}{*}{Method} & NOT & YOS & LIB & YOS & LIB & YOT & \multirow{2.4}{*}{Mean}\\
\cmidrule(r){2-3} \cmidrule(lr){4-5} \cmidrule(l){6-7}
& \multicolumn{2}{c}{LIB} & \multicolumn{2}{c}{NOT} & \multicolumn{2}{c}{YOS} & \\
\midrule
\end{tabular}
\end{table*}
\end{document}