Rotate a page 180 degrees in LaTeX
Asked Answered
B

4

13

How can I rotate a page 180 degrees in LaTeX?

Bufflehead answered 4/6, 2009 at 11:41 Comment(2)
what would be the point? if it's really needed, it might be easier to rotate the final ps/pdfMathematician
This question should be moved to tex.stackexchange.comRhodolite
M
16
\usepackage{lscape}

\begin{landscape}
Some text
\end{landscape}

Or for the whole document:

\documentclass[landscape]{article}

Edit: This would of course only rotate the page by 90°... Sorry. ;)

Myca answered 4/6, 2009 at 11:46 Comment(3)
That would be 90 degrees, wouldn't it?Michaelmas
Oh. Well... Yes. :) Shame on me. Sorry.Myca
I fount this answer looking for a 90 degrees rotation, so it was still useful to me, thanks!Guaiacol
M
5

Have you tried the rotating package?

See http://en.wikibooks.org/wiki/LaTeX/Packages/Rotating

This would rotate the content you put between begin and end. Do you need a designated page to be rotated you can achieve it using \newpage and \clearpage.:

To answer your question in the comments, I don't know how to achieve this within one single environment if you are going to use different types of content (text, images...) within the turn environment. That depends a lot on what you exactly want to achieve.

\documentclass{article}
\usepackage{rotating}
\title{Test document}
\author{Wesho}
\date{18/06/2009}
\begin{document}
\maketitle

\newpage

\begin{rotate}{180}
\includegraphics{graphic.pdf}
\end{rotate}

\clearpage

\end{document}
Mullin answered 4/6, 2009 at 11:53 Comment(7)
I can use rotating for certain objects. But how would I do to rotate an entire page? Simply putting all the code between \begin{rotate}{180} and \end{rotate} gives me "Not in outer par mode" errors.Bufflehead
Can you provide a simplified version of the source which causes this?Mullin
Very simplified: \begin{turn}{180} \begin{figure} \includegraphics{fig} \end{figure} \end{turn}Bufflehead
I cannot test this at the moment, but try removing the figure environment: \begin{turn}{180} \includegraphics{fig} \end{turn} Or if you want to have it for the options at least move the begin/end of figure outside the turn environment: \begin{figure} \begin{turn}{180} \includegraphics{fig} \end{turn} \end{figure}Mullin
Another problem example: \begin{rotate}{180} \begin{center} hello \end{center} \end{rotate} gives: "Something's wrong--perhaps a missing \item."Bufflehead
Again, move the center out of the rotate environment: "\begin{center} \begin{rotate}{180} hello \end{rotate} \end{center}" The center environment internally uses trivlist, that's where the error comes from. I tested the graphic example now and it works OK.Mullin
OK, but how would I do if I want to rotate an entire page? I don't want to rotate all objects individually. I hope you agree it's not the same thing.Bufflehead
W
4

It depends on the task, but \rotatebox{180} together with \minipage can do the job:

\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{rotating}
\usepackage{lipsum}

\begin{document}

\lipsum[1-3]

\newpage

\noindent\rotatebox{180}{\noindent\begin{minipage}{\textwidth}
\lipsum[1]
\begin{center}\includegraphics{image01.jpg}\end{center}
\lipsum[2]
\begin{center}
\begin{tabular}{cc}
\hline
1 & 2 \\
3 & 4 \\
\hline
\end{tabular}
\end{center}
\lipsum[3]
\end{minipage}}

\clearpage

\lipsum[1-3]

\end{document}
Woodcut answered 7/12, 2012 at 23:12 Comment(0)
M
0

For Rotating the pages into 180 degree(landscape mode)

\usepackage{geometry}
\geometry{top=2cm,bottom=1.1cm,left=0.5cm,right=0.5cm, landscape, a4paper}

In the above code the landscape is used to rotate the pages.

The advantage of this method is both header and footer also rotated, but the lscape or an pdflscape packages only rotate the body not an header and footer

The disadvantage is that landscape rotate all the pages, you can't rotate a single page in a set of pages.

Main answered 24/4 at 8:44 Comment(1)
But this answer is useful for other people as well. 😅 @AndréLehtoMain

© 2022 - 2024 — McMap. All rights reserved.