0

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 {}

phill
  • 3
  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Phelype Oleinik May 09 '18 at 23:26
  • 1
    If you absolutely don't want your table to float, don't use the table environment (only tabular). In this case, you will have to resort to other things to have caption or centering, if you need those, but the tabular by itself does not float. – gusbrs May 10 '18 at 02:52
  • A float always uses \columnwidth or \textwidth (depending on the type of float). – John Kormylo May 10 '18 at 03:51
  • you have used [H] so disable all of latex's float mechanism and the figure just comes where you place it. If it is in teh wrong place in the output you need to move it in the source, that's what [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
  • This is the same (partial) example and same question as your previous question. As noted in the comments there you need to provide an example if there is something that you think is not working. – David Carlisle May 10 '18 at 08:20

0 Answers0