m****d 发帖数: 9307 | 1 大家好,请问如果在一个column第一个cell下面的所有cell拆成几个cell,如何操作?
比如,也就是说某个cell是一个格子,但是下面的cell全部分成3部分,纵向分三个格
子?
谢谢啦!! | r*********I 发帖数: 615 | 2 http://en.wikibooks.org/wiki/LaTeX/Tables
Rows spanning multiple columns
The command for this looks like this: \multicolumn{'num_cols'}{'alignment'}{
'contents'}. num_cols is the number of subsequent columns to merge; alignmen
t is either l, c, r, or to have text wrapping specify a width p{5.0cm} . And
contents is simply the actual data you want to be contained within that cel
l. A simple example:
\begin{tabular}{ |l|l| }
\hline
\multicolumn{2}{|c|}{Team sheet} \\
\hline
GK & Paul Robinson \\
LB & Lucus Radebe \\
DC & Michael Duberry \\
DC & Dominic Matteo \\
RB & Dider Domi \\
MC & David Batty \\
MC & Eirik Bakke \\
MC & Jody Morris \\
FW & Jamie McMaster \\
ST & Alan Smith \\
ST & Mark Viduka \\
\hline
\end{tabular}
效果如图
[img]http://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Multicolumn.svg/147px-Multicolumn.svg.png[/img]
不知道是不是你想要的?
【在 m****d 的大作中提到】 : 大家好,请问如果在一个column第一个cell下面的所有cell拆成几个cell,如何操作? : 比如,也就是说某个cell是一个格子,但是下面的cell全部分成3部分,纵向分三个格 : 子? : 谢谢啦!!
| m****d 发帖数: 9307 | |
|