3

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

In the end of a section, I added two plots and. So, I finished this section and started a new one. However, this new section appears before the plots. To illustrate (apologies for non-necessary packages because I don't know which is necessary):

\documentclass{article}
\usepackage{amsmath} 
\usepackage{amssymb}
\usepackage{natbib} 
\usepackage{graphicx} 
\usepackage{epstopdf}
\usepackage{url}
\usepackage[titletoc]{appendix}
\usepackage{eurosym}
\usepackage{listings}
 \usepackage{setspace}
\usepackage{float}
\usepackage{booktabs}
\usepackage{pdfpages}
\usepackage{array}
\begin{document}

 \section{One}

     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 \begin{figure}[p]
\centering
\includegraphics[scale=0.51]{bp1.pdf}
 \caption{Observed choice probabilities versus fitted  choice probabilities generated    by logit model using regression coefficients derived from TTO data}
 \label{bp9}
 \includegraphics[scale=0.51]{bp2.pdf}
  \caption{Observed choice probabilities versus fitted choice probabilities generated     by probit model using regression coefficients derived from TTO data}
 \label{bp10}
 \end{figure}


 \section{Two}

  cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
  cccccccccccccccccccccccccccccccccc

  \end{document}

Here is the output. Note that the plots appear on the second section whereas they were meant to be in the first section

enter image description here

marked as duplicate by hpesoj626, Martin Schröder, Thorsten, Claudio Fiandrino, Marco Daniel Jan 17 '13 at 8:03

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.

3

you have \begin{figure}[p] which means "on an own page" and the next page is after section 2.

Use \begin{figure}[!htp]instead

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