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 Duplicates:
How to avoid splitting tables between sections
How do I ensure that figures appear in the section they're associated with?

I have the following problem: when I compile a document with text enclosed within a \begin{table}...\end{table} statement it compiles fine but sometimes the Table moves into the previous section.

Can I prevent tabular from moving floating environment within the document?

share|improve this question

marked as duplicate by Martin Scharrer Jun 10 '11 at 10:37

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.

This is a frequently asked question and I closed it as duplicate to connect it to other previously asked and answered questions. This makes it easier for other people to also find the alternative solutions given there. It's OK to keep Thorsten's answer accepted as it is now. – Martin Scharrer Jun 10 '11 at 10:39
up vote 13 down vote accepted

You can use the float package:


Alternatively there's also the placeins package that provides \FloatBarrier

share|improve this answer

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