I have a table with four columns. The problem is:
- The text overflows in the third and fourth column as shown in below image. These columns contains dense text.
- The text should be within table.
I tried by searching the existing answers (1,2), but most of them are using p{width}
column type. This method is not working with multirow situation.
Desired table:
Here is an example to illustrate the problem:
\documentclass{article}
\usepackage{multirow}
\usepackage{graphicx}
\begin{document}
\begin{table}[H]
\caption{}
\label{tab:my-table}
\resizebox{\textwidth}{!}{%
\begin{tabular}{|l|l|l|l|}
\hline
\textbf{Research group} & \textbf{Ref} & \textbf{Common attributes} & \textbf{features noted} \\ \hline
(Yasir et al., 2020) &
[1] &
\multirow{9}{*}{\begin{tabular}[c]{@{}l@{}}1) blah blah blah blah blah blah blah blah blah blah blah.\\ ---------------------------------------------------------\\ \\ -------------------------------------------------------\\ \\ ------------------------------------------------------\\ \\ \\ \\ 2). blah blah blah blah blah blah blah blah blah blah blah.\\ ---------------------------------------------------------\\ \\ -------------------------------------------------------\\ \\ ------------------------------------------------------\\ \\ \\ \\ 3)- blah blah blah blah blah blah blah blah blah blah blah.\\ ---------------------------------------------------------\\ \\ -------------------------------------------------------\\ \\ -----------------------------------------------------\\ \\ \\ \\ \\ blah blah blah blah blah blah blah blah blah blah blah.\\ \\ ---------------------------------------------------------\\ \\ -------------------------------------------------------\\ \\ ------------------------------------------------------\end{tabular}} &
\multirow{9}{*}{\begin{tabular}[c]{@{}l@{}}1).blah blah blah blah blah blah blah blah blah blah blah.\\ \\ ---------------------------------------------------------\\ -------------------------------------------------------\\ ------------------------------------------------------\\ \\ 2). blah blah blah blah blah blah blah blah blah blah blah.\\ \\ ---------------------------------------------------------\\ -------------------------------------------------------\\ ------------------------------------------------------\\ \\ \\ 3).blah blah blah blah blah blah blah blah blah blah blah.\\ \\ ---------------------------------------------------------\\ -------------------------------------------------------\\ -----------------------------------------------------\\ \\ \\ \\ 4). blah blah blah blah blah blah blah blah blah blah blah.\\ ---------------------------------------------------------\\ \\ ------------------------------------------------------\\ \\ ------------------------------------------------------\end{tabular}} \\ \cline{1-2}
(Yasir et al., 2020) & [1] & & \\ \cline{1-2}
(Yasir et al., 2020) & [1] & & \\ \cline{1-2}
(Yasir et al., 2020) & [1] & & \\ \cline{1-2}
(Yasir et al., 2020) & [1] & & \\ \cline{1-2}
(Yasir et al., 2020) & [1] & & \\ \cline{1-2}
(Yasir et al., 2020) & [1] & & \\ \cline{1-2}
(Yasir et al., 2020) & [1] & & \\ \cline{1-2}
(Yasir et al., 2020) & [1] & & \\ \hline
\end{tabular}%
}
\end{table}
\end{document}
Best Answer
From your desired table, I think you may want something like this.
Edit (according to OP's comment): A table with lists using Ulrike Fischer's answer here.