latex表格制作
1、使用multirow之前,一定要在添加宏包的区域添加上宏包,否则是无法运行的!\usepackage{multirow}
2、\begin{tabular}{|l|l|l|l|} \hline\multirow{4}{2cm}{This is a demo table} & C2a & \multirow{4}{2cm}{This is another one} & C4a\ & C2b & & C4b\ & C2c & & C4c\ & C2d & & C4d\ \hline \end{tabular}
3、\begin{tabular}{c c c c c c c c }\hline\multirow{2}{1cm}{$\beta$}\multirow{2}{1cm}{n}&~&a&~&~&b&~&\\cline{2-8}&1&2&3&4&5&6&\ \hline % after \: \hline or \cline{col1-col2} \cline{col3-col4} ... \multirow{4}{2cm} {1.1} &1&2&3&4&5&6\ &1&2&3&4&5&6\ &1&2&3&4&5&6\ &1&2&3&4&5&6\ \hline % after \: \hline or \cline{col1-col2} \cline{col3-col4} ... \multirow{4}{2cm} {1.5} &1&2&3&4&5&6\ &1&2&3&4&5&6\ &1&2&3&4&5&6\ &1&2&3&4&5&6\ \hline % after \: \hline or \cline{col1-col2} \cline{col3-col4} ... \multirow{4}{2cm} {1.9} &1&2&3&4&5&6\ &1&2&3&4&5&6\ &1&2&3&4&5&6\ &1&2&3&4&5&6\ \hline\end{tabular}
4、\begin{tabular}{ |l|l| } \hline \multicolumn{2}{|c|}{Team sheet} \ \hline GK & Paul Robinson \ LB & Lucas 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}