I'm trying to force table placement in a specific section created with this purpose, however the table automatically goes to the next page whenever I try to insert it.
I'm using the repUERJ template available here.
\documentclass[a4paper,12pt,oneside,onecolumn,final,fleqn]{repUERJ}
\usepackage{float}
Table:
\begin{table}[H] {12cm}
\centering
\caption{}
\label{}
\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}
PS: this template does not allow to avoid inserting the width of the table in {}
\documentclass{...}and ending with\end{document}. – Phelype Oleinik May 09 '18 at 23:26tableenvironment (onlytabular). In this case, you will have to resort to other things to have caption or centering, if you need those, but thetabularby itself does not float. – gusbrs May 10 '18 at 02:52[H]means. (as noted in a comment on your last question{12cm}just typesets 12cm at the top of the figure, presumably you want to delete that. – David Carlisle May 10 '18 at 08:17