[Tex/LaTex] Extra blank page thesteriously being made to appear (XeTeX)

page-breaking

At https://gist.github.com/8210807 I've gisted the TeXShop Console messages for three runs of the same .tex file along with that file. Now when I typeset that .tex, a strange blank page is created just before \chapter{\lez{13/12/2013}}. How do I get rid of that? And why on Earth does that happen?

\documentclass[a4paper]{report}
\usepackage{graphicx}
\newcommand{\hsp}{\hspace}

\begin{document}
\chapter{mapu}
mumau

\chapter{gungu}
\includegraphics[width=11.5cm]{Felli_1.jpg}
\end{document}  

shows this behaviour and the picture is:

enter image description here

Best Answer

I can reproduce your problem if the figure is too high to fit in the remaining part of the page after the chapter title. There's nothing you can do about it other than reducing the figure height or letting it float.

Here's an explanation.

After a chapter title, LaTeX disallows a page break. Then it builds the following paragraph, which happens to consist only of a very big object, the picture, which, together with the chapter title, fills the page. Therefore it looks for a feasible page break points and finds the vertical space before the chapter title, so it ejects an empty page and pushes the material to the following page. Now it finds the same items as before, but with no vertical space before the chapter title, that has disappeared at the page break. Hence its only possibility is ejecting an overfull page.