包括多行合併、多列合併、多行多列同時合併。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