2

My tables are being spread out across a page, and using t for placement wouldn't help. What should I do? I've tried \raggedbottom, which does not work.

MWE:

\usepackage{array}
\usepackage{booktabs}
\usepackage{placeins}
\begin{document}
Blah blah blah.
\FloatBarrier
\newpage %Here the pages with tables begins.
\begin{table}[b]
... Tabular Blah Blah ...
\end{table}
\begin{table}[b]
... Tabular Blah Blah ...
\end{table} % Lots of the tables
\FloatBarrier
\newpage %Following this page is something that's not tables.
Blah blah blah.

Thanks in advance!

Ingmar
  • 6,690
  • 5
  • 26
  • 47
  • Welcome to TeX.SE. – Mico Aug 10 '23 at 01:18
  • 2
    By default a text page should have no more that two top little floats and only one bottom float. With [b]+[b] you avoid the possibility place both in the same page. With [t]+[t] it may work only with two small tables. Take your time to understand here how float a table or figure , and how force the defaults when needed. – Fran Aug 10 '23 at 01:59
  • +1 for the pointer from @Fran towards the excellent compendium answer. I'm commenting only to stress that the 'aha!' here is the often-forgotten point that the float parameters in \begin{table} (and figure) permit LaTeX to place the float top/bottom/here, but don't force it to. – Norman Gray Aug 10 '23 at 09:41

1 Answers1

4

To guarantee that the two tabular environments are typeset closely together, just use a single table environment.

enter image description here

Note that a table float on a page all by itself will be centered vertically by default.


\documentclass{article}

\begin{document}

Some blah blah blah.

\clearpage % force page break and flush the float stack

\begin{table} \centering ... tabular bla bla ... \caption{bla bla}

\vspace{2cm} % set the amount of vertical whitespace separation ... tabular ble ble ... \caption{ble ble} \end{table}

\clearpage % force another page brea and flush the float stack

More blah blah blah.

\end{document}

Mico
  • 506,678