您的位置:首页 > 其它

latex表格线的加粗及合并两行

2013-06-22 17:03 2779 查看
在latex中要设置加粗的表格线,要使用如下包:

\usepackage{booktabs}


如下图中的表格,首行(\toprule[2pt]),中间行(\midrule[1pt])及未尾行(\bottomrule[2pt])加粗:



对于以上表格,合并两行使用
\multirow{2}*{男}
总的代码如下:

\begin{table}[h]
\centering
\begin{tabular}{cc|c|c|c|c}
\toprule[2pt]
&      &\textbf{Min}  &\textbf{Max}   &\textbf{M}   &\textbf{SD}\\ \midrule[1pt]
\multirow{2}*{男}  & 文科 &        1.00  &5.00	         &2.55        &1.36 \\
& 理科  & 1.00	&4.00	&1.86	&0.95\\
\multirow{2}*{女}  & 文科 &        1.00  &5.00	         &2.48        &1.29 \\
& 理科  & 1.00	&5.00	&2.10	&1.28\\
\bottomrule[2pt]
\end{tabular}
\caption{各类人群日常微博使用情况描述统计表}
\label{tab:wei1}
\end{table}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: