I wrote something like this
text
\begin{figure}
...
...
\end{figure}
\section{} or text (the problem shows up anyway)
but when I compile (with overleaf) all the text that is meant to be below the image is put above and I can't write anything. Also, if I add another line it works properly, like this
text
\begin{figure}
...
...
\end{figure}
not_useful_text
\section{} (or text, it's the same)
\begin{figure}[htbp]if you want to allow it not to move, but in general what you describe is not a problem – David Carlisle Jul 20 '22 at 18:16