Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
2  
Check the answers to this question: Keeping tables/figures close to where they are mentioned. If that solves your problem, we'll close this as a duplicate. –  Alan Munn May 27 '11 at 17:30
2  
Have a look at this question. (That one is about tables, but the answers also apply for figures and custom-made floats.) –  lockstep May 27 '11 at 17:30
    
I used \begin{figure}[!htbp] but nothing happened. –  Hephaestus May 27 '11 at 18:28
1  
well something must have happened. What do you mean then by "don't appear"? Are they in the wrong place, or are they not there at all? Do you get an error? Do the captions show up, but not the figures? Do no figures show up, or just certain ones? You should edit your question to make this clearer. –  Alan Munn May 27 '11 at 19:38
add comment

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.