[Tex/LaTex] Random Blank Page Appearing Before Appendix Chapter

appendicesblank-pagechapters

I have a random blank page before a new appendix chapter in my document and have tried everything online to no avail.

Here is my class setup:

\documentclass[11pt,openright,a4paper,draft]{report}

and here is where the blank page is appearing:

\section{Adding an Item to a Room}

\begin{enumerate}
\item
Access the Admin Panel.
\item
Click on \textit{Room Management}.
\item
Select the specified entry from the list.
\item
Click \textit{Add Item to Room}.
\item
Select the \textit{Item} from the list.
\item
Click \textit{Link}.
\end{enumerate}

%%% BLANK PAGE IS HERE %%%

\chapter{Raw Results Output}\label{app:Raw Results}

\section{Testing}

\subsection{Application Monitoring}\label{sec: Load Testing Evidence}

\begin{minipage}{\linewidth}
\begin{center}
\label{fig:Application Monitoring Evidence}
\includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{website-stress.jpg}
\captionsetup{justification=centering}
\captionof{figure}{Evidence of monitoring the web-application.}
\end{center}
\end{minipage}

Any help is greatly appreciated.

Best Answer

Your appendix chapter has no breakable content on the first page, and therefore flushes to a subsequent page. By default, TeX ties a sectional heading (\chapter, \section, \subsection, ...) with whatever follows it in order to avoid a sectional heading being orphaned at the bottom of a page.

In your case, this means the \chapter heading is tied to the \section which, in turn, is tied to the \subsection which, in turn is tied to a large unbreakable minipage. Since none of these fit on the page as a whole, it is necessarily flushed to the following page, leaving a blank one behind. You'll notice this behaviour by looking at the .log and identifying the place where there's an overfull \vbox warning around page 100.

Solution: Introduce some breakable content (like paragraph text, or a list), or shrink the size of your image so that it will fit on the page together with all the other sectional headings.

Related Question