# LaTeX figure rendering incorrectly [duplicate]

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:

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}.

-

## 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.

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
Also consider reading section 3 The User Interface - [H] Placement Specifier of the float package documentation. – Werner Aug 23 '11 at 17:23

## 1 Answer

Use the placement specifiers:

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

-