Admitted I handle thing poorly when it comes to working with table.
In my report I reached a point that I want to insert table (landscape) that would span multiple pages. So I used \longtable
.
Formatting is the challenge:
- columns containing list poorly displayed
- had to use
\multicolumn
repeatedly to adjust cells on several rows - page number is poorly placed.
Below is a MWE of the problem I faced.
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{pdflscape}
\usepackage{afterpage}
\usepackage{makecell}
\renewcommand{\theadfont}{\normalsize\bfseries}
\usepackage{tabularx}
\usepackage{blindtext}
\usepackage{eso-pic,graphicx}
\usepackage{longtable}
\begin{document}
\section{Introduction}
\blindtext
\newpage
\begin{landscape}
\begin{longtable}{lclll }
\toprule
\thead{Algorithm} & \thead{Type of Problem} & \thead{Advantages} & \thead{Disadvantages} & \thead{Common Application areas} \\
\midrule
Decision Trees & \multicolumn{1}{c}{supervised/unsupervised} & \multicolumn{1}{l}{
\begin{itemize}
\item robust to outliers and missing values
\item item 2
\item item 3
\end{itemize}} &list advantages & some application areas\\
\midrule
\end{longtable}
\end{landscape}
\end{document}