A table can easily be placed with the following parameters:
h
Place the float here, i.e., approximately at the same point it occurs in the source text (however, not exactly at the spot)t
Position at the top of the page.b
Position at the bottom of the page.p
Put on a special page for floats only.!
Override internal parameters LaTeX uses for determining "good" float positions.H
Places the float at precisely the location in the LATEX code. Requires the float package. This is somewhat equivalent to h!
.If you want to make use of H
(or h!
) for an exact positioning, make sure you got the float
package correctly set up in the preamble:
\usepackage{float}
\restylefloat{table}
If you want to place the table at the same page, either at the exact place or at least at the top of the page (what fits best for the latex engine), use the parameters h
and t
like this:
\begin{table}[ht]
table content ...
\end{table}
Sources: Overleaf.com