I am currently editing a long document in which the text is illustrated with numerous graphics and tables. When I started editing it the graphics were more or less close to the relevant parts of the text but I now find that in one chapter all the graphics now appear at the end of the text one after another.
I have not changed the position of the graphics in the tex document. I cannot possibly list all the changes I have made but a major change was to insert this
\begin{figure}[!ht]
\centering
\begin{subfigure}[b]{\textwidth}
\centering
\includegraphics[width=0.75\linewidth]{location}
\caption{Location, $\mu$}
\end{subfigure}
\begin{subfigure}[b]{\textwidth}
\centering
\includegraphics[width=0.75\linewidth]{scale}
\caption{Scale, $\sigma$}
\label{fig:diffsc}
\end{subfigure}
\begin{subfigure}[b]{\textwidth}
\centering
\includegraphics[width=0.75\linewidth]{shape}
\caption{Shape, $\xi$}
\end{subfigure}
\caption{Univariate marginals by parameter: \Posteriors: black. Priors: red }
\label{fig:marginals2}
\end{figure}
In the pdf document this graphic appears after all the text and tables followed by all the remaining graphics in the chapter. The location of graphics in other chapters has not changed: they are where they should be.
Can anyone suggest how to get the graphics in this chapter back in their proper places?
[!ht]is not a good idea, always throwpin as well if the figure ends up being large. – daleif Feb 09 '24 at 14:46poption is nice when you have too many images. – Fran Feb 11 '24 at 10:20poption for two big floats. As to (5) I am not quite at the final version but I did want to be sure I knew how to fix options when the time comes. – JeremyC Feb 11 '24 at 11:10lipsumpackage for dummy text and some macros to make easily dummy floats (e.g.\def\img{\begin{figure}\rule{\linewidth}{.75\linewidth}\caption{Foo}\end{figure}}for a big figure) and then just write some like\lipsum[1][1-4] \img \img \lisum[2] \img ....could help to play with the settings oftopnumber,\texfractionor whatever, and test easily the result. – Fran Feb 11 '24 at 12:07