[Tex/LaTex] How to force a text to appear after a table

floatspage-breakingspacingtables

I have to show a set of four tables: one after another. Each table has almost middle page of information, and I really need them to appear before the next block of text. An example of LaTeX code is shown below:

text text text text...

\begin{table}
    \caption{table 1}
...............
\end{table}

\begin{table}
    \caption{table 2}
...............
\end{table}

\begin{table}
    \caption{table 3}
...............
\end{table}

\begin{table}
    \caption{table 4}
...............
\end{table}

next text next text next text

As these tables cannot fit in one page, LaTeX need two or three pages to show all of them. But, here is my problem: since there are empty spaces between one table and another (because of the end of the pages), LaTeX put the subsequent text in these spaces, showing the rest of the tables after it.

In other words, I want LaTeX to behave exactly as the code says: first show all the tables (no matter how much empty space may exist between them), and only show the rest of the text after the last table.

Best Answer

Ultimately, \FloatBarrier with \usepackage{placeins} package worked.

Related Question