[Tex/LaTex] sidewaysfigure and landscape

landscapepdfrotating

I have some figures which I wish to display in landscape, with rotated captions.

I can achieve this fine using the sidewaysfigure environment from the rotating package.

I want to also ensure that the PDF document automatically displays in the right orientation for the reader.I can achieve this using the landscape environment from the pdflscape package.

I can't however seem to combine both of these for the effect I want. If I try encapsulating the sidewaysfigure in the landscape environment I get my graphic rotated 180 degrees (the page does display in the right orientation on screen however).

\afterpage{\begin{landscape}
\begin{sidewaysfigure}
    \centering
    \includegraphics{image}
    \caption{caption}
    \label{fig:label}
\end{sidewaysfigure}
\end{landscape}}

Doesn't work – figure displays incorrectly.

\begin{sidewaysfigure}
    \centering
    \includegraphics{image}
    \caption{caption}
    \label{fig:label}
\end{sidewaysfigure}

Figure displays correctly, but PDF document doesn't recognise that this page is landscape so displays automatically in portrait when viewed on-screen.

Best Answer

Don't use sidewaysfigure within landscape - it will turn your figure twice. A regular figure should suffice:

\documentclass{article}
\usepackage{pdflscape}

\begin{document}

\begin{landscape}
 \begin{figure}
  \centering
  \includegraphics{image}
  \caption{caption}
  \label{fig:label}
 \end{figure}
\end{landscape}

\end{document}
Related Question