In my document I'm largely using \sidewaysfigure. However, this results pictures with inconsistent placement and direction of included pictures and captions. By inconsistent I mean that figures and captions are not rotated to one side always (eg, to the right). EG, on page 1 the caption is on the left side, and on page 2 on the right side.

MWE:

\documentclass[12pt]{book}
\usepackage{graphicx}
\usepackage{rotating} 
\usepackage{mwe} % just for dummy pictures

\begin{document}
\begin{sidewaysfigure} 
    \centering
    \includegraphics{example-image-a}
    \caption{Foo}
\end{sidewaysfigure}

\begin{sidewaysfigure} 
    \centering
    \includegraphics{example-image-b}
    \caption{Bar}
\end{sidewaysfigure}
\end{document}

output

I wonder if there is a simple option with \sidewaysfigure that would force the whole thing (pics and captions) to be rotated for 180 degrees.

  • Can you post your code that produces inconsistent rotation? – user11232 Jan 15 '13 at 14:56
  • @HarishKumar Edited... – boy Jan 15 '13 at 15:09
  • 1
    Please add complete code starting from \documentclass{} and ending at \end{document} so that others who try to help you need not type/guess the class and packages you are using. – user11232 Jan 15 '13 at 15:10
  • 1
    Not entirely sure what you mean by "inconsistent", but have you read section 2.1 in the manual for rotating? – Torbjørn T. Jan 15 '13 at 16:48

The behaviour is perfectly consistent, in that the caption is always rotated toward the outer edge of the page. This is default if the twoside argument is given to the documentclass, which is default for the book class.

To override this, add either figuresleft or figuresleft as an (optional) argument to the rotating package, i.e.

\usepackage[figuresleft]{rotating}

as described in the manual, section 2.1:

If the twoside option has been given to the main document class (either explicitly, or implicitly as in the default for book class), the package will rotate sideways figures according to the page number (this requires at least two passes through LaTeX). If you want the twoside option, but want the figures always in one direction, use the figuresright or figuresleft options to the package.

  • this takes about 3000 times longer to compile, with the figuresleft or figures right option specified. – Nicholas Hamilton Jan 22 '13 at 12:43
  • @ADP Really? Never used the package much, so I hadn't noticed. – Torbjørn T. Jan 22 '13 at 12:53

With the lscape package you can simply rotate the entire page. The result is then very consistent and the PDF is readable without turning your head. The printer will know what to do with it as well.

\begin{landscape}
A landscape page with figures...
\end{landscape}

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.