Consider this example:
\documentclass{report}
%\usepackage{float}
\usepackage{lipsum}
\usepackage{graphicx}
\makeatletter
\setlength{\@fptop}{0pt}
\setlength{\@fpbot}{0pt plus 1fil}
\makeatother
\begin{document}
\lipsum[1-5]
\begin{figure}[htb]
\centering
\includegraphics[height=0.8\textheight, width=0.8\textwidth]{example-image-a}
\end{figure}
\begin{figure}[htb]
\centering
\includegraphics{example-image-c}
\end{figure}
\end{document}
The output is:
I have followed How to place a float at the top of a floats-only page? to force the "C" image to top of page. However, I do not want this setting to affect the "A" image. How can I force floats to top of page selectively?
At some point I would be interested to unset this setting for subsequent floats. I am checking @DavidCarlisle 's answer and trying to unset this setting using \clearpage:
\documentclass{report}
%\usepackage{float}
\usepackage{lipsum}
\usepackage{graphicx}
\begin{document}
\lipsum[1-5]
\begin{figure}[htbp]
\centering
\includegraphics[height=0.8\textheight, width=0.8\textwidth]{example-image-a}
\end{figure}
\clearpage
\makeatletter
\setlength{\@fptop}{0pt}
\setlength{\@fpbot}{0pt plus 1fil}
\makeatother
\begin{figure}[htbp]
\centering
\includegraphics{example-image-c}
\end{figure}
\clearpage
\begin{figure}[htbp]
\centering
\includegraphics{example-image-b}
\end{figure}
\end{document}
From the output it can be seen that I have been unsuccessful at unsetting the setting for the "B" image:
What is wrong?



pfrom the optional argument so the figures can not be positioned at all, then finally at the end of the document they are all forced on to float pages via\clearpageas an emergency fix to stop them being lost. If you want them on float pages why use[htb]which is designed to prevent that? – David Carlisle Apr 20 '19 at 19:55pcaused creation of pages for a single image. Instead I want my document to be more compact with text wrapping images. – Viesturs Apr 20 '19 at 19:58fp@topto 0pt force a float to be set with that via\clearpagethen never set it back so naturally it applies for the rest of the document. – David Carlisle Apr 23 '19 at 08:43