How can I create a table like this in latex?
It is included multirow and multicolumn.
1 Answer
\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}
multirow
package contains some examples to start with. For good construction of the partial rules, see thebooktabs
package. Your question would be greatly improved by including your attempt to code such a table.