[Tex/LaTex] Break a table between pages AND rotate it sideways

page-breakingrotatingtables

I have a long table with a lot of columns, so I want it to be landscape. The problem is I can't figure out how to have both a rotated table, and automatic break between pages?

Best Answer

This seems to work well for me:

\documentclass{report}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{longtable}
\usepackage{tabu}
\usepackage{pdflscape}

\begin{document}
\begin{landscape}
\begin{longtabu}{X}
\blindtext\\
\blindtext\\
\blindtext\\
\blindtext\\
\blindtext\\
\blindtext\\
\end{longtabu}
\end{landscape}
\end{document}

I have only used the tabu package because I like using X columns from
tabularx in my table and the package has a good implementation of that