Page Layoutpdflscape + fancyhdr...

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
EFaden
Posts: 24
Joined: Thu Jun 04, 2009 2:58 am

pdflscape + fancyhdr...

Post by EFaden »

Does anyone know how to make them work nice together? I am working on a document that requires that a few of the pages be landscape mode while the rest are in portrait. The problem is that the fancyhdr's don't seem to rotate....

Example code:

Code: Select all

%% Document Class
\documentclass[12pt,english]{article}

\usepackage{pdflscape}
\usepackage{fancyhdr}

\pagestyle{fancy} 
\lhead{blah}
\chead{}
\rhead{blah}
\lfoot{}
\cfoot{}
\rfoot{\thepage\ of \pageref{LastPage}}
\renewcommand{\headrulewidth}{1.0pt}
\renewcommand{\footrulewidth}{1.0pt}

%% Document
\begin{document}
	\begin{landscape}
		blah 
	\end{landscape}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pdflscape + fancyhdr...

Post by localghost »

I consider this behaviour quite normal. The landscape environment only rotates things which are inside. But the headers and footers are definitely outside.


Best regards
Thorsten
Post Reply