I have the problem that alot of my floats show up before the subsection they are in.
I did read about placeins and \FloatBarrier here: How do I ensure that figures appear in the section they're associated with?
But this seem to only work for floats showing up in the next section but not for floats showing up in the last subsection.
My academic advisor wants all floats to be in the same subsection. There is no "but it's okay as long as they are in the same section".
I'm using LuaTex + scrreprt documentclass.
figureenvironment ;-) You can use\captionof{figure}{your caption text}instead of\caption(requires thecaption(sic!!!) package. It's one of the greatest misunderstandings of LaTeX users that graphics must be infigureenvironments andtabulars intableenvironments. – Aug 22 '16 at 17:59includegraphicinstead? – Spenhouet Aug 22 '16 at 18:13\includegraphics{yourfilename}\captionof{figure}{your caption text}(or the other way round if you prefer the caption above the figure). Neither graphics nor tabular environments require an outer floating environment. The only exception is\begin{center}...\end{center}, perhaps – Aug 22 '16 at 18:15LaTeXintroduction manual or textbook on LaTeX itself. – Aug 22 '16 at 18:17figureenvironment should be removed, but some of them. – Aug 23 '16 at 10:35