I have a Latex document with headers on each page.

On the pages where I have a 'sidewaysfigure', I want to remove the headers, because sometimes, the white borders of the large sideways figures overlap the header.

Is it possible to remove headers on pages where there are sidewaysfigures?

Edit -

So here is my minimal working example. I have a main file which calls the other files - sorry I don't know the correct terminology. It's called testlatex.tex. It calls a file called test.tex which has the sideways figure.

I have \thispagestyle{empty} in the sidewaysfigure environment, but the header and footer still appear.


\documentclass[12pt,twoside]{ociamthesis}  % default square logo 

\usepackage{amsmath, amsthm, amssymb, amsfonts}
\usepackage{fourier} % The Fourier font package.
\usepackage{microtype} % Apparently this makes pdfs look nicer.
\renewcommand{\nomname}{List of Symbols}
\title{Test title}
\author{a.n.other}             %your name
\DeclareMathSizes{12}{13}{8}{10}  % For size 12 text 
\baselineskip=24pt plus1pt % this looks about double-line
\baselineskip=24pt plus1pt


\chapter{Test Chapter}
    \graphicspath{{Chapter3/Chapter3Figs/PNG/}{Chapter3/Chapter3Figs/PDF/}   {Chapter3/Chapter3Figs/}}

\includegraphics[ width=200mm]{anything.png}
\caption[]{Figure caption here.}
  • 1
    – Johannes_B
    Jun 25, 2015 at 9:35
  • But where would I put that in the tex document to ensure that it was acting on the same page as the figure will appear? Jun 25, 2015 at 9:38
  • 2
    Within the sidewaysfigure environment.
    – Johannes_B
    Jun 25, 2015 at 9:39
  • That didn't seem to remove the header. Jun 25, 2015 at 10:27
  • If it really didn't we need to see a minimal working example.
    – Johannes_B
    Jun 25, 2015 at 10:32

1 Answer 1


With package floatpag you could use \rotfloatpagestyle{<pagestyle>}



\fbox{\parbox[c][.5\textwidth][c]{.5\textwidth}{\centering\Huge Figure}}

enter image description here

There is also the command \thisfloatpagestyle{<pageststyle>} that can be used inside the float environment.


\fbox{\parbox[c][.5\textwidth][c]{.5\textwidth}{\centering\Huge Figure}}
  • This almost worked perfectly, but on the pages where I have non-sideways figures (and no text), the header remains (which is fine) but the underline of the header and the page number footer disappear. Jun 25, 2015 at 14:21
  • Actually the page number moves to the top right of the page. Jun 25, 2015 at 14:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .