How can I create a table like this in latex?
It is included multirow and multicolumn.
Asked
Active
Viewed 416 times
1 Answers
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}
Fran
- 80,769
multirowpackage contains some examples to start with. For good construction of the partial rules, see thebooktabspackage. Your question would be greatly improved by including your attempt to code such a table. – Andrew Swann Aug 22 '13 at 06:19