3

Although I am putting the figures after some subsection, they do not appear in which I am putting in them.

Stefan Kottwitz
  • 231,401

1 Answers1

4

Alan Munn posted a link to Keeping tables/figures close to where they are mentioned. Here's some code showing a way mentioned there, using the placeins package:

\usepackage{placeins}
...
\FloatBarrier
\subsection{A subsection}
...
\begin{figure}[ht]
% your figure
\end{figure}
...
\FloatBarrier
\subsection{Another subsection}

The \FloatBarrier command prevents floating of the figure into another subsection.

Stefan Kottwitz
  • 231,401