# How to change certain pages into landscape/portrait mode

How can I change some pages into document into landscape mode, while leaving the others in portrait mode (or vice versa)?

-
Should the header and footer also be in landscape mode? –  Herbert Feb 13 '11 at 16:39
@Herbert: If yes, how to do this? –  xport Jun 9 '11 at 23:48
The lscape and the rotating packages do not work together with the watermark package. fancyhdr cfoot size is not changing when the page is rotated. \textwidth is not changed when the page is rotated. Etc. So rotating is not a good solution. There should be a way to switch between landscape and portrait mode - at least PDF allows that so there should be a way to do it when the output is rendered as PDF. Anybody knows the correct answer? –  nagylzs Apr 30 at 7:50

Try the lscape package:

% lscape.sty Produce landscape pages in a (mainly) portrait document.
\usepackage{lscape}
...
\begin{landscape}
...
\end{landscape}


This modifies the margins and rotates the page contents but not the page number. Useful, for example, with large multipage tables, and is compatible with the packages longtable and supertabular.

If you are using pdfLaTeX, you should use pdflscape instead. The pdflscape package adds PDF support to the landscape environment of package lscape, by setting the PDF/Rotate page attribute. Pages with this attribute will be displayed in landscape orientation by conforming PDF viewers:

\usepackage{pdflscape}
...
\begin{landscape}
...
\end{landscape}

-
The page number appears on the left side of the page with this solution. –  carloscinelli Aug 3 '14 at 17:27
nice package, but how do I landscape header and footer? (o.w. they turn out over the landscaped text) –  mario Dec 28 '14 at 18:52

The lscape package has problems with doublesided documents!

The landscape pages of even pagenumbers (on the left side of the document) should be upside down from the ones of the odd pagenumbers (on the right side of the document).

To solve this problem in doublesided documents use package rotating:

\usepackage{rotating}
...
\begin{sidewaysfigure}
...
\end{sidewaysfigure}


It rotates the figures with respect to the page numbering. It also supports manual rotation with \begin{sideways} (90 degree counter-clockwise) and \begin{turn}{30} (30 degree rotation).

I found the solution here.

-

Found a much better solution that works with PDF files only. Use the pdflscape package instead of the lscape package. This will rotate the page inside the PDF too so it looks good. However, it still does not change \textwidth and other things. Interferes with other packages, so for example instead of \SetWatermarkAngle{19} you will have to manually set \SetWatermarkAngle{109} on landscape (in reality: rotated) pages.

-