Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
Can you post your code that produces inconsistent rotation? –  Harish Kumar 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. –  Harish Kumar 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
    
show 1 more comment

2 Answers

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.

share|improve this answer
    
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
add comment

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}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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