[Tex/LaTex] How to avoid splitting tables between sections


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.


\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