[Tex/LaTex] Rotating a Table and the caption

captionsrotatingtables

I used sidewaystable, as the table is very big. Latex is always turning the table in some way and I want it to be turn for 180 degree ( makes it easier to read, as it continues on the next page).

I tried this:

\begin{center}
\begin{sidewaystable} [h]
\begin{turn} {180}
\captionof{table}{Overview of the handled studies.}
\begin{tabular}
...
\end{tabular}
\end{turn}{180}
\end{sidewaystable}
\label{tab:methods_overview}
\end{center}

but I got this error:
! You can't use `\hrule' here except with leaders.

If I use caption somewhere else, it turns the table, but not the caption.

Thanks in advance for your help.

Best Answer

Omit both the center and the turn environments, and place a \centering instruction before \begin{tabular}{...}.

If the tabular material should be rotated so that the bottom of the table ends up on the left, be sure to load the rotating package with the option counterclockwise.

\documentclass{article}
\usepackage{rotating}

\begin{document}
\begin{sidewaystable}
\caption{Overview of the handled studies.}
\label{tab:methods_overview}
\centering
\begin{tabular}{cccc}
   \hline
   a & b & c & d \\
   \hline
\end{tabular}
\end{sidewaystable}
\end{document}
Related Question