5

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

knpwrs
  • 1,485

1 Answers1

7

Use the placement specifiers:

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