# Sideways figure with rotated page number

The submission requirements require that any landscaped image have the page number on the 11" side of the page, at the bottom and centered. I can't figure out how to do this.

I'm using sidewaysfigure for my landscaped images. They are on their own page.

-
Hi RockSalt, welcome to TeX.sx! You should add a minimal example to your question, that's a much better way to get good answers quickly than putting "somewhat urgent" in the title. –  Jake Jul 9 '12 at 23:01
Have a look at this question of the TeX FAQ –  JLDiaz Jul 9 '12 at 23:08
Are you absolutely sure you've interpreted the formatting requirements for landscape-oriented pages correctly, in that the page number is to be displayed centered on the long edge of the paper instead of along the short edge? I guess it's not impossible to have such a requirement, but it sure would be a highly unusual... –  Mico Jul 10 '12 at 2:43

Some extra packages are needed, although it is possible:

\documentclass{article}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage{rotating}% http://ctan.org/pkg/rotating
\usepackage{floatpag}% http://ctan.org/pkg/floatpag
\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\fancypagestyle{floatpage}{%
\fancyfoot[C]{\makebox[\textwidth][r]{%
\smash{\raisebox{\dimexpr\footskip+.5\textheight}{\rotatebox{90}{\thepage}}}}}%
}
\begin{document}
\section{A section}\lipsum[1-3]

\begin{sidewaysfigure}
\centering\thisfloatpagestyle{floatpage}%
\rule{.8\textheight}{.5\textwidth}
\caption{A sideways figure.}
\end{sidewaysfigure}
\section{Another section}\lipsum[4-6]
\end{document}


The newly created floatpage page style is created and used as \thisfloatpagestyle inside sidewaysfigure (provided by the rotating package). The footer is subsequently made of a right-aligned box of zero height (\smashed) with \thepage pushed up to the middle of the text block (\footskip+.5\textheight) and rotated by 90 degrees (\rotatebox{90}).

lipsum was merely used to populate the document with dummy text, Lorem Ipsum style.

-
Why don't you introduce \includegraphics[width=0.5\textwidth]{example-image-a} (for example) instead of \rule{.8\textheight}{.5\textwidth}? –  stalking isn't tolerated Jul 10 '12 at 6:38

The new environment Figure uses always a landscape orientated page

\documentclass{article}
\usepackage{lipsum}
\usepackage{pdflscape}
\newenvironment{Figure}[1][!t]
{\begin{landscape}\thispagestyle{empty}\begin{figure}}
{\end{figure}\null\vfill\centerline{\raisebox{-2cm}{\thepage}}\end{landscape}}

\begin{document}
\section{A section}\lipsum[1-3]

\begin{Figure}\centering
\rule{.8\textheight}{.5\textwidth}
\caption{A sideways figure.}
\end{Figure}

\section{Another section}\lipsum[4-6]
\end{document}

-