15

Possible Duplicate:
How to avoid splitting tables between sections

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?

  • 2
    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
26

You can use the float package:

\usepackage{float}
...
\begin{table}[H]
...
\end{table}

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

| improve this answer | |

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