当我尝试让一个部分以一张大图像开头时,会在部分开始前添加一个额外的页面。我追踪到问题出在 hyperref 包上;当它未加载时,额外的页面就会消失。无论是\figure{image}[H]
还是 plain\includegraphics{image}
都会出现这个问题。较小的图像或部分以文本开头时不会出现此问题。
我在尝试添加 A4 页扫描件作为附录时遇到了这个问题。下面显示了显示该问题的 mwe。
\documentclass{article}
\usepackage{mwe}
% \usepackage{hyperref} % uncommenting this causes an extra page to be created.
\begin{document}
\pagenumbering{gobble} % added so page numbers aren't drawn on top of images, doesn't affect the issue.
\section{Image 1}
\includegraphics[scale=0.7]{example-image-a4}
\includegraphics[scale=0.7]{example-image-a4}
\section{Image 2}
% \lipsum % and uncommenting this fixes the problem.
\includegraphics[scale=0.7]{example-image-a4} % issue not present with 'example-image'
\end{document}