![合并表格中的单元格](https://linux22.com/image/473069/%E5%90%88%E5%B9%B6%E8%A1%A8%E6%A0%BC%E4%B8%AD%E7%9A%84%E5%8D%95%E5%85%83%E6%A0%BC.png)
您知道如何合并来自两个不同列和两行的 4 个单元格吗?我可以同时使用多列和多行吗?谢谢
\multicolumn{2}{|c|}{Population to serve}\multirow{2}{6cm}{Population to serve}
答案1
答案2
带包装NiceMatrix / NiceTabular
\documentclass{article}
\usepackage{nicematrix,booktabs}
\begin{document}
\begin{table}
\begin{NiceTabular}[]{cccc}
\CodeBefore
\rectanglecolor{blue!20}{2-1}{3-2}
\Body
\toprule
Column1&Column2&Column3&Column4\\ \midrule
\Block{2-2}{R2*C2}& &Row2 &Row2 \\
&&Row3&Row3\\
\bottomrule
\end{NiceTabular}
\end{table}
\end{document}