转:latex表格线的加粗及合并两行 标题换行

如何使用Latex制作三线表格?
https://jingyan.baidu.com/article/363872ec096bec6e4ba16f0f.html

\latex 居中与缩进
https://blog.csdn.net/lishoubox/article/details/7295947

转:https://blog.csdn.net/tina_lulu_21/article/details/7689321
Latex中插图中的标题的换行:
如果一副图像的标题(caption)过长,我们一般希望中间加入一个换行,把较长的文字放在标题的第二行。
那么在figure环境中的caption{}中如何断行呢?

此时不再是用\了,而是用\protect\,
例如\caption{short text \protect\ long text} 。

因为\是脆弱的,必须在其前面加上\protect


转:https://blog.csdn.net/loveaborn/article/details/9151505

在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}
  • 5
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值