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

I have a doc that has several tables in it. Each section of my end document is in a separate .tex file. In some of my files I have tables in them. Say, for example, section 4 has two tables. Currently the first table for section four does not begin on any of the pages that section 4 is on. Section 5 starts at the end of the last page, but the first section 4 table appears on the next page, which does not have any of the section 4 text in it. How do I ensure these tables appear on pages that have section 4 text on them?

share|improve this question

marked as duplicate by Werner, pluton, lockstep, Harish Kumar, Stefan Kottwitz May 25 '12 at 10:38

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.

2  
See How to influence the position of float environments like figure and table in LaTeX? and Keeping tables/figures close to where they are mentioned on ways of how to make floats stay where you want them to be. –  Werner May 24 '12 at 4:56

1 Answer 1

up vote 5 down vote accepted

For general advice look at How to influence the position of float environments like figure and table in LaTeX?. For your specific problem you might try to use the \FloatBarrier command (from the package placeins) which will output all floats that are not yet typeset when encountered. E.g.,

\usepackage{placeins}

... 
\Floatbarrier
\section{New section}

The package offers some fine-tuning possibilities, see its documentation.

share|improve this answer

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