Tables, graphs and images don't show up at the same position it was inserted in the TeX file. I tried to suppress floating by using:
\usepackage{float}
...
\begin{figure}[H] {15cm}
\caption{}%
\label{}
\fbox{\includegraphics[width=\hsize]{image.jpeg}}
\end{figure}
also
\begin{figure}[!htbp] {15 cm}
...
\usepackage{placeins}
\FloatBarrier
\begin{figure}[H] {15cm}
...
but these commands keep insisting on moving figures, tables and graphs to unexpected locations. I'm using repUERJ template available here
Does anyone know why it happens?
\FloatBarrierhas to go after the figure to prevent the figure from being placed after that point – Au101 May 09 '18 at 14:42His almost always a guarantee for bad placement – samcarter_is_at_topanswers.xyz May 09 '18 at 14:43\begin{figure}[H] {15cm}would just write15cmin to the output, if you have loaded the float package[H]will never float from the source position. (if you have not loaded float then[H]should give an error unless you have an old latex (when it will force the float to the end of the document) – David Carlisle May 09 '18 at 14:44\includegraphicsthe reason to usefigureis to mark the content as being not in the main document flow and can be moved to help with page breaking, so it not being output at that position isn't a problem, it is the main purpose of the environment. – David Carlisle May 09 '18 at 14:48figureenvironment. – Johannes_B May 09 '18 at 14:59\includegraphicsdoes not work for me. I need to arrange my images in a list of images, therefore\label,\captionand\sourceare important. – phill May 09 '18 at 17:21\sourcecommand (mentioned in one of your comments) is not known to me. Maybe it's defined in therepUERJdocument class that you are referring to. – Dr. Manuel Kuehner May 10 '18 at 12:06