# Page numbers in landscape

I use report class, and now I need to change page orientation (portrait/lanscape) for some pages in my document. I have tried pdflscape for that, but there is a problem: page numbers preserve original orientation, instead of being rotated as I have expected. I had tried lscape and faced with the same problem. What may cause this strange behavior?

Here is an example:

\documentclass{report}
\usepackage{indentfirst}
\usepackage{pdflscape}

\begin{document}

\chapter{Main chapter}
\section{Ut convallis pharetra augue at aliquet.}

It's all portrait. Some text Lorem ipsum dolor sit amet, consectetur adipisci veliturea
adipiscing elit. Ut convallis pharetra augue at aliquet.

%% Landscape area
\begin{landscape}
It's all landscape. Some text Lorem ipsum dolor sit amet, consectetur adipisci veliturea
adipiscing elit. Ut convallis pharetra augue at aliquet.
\end{landscape}

\end{document}

-

Faced the same problem on the weekend then switched to koma-class -> problems with header, footer and the numbers were solved. But bit difficult at the beginning, so here is a small example. Hope it will help to switch to koma ;)

\documentclass[     12pt,                   %fontsize
paper=a4,               %papersize
pagesize,               %area
DIV=calc,               %relation colls and rows see koma manual
liststotocnumbered,     %numbered toc (best solution report sucks over here
footsepline]            %foot with line
{scrreprt}              %equals to report

%pagemargins

%Chapter caption is somewhere in the center of the page, so move the shit ;)

%If you have a new chapter, the pagestyle will be plain (only pagenumber) according to koma
%To use ur setting redefine the chaperstyle

\usepackage{scrpage2}
\ifoot{bottom left}
\cfoot{bottom center}
\ofoot{bottom right}

\begin{document}
\tableofcontents

\clearpage
\chapter{First chap}
\section{First sec}
some blank text page is still in portrait

%Save area all setting in myvalues
\storeareas\myvalues

%Change pagestyle to landscape (will create a nee page)
\KOMAoptions{paper=landscape, DIV=20}

some blank text in landscape

%Recover settings
\clearpage
\myvalues

some blank text page is still in portrait

\end{document}

-
Thanks, but I have to use report indeed. –  Denis Jun 19 '12 at 17:57
Dirty hack: disabled the page number for landscape page (\thispagestyle{empty}) and set it manually (\thepage command.) –  Denis Jun 19 '12 at 18:08
@Denis Can you show us your complete code for that landscape page? –  cryptic0 Apr 18 '13 at 1:55
@cryptic0 I can't use tex markup in comments, so you'll have to split this to lines according tags: \begin{landscape} \centering % hack for 'lscape' in report class \thispagestyle{empty} \begin{figure}[ph] \includegraphics{pic_model_choice.pdf} \vspace{0.3cm} \caption{Picture caption} \label{pic_model_choice} \end{figure} % hack for 'lscape' in report class (see above) \thepage \end{landscape} –  Denis Apr 23 '13 at 22:19
@Denis Thank you. I had independently tried approximately the same code, and it had worked. But the thesis office realized that this was non-standard and scrapped that requirement. –  cryptic0 Apr 24 '13 at 2:23