答案1
我建议multicolumn
和cline
。
\begin{tabular}{ccccc}
& & \multicolumn{2}{c}{well} & \tabularnewline
\cline{3-4}
& & 1 & 2 & 3\tabularnewline
\hline
some & a & b & c & d\tabularnewline
\hline
stuff & e & f & g & h\tabularnewline
\hline
in & i & j & k & l\tabularnewline
\hline
a & m & n & o & p\tabularnewline
\end{tabular}
答案2
答案3
我使用了相同的代码。但我更改了以下几行并进行了编译。
\begin{tabularx}{\textwidth}{lrcp{2.8cm}p{2.5cm}}
\toprule
& \multicolumn{2}{l}{Proportions (\% )} & \multicolumn{2}{l}{ }\\
& \multicolumn{2}{l}{if not indicated otherwise}&\multicolumn{2}{l}{ OR (95\% Cl)for group differences}\\
\cmidrule{2-5}
& Type 1 & & & \\
Outcome variable&diabetes &Control&Crude&Adjusted \tabularnewline
\midrule
我得到了以下