One of the figures, e.g. Figure 3, in my document takes up a whole page so is located on the following page to where it is referenced. This leaves a large blank space on the page before and so I am trying to continue the document before the Figure 3 on the next page. However, I have another Figure, Figure 4, following on shortly after. If I try to place this on the page before the full page image, it is re labelled as Figure 3. Is there a way to keep this as Figure 4 even though it will be shown in the document before Figure 3?
Asked
Active
Viewed 125 times
1 Answers
1
Of course you can, if you manipulate the counters:

\documentclass{article}
\usepackage{afterpage,graphicx,lipsum,float}
\newsavebox{\pagefigure}
\begin{document}
\lipsum[1]
\afterpage{%
\vspace*{\fill}
\begin{figure}[H]
\centering
\includegraphics[width=.8\linewidth,height=.7\textheight]{example-image-a}
\caption{Another figure}
\addtocounter{figure}{2}% "A figure appears after this one"
\end{figure}
\vfill
\clearpage
}
\begin{figure}[htb]
\stepcounter{figure}% "A figure appears before this one"
\centering
\includegraphics[width=.5\linewidth]{example-image-b}
\caption{An image}
\addtocounter{figure}{-2}% Revert to tradition figure sequence
\end{figure}
\lipsum[2-5]
\end{document}
The above technique requires you to know the figure order and therefore the counter sequence; something that goes against "leaving things to (La)TeX".
A better approach would be to retain the figure numbering by use \afterpage without the counter adjustments, as suggested in Clearpage without pagebreak?.
figuremechanism is that latex adjusts the position of figures to avoid exactly that happening. Is there some markup you are not telling us about? Please show a sample document (as in Werner's example) that shows the problem. – David Carlisle May 11 '15 at 13:46