\usepackage{multirow}%表格
\usepackage{booktabs}
\renewcommand{\arraystretch}{1.8}
\begin{table}[h] %h固定表格位置
\centering
\begin{tabular}{ccccccc}
% \hline
\toprule[1.1pt]
\multicolumn{2}{c}{\textbf{样本容量}} & N=1 & N=5 & N=10 & N=30 & N=100 \\
% \hline
\midrule[0.7pt]
\multirow{2}{*}{\textbf{KS检验}} & statistics & 0.5681& 0.4220 & 0.3062 & 0.1971 & 0.0602 \\
\cline{2-7}
&pvalue & 1.5839e-61& 8.0467e-33 & 3.8781e-17 & 2.7866e-07 & 0.4457\\
% \hline
\bottomrule[1.1pt]
\end{tabular}
\end{table}
效果:

这篇博客介绍了如何利用LaTeX宏包如`multirow`和`booktabs`来创建专业品质的表格。示例中展示了如何设置表格样式,包括行间距、边框样式,并给出了一个具体的样本容量与KS检验统计数据的表格实例。
2893

被折叠的 条评论
为什么被折叠?



