I want the header of my page-of-float's to contain the figure number (maybe figure numbers somehow automatically if there are more than one figure on the page). Right now, my header is configured with
fancyhdr
as in the following MWE:Code: Select all
\documentclass{book}
\usepackage{fancyhdr}
\fancyfoot{}
\fancyhead[LO]{\iffloatpage{}{\nouppercase{\leftmark}}}
\fancyhead[RE]{\iffloatpage{}{\nouppercase{\rightmark}}}
\fancyhead[RO]{\thepage}
\fancyhead[LE]{\thepage}
\pagestyle{fancy}
\usepackage{lipsum}
\begin{document}
\chapter{Chapter one}
\lipsum[1]
\section{Section one}
\lipsum[2-3]
\begin{figure}[p]
\centering
\rule{100mm}{150mm}
\caption{figure one}
\end{figure}
\section{Section two}
\lipsum[4-9]
\begin{figure}[p]
\centering
\rule{100mm}{40mm}
\caption{figure two}
\end{figure}
\begin{figure}[p]
\centering
\rule{100mm}{100mm}
\caption{figure three}
\end{figure}
\section{Section three}
\lipsum[7-8]
\end{document}
Any suggestions?