I propose one of these three layouts, based on tabularx
, booktabs
(for horizontal rules with some padding) and \makecell
(allows for line breaks in the standard cells). The more professional-looking, in my opinion, is with only a few horizontal line of various thicknesses:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tabularx, makecell, booktabs}
\renewcommand{\cellalign}{lc}
\renewcommand{\theadalign}{lc}
\renewcommand{\theadfont}{\normalsize\bfseries}
\newcommand\nl{\newline}
\begin{document}
\begin{table}[!htb]
\small\sffamily\centering%
\setlength{\extrarowheight}{2pt}
\begin{tabularx}{\linewidth}{|l|*{2}{X|}c|}
\hline
Group & Strategies & Data & Evaluated \\
\hline
Baseline & First strategy & Data 1 & Yes \\
\cline{2-2} \cline{4-4}
& Second strategy & Data 2 & No \\
\hline
Solution & First solution & Data 1\nl Data 2 & Yes \\
\cline{2-4}
& Second solution & Data 1\nl Data 2\nl Data 3 & Yes \\
\cline{2-4}
& Third solution & Data 1\nl Data 2\nl Data 3 & No \\
\hline
\end{tabularx}
\end{table}
\begin{table}[!htb]
\small\sffamily\centering%
\begin{tabularx}{\linewidth}{l*{2}{X}c}
\toprule
\thead{Group} & \thead{Strategies} & \thead{Data} & \thead{Evaluated} \\
\midrule
Baseline & First strategy & Data 1 & Yes \\
& Second strategy & Data 2 & No \\
\cmidrule(lr){1-4}
Solution & First solution & Data 1\nl Data 2 & Yes \\
\addlinespace
& Second solution & Data 1\nl Data 2\nl Data 3 & Yes \\
\addlinespace
& Third solution & Data 1\nl Data 2\nl Data 3 & No \\
\bottomrule
\end{tabularx}
\end{table}
\begin{table}[!htb]
\small\sffamily\centering%
\setlength{\extrarowheight}{2pt}
\begin{tabular}{|*{4}{l|}}
\hline
Group & Strategies & Data & Evaluated \\
\hline
Baseline & First strategy & Data 1 & Yes \\
\cline{2-2} \cline{4-4}
& Second strategy & Data 2 & No \\
\hline
Solution & First solution & \makecell{Data 1\\ Data 2 } & Yes \\
\cline{2-4}
& Second solution & \makecell{Data 1 \\ Data 2 \\ Data 3} & Yes \\
\cline{2-4}
& Third solution & \makecell{Data 1 \\ Data 2 \\ Data 3} & No \\%
\hline
\end{tabular}
\end{table}
\end{document}
