I'm an absolute newby in Latex and I try to reproduce a table (see picture above) as an exercise in university. I need to split cells both vertically and horizontally, as can be seen in the picture. Further, I need to give the table a caption. With my code, I can split lines horizontally but for a vertical split, I can't find a solution that is working for me.
\begin{document}
\begin{tabular}
\hline
\multicolumn{2}{|l|}{learning process} & learning tools & search space \\
\hline
\multicolumn{2}{|l|}{feature engineering} & (subsequent) classifiers & feature sets \\
\cline{3-3}
\multicolumn{2}{|l|}{} & & feature enhancing methods and their hyper-parameters \\
\hline
\multicolumn{2}{|l|}{model selection} & classifiers & classifiers and their hyper-parameters \\
\hline
\multicolumn{2}{|l|}{optimization algorithm selection} & classifiers & algorithms and their hyper-parameters \\
\hline
\end{tabular}
\caption{\label{tab:table-name}Caption}
\end{document}
Edit: This is the information I have regarding the type of my document:
%\documentclass[headsepline,footsepline,footinclude=false,fontsize=11pt,paper=a4,listof=totoc,bibliography=totoc,BCOR=12mm,DIV=12]{scrbook} % two-sided % original source stated: BCOR=12mm,DIV=12 \documentclass[headsepline,footsepline,footinclude=false,oneside,fontsize=11pt,paper=a4,listof=totoc,bibliography=totoc,DIV=12]{scrbook} % one-sided
Best Answer
See if the following solution provide what you like to obtain:
Addendum: Table using
tabularx
table environment which enable multi lines text in cells: