I have a code similar to
\section{1}
\begin{figure}[hbt!]
\begin{minipage}{\textwidth}
\centering
\includegraphics[width=\textwidth]{img/img1}
\end{minipage}
\end{figure}
\pagebreak
\begin{figure}[hbt!]
\begin{minipage}{\textwidth}
\centering
\includegraphics[width=\textwidth]{img/img2}
\end{minipage}
\end{figure}
\section{2}
\input{figures/fig1}
\pagebreak
\input{figures/fig2}
\pagebreak
\input{figures/fig3}
Unfortunately, when compiling the figures appear within the first section, and not in section 2. Why is that so?
[hbt!]prevents the figures going at the top of the page, or on a page of figures (the two most common places) so makes it very likely the figures can not be placed anywhere. – David Carlisle Oct 22 '20 at 16:43