Can you help me to remove header from the page where is only one big picture? I tried \thispagestyle{empty}
but it removes a header on the next or previous page. I don't know how to remove it exactly from the page only with the picture.
I put this picture in my document by using {sidewaysfigure}
environment and \includegraphics
in it.
Here is my MWE
\documentclass{book}
\usepackage[demo]{graphicx}
\usepackage[
centering,
top=12mm,
headheight=14pt,
headsep=11pt,
includeheadfoot,
papersize={160mm,235mm},
text={125mm,190.7mm},
]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\newcommand{\TheAuthor}{}
\newcommand{\Author}[1]{\renewcommand{\TheAuthor}{#1}}
\rhead{\small\TheAuthor}
\newcommand{\TheTitle}{}
\newcommand{\Title}[1]{\renewcommand{\TheTitle}{#1}}
\lhead{\small\normalfont\TheTitle}
\fancyfoot{}
\fancyhead[RO,LE]{\thepage}
\usepackage{lipsum}
\usepackage{rotating}
\begin{document}
\lipsum
\begin{sidewaysfigure}
\centering
\fbox{\includegraphics[width=190mm]{pic.jpg}}
\caption*{\footnotesize\centering{Pic. 1}}
\end{sidewaysfigure}
\lipsum
\end{document}
Best Answer
Assuming that you use the
rotating
package, i.e., thatsidewaysfigure
is a floating environment,fancyhdr
's\iffloatpage
macro should do the trick.(The
blindtext
package is only used to add some dummy text to the example.)EDIT: In your subsequently delivered MWE, replace
...
with
...