【LaTex】表格合并单元格

合并一行一列

【LaTex】表格合并单元格_第1张图片

\begin{table}
	\centering
	\begin{tabular}{c c c c}
		\hline
		\multirow{2}*{1} & 2 & 3 & 4 \\
		~ & 2 & 3 & 4 \\
		\hline
	\end{tabular}
\end{table}

合并两行两列

【LaTex】表格合并单元格_第2张图片

\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}

合并一行两列

【LaTex】表格合并单元格_第3张图片

\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}

你可能感兴趣的:(学习笔记,latex)