如何在 Latex 中创建这样的表格?它包含多行和多列。
答案1
\documentclass{article}
\usepackage{array}
\usepackage{booktabs}
\usepackage{multirow}
\begin{document}
\begin{tabular}{>{\centering}p{3cm}>{\centering}p{0.3\textwidth}>{\centering}p{0.3\textwidth}}
\toprule
One & Two & Tree\tabularnewline
\midrule
\multirow{6}{3cm}{This is a multirow cell for some long text that you want expand in
six rows} & \multicolumn{2}{l}{This is a multicolumn cell}\tabularnewline
\cmidrule{2-3}
& x1 & x2\tabularnewline
& x4 & x5\tabularnewline
& \multicolumn{2}{l}{Another multicolum cell}\tabularnewline
\cmidrule{2-3}
& x1 & x2\tabularnewline
& x4 & x5\tabularnewline
\bottomrule
\end{tabular}
\end{document}