包括多行合并、多列合并、多行多列同时合并。html
多行合并: \multirow{2}{*}{Multi-Row}3d
多列合并: \multicolumn{2}{|c|}{Multi-Column}code
多行多列同时合并:\multicolumn{2}{|c|}{\multirow{2}{*{Multi-Row and Col}}htm
这里有一个比较好的例子,参考连接: http://lidw1981.blog.163.com/blog/static/9923802009022590133/blog
\begin{tabular}{|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|}
(这种方式能够使每一列超出列宽的文字自动换行,可是当英文单词过长时仍是失效。)图片
\tabular环境得出的是一个盒子,不能跨页显示。
用\supertabular解决的比较好。
举个例子,关键代码:get
\chapter*{经常使用缩略语表} \begin{center} \tablefirsthead{\hline \multicolumn{1}{|c|}{缩写} & \multicolumn{1}{c|}{英文全称} & \multicolumn{1}{c|}{中文全称}\\\hline} \tablehead{% \hline \multicolumn{1}{|c|}{缩写} & \multicolumn{1}{c|}{英文全称} & \multicolumn{1}{c|}{中文全称}\\\hline} \tabletail{\hline} \tablelasttail{\hline} \begin{supertabular}{|p{1.4cm}|p{3.0cm}|p{9.25cm}|} \hline IF&Improved Factor& 改善因子\\\hline IF&Improved Factor& 改善因子\\\hline IF&Improved Factor& 改善因子\\\hline ... IF&Improved Factor& 改善因子\\\hline \end{supertabular}
运行结果
table
supertabular宏包的用法参考:http://blog.sina.com.cn/s/blog_5e16f1770100lix8.html
以及http://mirror.hust.edu.cn/CTAN/macros/latex/contrib/supertabular/supertabular.pdfast
(未完待续)class