I'm using the default settings of the fancyhdr package and calling \pagestyle{fancy} at the beginning of my document of type report. Since I have some large figures and tables, I would like to suppress the headers on individual pages in the document. To this end, I have tried calling \thispagestyle{plain} immediately before inclusion of the figures, however, this seems to have no effect whatsoever. On the other hand, calling \pagestyle{plain} does work; the headers then disappear for the rest of the document. I've spent quite a long time trying to fix this, what am I missing?
EDIT: The problem seems to appear only on pages containing tables or figures, i.e., float objects. I've found a possible duplicate here:
(How to remove header on the page with big picture?)
Adding the definitions
\lhead{\iffloatpage{}{\small\normalfont\TheTitle}}
\fancyfoot{}
\fancyhead[RO,LE]{\iffloatpage{}{\thepage}}
\renewcommand{\headrulewidth}{\iffloatpage{0pt}{0.4pt}}
to the preamble seems to fix the problem, although I don't really understand what is going on here...
EDIT: Another duplicate is
(Suppress page number for a single page that only contains one large table?)
which recommends the floatpag package for this situation.
SOLUTION: I tried the floatpag package, but it seemed to cause the line spacing in my tables to change, so I decided to use the method from the accepted answer. Thus, I defined a custom fancy style in the preamble:
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter. #1 }}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection~#1}{}}
\fancyhf{}
\fancyhead[RO]{\iffloatpage{}{\bfseries\rightmark}}
\fancyhead[LE]{\iffloatpage{}{\bfseries\leftmark}}
\fancyfoot[C]{\iffloatpage{}{\thepage}}
\renewcommand{\headrulewidth}{\iffloatpage{0pt}{0.5pt}}
\renewcommand{\footrulewidth}{\iffloatpage{0pt}{0pt}}
\addtolength{\headheight}{0.5pt}

\thispagestyle{empty}? Also, it would help if you could give something of a MWE. – A.Ellett May 31 '13 at 01:21\thispagestyle{...}command, it doesn't know where the floats are going to be placed. When the floats are placed, the\thispagestyle{...}has been executed for a different page (or overriden). – A.Ellett May 31 '13 at 02:17floatenvironment at all. Just place the figure or image in a minipage and place where you want it. – A.Ellett May 31 '13 at 02:21