Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\section{Some section}
\caption{Some caption}

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


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

share|improve this question

closed as too localized by Jake, Ian Thompson, egreg, Marco Daniel, cmhughes Apr 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
add comment

1 Answer

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.

share|improve this answer
@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
+1 As an anecdote that this is not too localized, I had this exact problem, and your answer solved it. –  Brian Diggs Jul 17 '12 at 16:51
@BrianDiggs I'm very pleased to read that. –  Keks Dose Jul 17 '12 at 17:30
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.