LaTex複雑表設計例#1

1363 ワード

\documentclass{article}
\usepackage{multirow}   
\begin{document}

\begin{table}[tb]\label{sample_tab}
\caption{Example of making Latex table}
\begin{center}
\begin{tabular}{c|c|c|c|c|c|c|c}
\hline \hline
\multirow{2}{*}{1} & \multirow{2}{*}{2} & \multicolumn{6}{c}{3} \\
\cline{3-8}
 & & 4 & 5 & 6 & 7 & 8 & 9 \\
\hline
\multirow{3}{*}{10} & 11 & 12 & 13 & 14 & 15 & 16 & 17 \\
 & 18 & 19 & 20 & 21 & 22 & 23 & 24 \\
 & 25 & 26 & 27 & 28 & 29 & 30 & 31 \\
\hline
\multirow{3}{*}{32} & 33 & 34 & 35 & 36 & 37 & 38 & 39 \\
 & 40 & 41 & 42 & 43 & 44 & 45 & 46 \\
 & 47 & 48 & 49 & 50 & 51 & 52 & 53 \\
\hline
\multirow{3}{*}{54} & 55 & 56 & 57 & 58 & 59 & 60 & 61 \\
 & 62 & 63 & 64 & 65 & 66 & 67 & 68 \\
 & 69 & 70 & 71 & 72 & 73 & 74 & 75 \\
\hline
\multirow{3}{*}{76} & 77 & 78 & 79 & 80 & 81 & 82 & 83 \\
 & 84 & 85 & 86 & 87 & 88 & 89 & 90 \\
 & 91 & 92 & 93 & 94 & 95 & 96 & 97 \\
\hline \hline
\end{tabular}
\end{center}
\end{table}

\end{document}