For my appendix I need to make a table in landscape mode, since the three columns containg quite a lot information and it has to fit on one page. Rotation for the table works just fine with both lscape and rotating (with sidewaystable) packages.
However, I am not able to fit the section/chapter title to the same page as the rotated table. The chapter/section is always on the page before the table. Including the chapter/section within the landscape mode boundaries does not work, since the title/chapter should be in normal portrait mode and only the table in landscape.
I have looked up already this question and this one. The solution of the first one does not work and I can not get the \hvfloat suggestion of the second one to work.
So the page should look somewhat like this:
\documentclass{article}
\usepackage{rotating}
\usepackage{booktabs}
\begin{document}
\section{Section Title Here}
\begin{sidewaystable}
\centering
\caption{Caption here}
\begin{tabular}{@{}lcc@{}}
\toprule
Column A & Column B & Column C \ \midrule
1234 & AAAAAAAAAAAAAAAAAAAAAAAAA & BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\
\bottomrule
\end{tabular}
\end{sidewaystable}
\end{document}

rotatingpackage: rotated floats (sidewaystableandsidewaysfigure) always occupy an entire page. – chsk Apr 17 '21 at 09:47