[Tex/LaTex] How to rotate a table with caption and have a section name in the same page

captionsfloatsrotatingsectioning

I need to rotate a table with caption, but I need to have a section name in top of the same page.

Already tried with sidewaystable, but it reserves a entire page only for the table.

Then I've tried using sideways, but the caption didn't work with that.

I've also tried using rotatebox, but I couldn't make it work…

Tried: ctable, landscape

No success at all…

Best Answer

You can use the hvfloat package; a little example:

\documentclass{article}
\usepackage{hvfloat}

\begin{document}

\section{Test Section}

\hvFloat[rotAngle=90,nonFloat]%
{}%
{\begin{tabular}{ll}
column 1a & column 2a \\
column 1b & column 2b \\
column 1c & column 2c \\
\end{tabular}}%
{A rotated table}%
{fig:test}

\end{document}

enter image description here

Related Question