1
Hello,
I am trying to adjust a table so that it stays on the same page of the section that was created to compose it, however, as much as it is an empty page section with only this table, it automatically moves to a new page leaving the previous one blank.
\documentclass[a4paper,12pt,oneside,onecolumn,final,fleqn]{repUERJ}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{multirow}
\usepackage{amsmath,amssymb}
\usepackage[alf]{abntex2cite}
\usepackage[font=default,frame=no]{repUERJformat}
\usepackage[maxfloats=25]{morefloats}
\usepackage{array}
\setlength\extrarowheight{2pt}
\usepackage[section]{placeins}
\usepackage{placeins}`
My table:
\begin{table}[h] {12cm}
\centering
\caption{Variáveis e Fontes dos Dados}
\label{Variáveis e Fontes dos Dados}
\begin{tabular}{cc}
\textbf{Variável} & \textbf{Fonte} \\ \hline
\multicolumn{1}{c|}{I } & SEV \\ \hline
\multicolumn{1}{c|}{P } & IBGE \\ \hline
\multicolumn{1}{c|}{A} & IBGE \\ \hline
\multicolumn{1}{c|}{\begin{tabular}[c]{@{}c@{}}T = Intensidade Energética\\ O\end{tabular}} & IBGE e BEN \\ \hline
\end{tabular}
\end{table}
I’ve tried too many variants of package options float
, such as the [H]
, but it did not change that question.
NOTE: I am using the repUerj template available here
if it is essential to try
\begin{table}[h!]
– JJoao