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.
rotatingpackage, thesidewaysfigureenvironment does already do the rotation depending on an even or odd page number. Maybe this feature was introduced later, but this package should be doing everything you want right now. – Darkproduct Oct 07 '21 at 11:41