您知道如何合并来自两个不同列和两行的 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}