I have a table that looks like below.
I want to create the same table in latex. I found that this can be done using multirow
.
e.g.,
\documentclass[11pt]{article}
\usepackage{multirow}
\begin{document}
\begin{table}[ht]
\caption{Multi-row table}
\begin{center}
\begin{tabular}{cc}
\hline
\multirow{2}{*}{Multirow}&X\\
&X\\
\hline
\end{tabular}
\end{center}
\label{tab:multicol}
\end{table}
\end{document}
However, since I have nested multirows I am confused how to do it. Is there any easy way of doing this? How to draw \hline as shown in the image above in nested multirow?
I am happy to provide more details if needed.
Best Answer
See, if the following solution work for you (without
multirow
):with
multirow
:Result is the same as before.