我想让“n”位于 50 的中央?我该如何实现?
\begin{tabular}{lccc}
\hline
\multicolumn{4}{c}{Condition Numbers} \\
\multicolumn{3}{r}{n} \\
Correlation Structure & 30 & 50 & 100 \\
\hline
Gnat & per gram & 13.65 & 100 \\
& each & 0.01 & 100 \\
Gnu & stuffed & 92.50 & 100 \\
Emu & stuffed & 33.33 & 100\\
Armadillo & frozen & 8.99 & 100\\
\hline
\end{tabular}
答案1
只需将“n”放在第三列即可。我建议您使用siunitx
和booktab
包(注意第三列的对齐方式):
\documentclass{article}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\begin{tabular}{lcSc}
\toprule
\multicolumn{4}{c}{Condition Numbers} \\
& & {n} \\
Correlation Structure & 30 & {50} & 100 \\
\midrule
Gnat & per gram & 13.65 & 100 \\
& each & 0.01 & 100 \\
Gnu & stuffed & 92.50 & 100 \\
Emu & stuffed & 33.33 & 100\\
Armadillo & frozen & 8.99 & 100\\
\bottomrule
\end{tabular}
\end{document}
答案2
50
位于居中列,因此您只需将其放入n
同一列中:
\documentclass{article}
\begin{document}
\begin{tabular}{lccc}
\hline
\multicolumn{4}{c}{Condition Numbers} \\
&& n \\
Correlation Structure & 30 & 50 & 100 \\
\hline
Gnat & per gram & 13.65 & 100 \\
& each & 0.01 & 100 \\
Gnu & stuffed & 92.50 & 100 \\
Emu & stuffed & 33.33 & 100\\
Armadillo & frozen & 8.99 & 100\\
\hline
\end{tabular}
\end{document}