how to fix position of table in latex code example
Example 1: latex how to position table
% In document
\begin{table}[*your option here]
%Options
[h] Place float here
[t] Position at top of page
[b] Position at bottom of page
[p] Put on special page for floats only
[!] Override internal parameters LaTeX uses for determining "good" float positions
[H] Place float at precisely the location in the LaTeX code (Requires float package)
[h!] Similar to [H] (Requires float package)
% Float package setup in preamble
\usepackage{float}
\restylefloat{table}
Example 2: latex how to position table
%Preamble
\usepackage{float}
\restylefloat{table}
%Document
\begin{table}[H]...
% You need the [H] option on the table so it won't be repositioned