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.

Possible Duplicate:
Keeping tables/figures close to where they are mentioned

The following code:

\clearpage
\section{Section 1.2}

This is a paragraph.

The details page should look like the following:

\begin{figure}
    \centering
    \includegraphics[width=5.5in]{resources/fig1.5.png}
    \caption{Figure 1.5}
\end{figure}

Is producing the following output:

Output

As you can see, the figure is displaying above the text. My intention is for the figure to come below the text. How can I force this behavior? I put the \clearpage command at the top because otherwise the Section 1.2 heading was appearing at the bottom of the previous page with the text and figure following on the next page (which I did not want). In case it is relevant, I am using \documentclass{book}.

share|improve this question
3  
Welcome to TeX.sx! It looks like this question has been asked here before: tex.stackexchange.com/questions/2275/… –  doncherry Aug 23 '11 at 17:14
1  
Also consider reading section 3 The User Interface - [H] Placement Specifier of the float package documentation. –  Werner Aug 23 '11 at 17:23
add comment

marked as duplicate by Seamus, lockstep, Stefan Kottwitz Aug 23 '11 at 19:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 4 down vote accepted

Use the placement specifiers:

\begin{figure}[!ht]
    \centering
    \includegraphics[width=5.5in]{resources/fig1.5.png}
    \caption{Figure 1.5}
\end{figure}
share|improve this answer
add comment

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