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

 

posted @ 2022-10-31 09:29  咖啡陪你  阅读(747)  评论(0编辑  收藏  举报