# Controlling table at the beginning of a section [closed]

I have a document, and there is a chapter with few tables. In this chapter I have this section:

\section{Some section}
\begin{table}[H]
\begin{tabular}{|l|l|l|l|}
---
\end{tabular}
\caption{Some caption}
\end{table}


now, after compiling I get section at the top of the page and my table at the bottom. I tried to use

\usepackage{float}


with H or h options for tables, and it worked for other tables, but not for this one. What am I doing wrong?

-

## closed as too localized by Jake, Ian Thompson, egreg, Marco Daniel, cmhughesApr 27 '12 at 9:00

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

Hi Andna, welcome to TeX.sx! You'll need to supply a more complete example. Can you make a small example document (starting from \documentclass) that reproduces the behaviour? –  Jake Apr 27 '12 at 7:05
When I was editing the files to post it here, I tracked the error, I needed to add \newpage after the table (I have new section and image after the table), now everything looks as I want, thanks :) –  Andna Apr 27 '12 at 7:19
Glad the problem's solved! –  Jake Apr 27 '12 at 7:22
@Andna: \clearpage might be better here. Also see the other questions about table/figure placement. –  Martin Scharrer Apr 27 '12 at 7:46

When I encounter such a "strange" behaviour, I add a paragraph between sections or chapters or -- here -- chapter and a tabular with just one command: \mbox{}. Usually that helps. And this seems better to me than a hard \newpage or \clearpage. You never know how long your tabular will become in the end and if it becomes longer than one page you will later wonder why TeX leaves a page blank except for one line.
@egreg The question is not too localized, in the opposite: it is a common problem that LaTeX creates a strange layout, if you have a page full of sections, maybe a float, but no text ! And \newpageetc. isn't a good solution! So please reopen. –  Keks Dose Apr 27 '12 at 13:58