I'm writing a report using the IFAC style, but when making some sections and putting some images inside in the following way:
\section{Section 1}
\subsection{Subsection 1}
One thing and other
\begin{figure}[H]
\begin{center}
\includegraphics[width=8.4cm]{file1.png}
\caption{caption }
\label{fig:LM741}
\end{center}
\end{figure}
\subsection{Subsection 2}
after compiling it to PDF, instead of the images inside each subsection, it gets the list of sections/subsection and the whole bunch of images at the end. How to correct this?
P.S.: I have tried using sections and subsection.
Hfloat type? in latex prior to 2015 using H would take all figures to the end. with more recent latex it will give an error. – David Carlisle Oct 28 '17 at 20:34[htp]is a lot better than[h](omitting p makes it far more likely that the figure goes to end of document) – David Carlisle Oct 28 '17 at 20:46H(as it is not mentioned in any of the official latex documentation) that documentation must have mentioned thefloatpackage that defines that option. – David Carlisle Oct 28 '17 at 20:47\begin{document} \begin{figure}[H]
\end{figure} \end{document}
– David Carlisle Oct 28 '17 at 20:49makes! LaTeX Error: Unknown float option `H'.`[!h]means not top not bottom and not float page, normally latex issues a warning and changes it to!htto give itself a chance but it still means not bottom and not float page – David Carlisle Oct 28 '17 at 20:51