How to draw a table 2*1+3*1 in `tabular`:
Use nested tabulars:
\documentclass{article}
\begin{document}
\begin{tabular}{|@{} l @{}|@{} c @{}|}\hline
\begin{tabular}{ l }
some text in the left\\\cline{1-1}
some more text in the left column\\
\end{tabular}
&
\begin{tabular}{ l }
some text in the left\\\hline
some text in the left\\\hline
some more text in the left column
\end{tabular}\\\hline
\end{tabular}
\end{document}
or with
\begin{tabular}{|@{} c @{}|@{} c @{}|}\hline
\renewcommand\arraystretch{1.8}% <====
\begin{tabular}{ l }
An alternative to tabular
...stacked \framebox
es.
\documentclass{article}
\usepackage{stackengine}
\setstackgap{S}{\fboxrule}
\begin{document}
\Shortstack{%
\framebox(100,30){}
\framebox(100,30){}}%
\Shortstack{%
\framebox(100,20){}
\framebox(100,20){}
\framebox(100,20){}}%
\end{document}
With text:
\documentclass{article}
\usepackage{stackengine}
\setstackgap{S}{\fboxrule}
\begin{document}
\Shortstack{%
\framebox(100,30){left top}
\framebox(100,30){left bottom}}%
\Shortstack{%
\framebox(100,20){right top}
\framebox(100,20){right center}
\framebox(100,20){right bottom}}%
\end{document}
Variable box height. As long as the \framebox
heights add to the same number in each column, the top and bottom will be aligned:
\documentclass{article}
\usepackage{stackengine}
\setstackgap{S}{\fboxrule}
\begin{document}
\Shortstack{%
\framebox(100,30){left top}
\framebox(100,30){left bottom}}%
\Shortstack{%
\framebox(100,13){right top}
\framebox(100,30){\stackanchor[4pt]{right}{center}}
\framebox(100,17){right bottom}}%
\end{document}
You can actually do it the same way as in Word
, by merging cells:
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|l|l|}
\hline
\multirow{3}{*}{left 1} & \multirow{2}{*}{right 1} \\
& \\ \cline{2-2}
& \multirow{2}{*}{right 2} \\ \cline{1-1}
\multirow{3}{*}{left 2} & \\ \cline{2-2}
& \multirow{2}{*}{right 3} \\
& \\ \hline
\end{tabular}
\end{document}