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

How to avoid splitting tables between sections.

How do I ensure that figures appear in the section they're associated with?

I have a couple of tables that are written consecutively (8 tables) and after all tables, I start a new section.

I want that LaTeX floats all those tables in some way (order of them is not important), but that it floats them before I start a new section, as it's really confusing when suddenly a table of the previous section appears in the new section.

Is this possible somehow?

share|improve this question

marked as duplicate by Caramdir, Hendrik Vogt, lockstep, Stefan Kottwitz Feb 23 '11 at 13:31

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.

add comment

2 Answers 2

up vote 11 down vote accepted

The placeins package provides a \FloatBarrier command which prevents floats from floating beyond it. The package has a [section] option to place such a barrier at each section.

share|improve this answer
    
thanks, exactly what I was looking for! –  Johannes Schaub - litb Feb 23 '11 at 6:47
add comment

Try \usepackage[section]{placeins}.

share|improve this answer
add comment

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