【LaTex】表格合并单元格
合并一行一列

\begin{table}
\centering
\begin{tabular}{c c c c}
\hline
\multirow{2}*{1} & 2 & 3 & 4 \\
~ & 2 & 3 & 4 \\
\hline
\end{tabular}
\end{table}
合并两行两列

\begin{table}
\centering
\begin{tabular}{c c c c}
\hline
\multicolumn{2}{c}{\multirow{2}*{12}} & 3 & 4 \\
\multicolumn{2}{c}{~} & 3 & 4 \\
\hline
\end{tabular}
\end{table}
合并一行两列

\begin{table}
\centering
\begin{tabular}{c c c c}
\hline
\multicolumn{2}{c}{12} & 3 & 4 \\
1 & 2 & 3 & 4 \\
\hline
\end{tabular}
\end{table}

浙公网安备 33010602011771号