
我的文件中的新附錄章節之前有一個隨機的空白頁,並且已經嘗試了網路上的所有方法都無濟於事。
這是我的班級設定:
\documentclass[11pt,openright,a4paper,draft]{report}
這是空白頁面出現的地方:
\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}
任何幫助是極大的讚賞。
答案1
您的附錄章節在第一頁上沒有可破壞的內容,因此會刷新到後續頁面。預設情況下,TeX 將分節標題 ( \chapter
, \section
, \subsection
, ...) 與其後面的任何內容連結起來,以避免分節標題在頁面底部成為孤立的。
在你的例子中,這意味著\chapter
標題與 the 綁定\section
,而 which 又與 which 綁定\subsection
,又與一個大的牢不可破的 綁定minipage
。由於這些內容都不適合整個頁面,因此必須將其刷新到下一頁,留下空白頁。透過查看並識別第 100 頁周圍.log
出現過滿警告的位置,您會注意到此行為。\vbox
解決方案:引入一些易碎的內容(例如段落文字或清單),或縮小圖像的大小,以便它與所有其他部分標題一起適合頁面。