Hello,
I'm trying to fit a table so that it stays on the same page as the section that was created to behave it, however, even though it's an empty page section with only this table, it automatically moves to a new page leaving the table previous 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 have tried too many options variations of the float
package, such as [H]
, but did not change that.
NOTE: I am using the available repUerj template here