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

1 Answer 1

up vote 10 down vote accepted

You can use the float package:


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

share|improve this answer
It works, thank you. –  lhj7362 Jun 10 '11 at 9:39

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