答案1
你想拥有这样的东西吗?
\begin{table}[]
\begin{tabular}{|l|l|l|l|l|l|l|l|l|l|l|l|}
\hline
\multicolumn{3}{|l|}{Treatment 1} & \multicolumn{3}{l|}{Treatment 2} & \multicolumn{3}{l|}{Treatment 3} & \multicolumn{3}{l|}{Treatment 4} \\ \hline
Obj\# & RR & Radius & Obj\# & RR & Radius & Obj\# & RR & Radius & Obj\# & RR & Radius \\ \hline
1 & & & 1 & & & 2 & & & 2 & & \\ \hline
2 & & & Dissapeared & - & & 5 & & & 4 & & \\ \hline
3 & & & 2 & & & 4 & & & 5 & & \\ \hline
- & & & 3 & & & 3 & & & 6 & & \\ \hline
- & & & 4 & & & 1 & & & 1 & & \\ \hline
- & & & 5 & & & \begin{tabular}[c]{@{}l@{}}6\\ \\ \\ 9\end{tabular} & & & \begin{tabular}[c]{@{}l@{}}8\\ \\ 10\end{tabular} & & \\ \hline
- & & & 6 & & & 7 & & & 7 & & \\ \hline
- & & & 7 & 1 & & 8 & & & 9 & & \\ \hline
- & - & - & - & - & - & - & - & - & 3 & & \\ \hline
\end{tabular}
\end{table}
答案2
我会尝试使用该tabularray
包。使用它,表代码更短,结果(在我看来)更好:
\documentclass{article}
\usepackage[margin=25mm]{geometry}
\usepackage{tabularray}
\begin{document}
\begin{table}[ht]
\begin{tblr}{hlines, vlines,
colspec={*{12}{Q[l,m]}}
}
\SetCell[c=3]{l} Treatment 1 & &
& \SetCell[c=3]{l} Treatment 2 & &
& \SetCell[c=3]{l} Treatment 3 & &
& \SetCell[c=3]{l} Treatment 4 & \\
Obj\# & RR & Radius
& Obj\# & RR & Radius
& Obj\# & RR & Radius
& Obj\# & RR & Radius \\
1 & & & 1 & & & 2 & & & 2 & \\
2 & & & {Dissa-\\peared}
& - & & 5 & & & 4 & \\
3 & & & 2 & & & 4 & & & 5 & \\
- & & & 3 & & & 3 & & & 6 & \\
- & & & 4 & & & 1 & & & 1 & \\
- & & & 5 & & & {6\\ ~\\ ~\\ 9}
& & & \SetCell[c=1]{h}{8\\ ~\\ 10}
& \\
- & & & 6 & & & 7 & & & 7 & & \\
- & & & 7 & 1 & & 8 & & & 9 & & \\
- & - & - & - & - & - & - & - & - & 3 & & \\
\end{tblr}
\end{table}
\end{document}