orient的个人博客分享 http://blog.sciencenet.cn/u/orient

博文

设置单元格垂直居中,并设置单元格高度 latex

已有 33252 次阅读 2013-2-28 08:27 |系统分类:科研笔记|关键词:学者| 表格, 单元格, 垂直居中, 调整行高

begin{table}
centering
begin{tabular}{m{0pt}m{1.7cm}m{1.7cm}m{1.7cm}}
hline
rule{0pt}{8pt}& Head1     &Head2   &Head3 \hline
rule{0pt}{8pt}& 3         &2       &3     \hline
end{tabular}
end{table}
注释1:m{0pt}设置了一个dummy column,如果不设置这一列,rule{0pt}{8pt}会使得最靠左的一列垂直居中的设置失效。
注释2:rule{0pt}{8pt} 将表格中单元格撑起来(0pt:线的宽度,8pt:撑起的高度)【这一点参考自:http://suzy8802.blog.163.com/blog/static/2124020642012911325769/】
vertically centered, and adjust row height


https://m.sciencenet.cn/blog-264887-665764.html

上一篇:每个子图的下面显示(a), (b)
下一篇:latex不显示图表序号或不显示图表标题

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-6-2 09:48

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部