TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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):



     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 \caption{Observed choice probabilities versus fitted  choice probabilities generated    by logit model using regression coefficients derived from TTO data}
  \caption{Observed choice probabilities versus fitted choice probabilities generated     by probit model using regression coefficients derived from TTO data}




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

share|improve this question

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.

Can you provide a minimal code that compiles and shows the odd behavior? As it stands, your pseudo-code is not of much help to helpers. My guess though is that you have wrapped your plots in the figure environment. – hpesoj626 Jan 17 '13 at 6:48
@hpesoj626, please see my edited answer – Günal Jan 17 '13 at 6:58
Have a look at the following posts. tex.stackexchange.com/questions/279/…, tex.stackexchange.com/questions/2275/…, tex.stackexchange.com/questions/32598/…. If this helps you, please let us know so that we can close this question as a duplicate. :) – hpesoj626 Jan 17 '13 at 7:01
@hpesoj626, the links have helped. So, feel free to close this queston :) – Günal Jan 17 '13 at 7:40
up vote 3 down vote accepted

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

Use \begin{figure}[!htp]instead

share|improve this answer

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