I need to make a "pagebreak" after a figure so I use \clearpage
. But I want the figure to stay at the top of the page and not centering at the now empty page. My code right now looks like:
\begin{figure}[t]
\centering
\includegraphics[scale=0.5]{YY.PNG}
\caption{XX}
\label{fig:BB}
\end{figure}
\clearpage
\section{AAA}
Best Answer
You can use
afterpage
to perform some magic between page shipouts:The image is stored in a non-float (using
float
's[H]
ere float specifier) and output after the current page, together with a\clearpage
. That ensure the figure appears on its own at the top between two pages of continuous content.