Sectioning – How to Avoid Splitting Tables Between Sections

floatspositioningsectioningsections-paragraphs

I have 5 tables and a section after them. After creation of an output file I have two tables on one page, then a section and last 3 tables on next page.

What I want to achieve is to put tables and section below them.

\begin{table}[ht]\footnotesize
\centering
\begin{tabular}{|ll|}
......
\end{tabular}
\label{tab:result}
\end{table}

\section{Section below tables}

Best Answer

You can use the \FloatBarrier macro from the placeins package. This prevents floats from floating across the barrier. Alternatively, you can use the section option to that package to prevent floats from leaving the section.

Related Question