我正在尝试让一张图片填满/覆盖整个页面。但是,我仍然想要一个带有标准图号的标题以供参考。标题出现在哪里并不重要。就在图像上的某个地方。
通常我会插入如下图片。如何让图片覆盖页眉和页脚?并且覆盖 100% 的宽度。
(我知道打印机无法打印到边缘,没关系)
\begin{figure}[H]
\centering
\includegraphics[width=1.00\textwidth]{billeder/Skitseprojektering/Bindinger/kort/Jordartskort.png}
\caption{Jordarter i projektområdet \parencite{skaermkort_graa,vejmidte_vejnavne,jordart_GEUS_GIS}.}
\label{fig:jordbundsanalyse}
\end{figure}
答案1
一个incgraph
解决方案:
\documentclass{article}
\usepackage{caption}
\usepackage{incgraph}
\begin{document}
\Huge
Normal page before the image page. Ref to Figure~\ref{img:image page} on page~\pageref{img:image page}
% `inctext` environment will typeset its contents in a separate page
\begin{inctext}[paper=current,label={img:image page},bookmark={A huge ABC}]
\begin{minipage}{\paperwidth}
\includegraphics[width=\paperwidth]{example-image}
\captionof{figure}{Title}
\end{minipage}
\end{inctext}
Another normal page after the image page
\end{document}
adjustbox
如果您想将缩放比例设置为更加自动化,则具有更多高级缩放选项。
更新:
要将图像推到顶部,请使用
\begin{minipage}[t][\paperheight]{\paperwidth}
[...]
\vfill
\end{minipage}
完整示例
\documentclass{article}
\usepackage{caption}
\usepackage{incgraph}
\begin{document}
\Huge
Normal page before the image page. Ref to Figure~\ref{img:image page} on page~\pageref{img:image page}
% `inctext` environment will typeset its contents in a separate page
\begin{inctext}[paper=current,label={img:image page},bookmark={A huge ABC}]
\begin{minipage}[t][\paperheight]{\paperwidth}
\includegraphics[width=\paperwidth]{example-image}
\captionof{figure}{Title}
\vfill
\end{minipage}
\end{inctext}
Another normal page after the image page
\end{document}
答案2
您可以将标题设置在双面文档的对开页上。在示例中,标题位于左下页:
\documentclass[twoside]{article}
\usepackage{hvfloat}
\usepackage{blindtext}
\begin{document}
Normal page before the image page \ref{img:image page}
\Blindtext
\hvFloat[FULLPAGE,capPos=left]{figure}%
{\includegraphics[FULLPAGE]{example-image}}
{\blindtext}% the caption
{img:image page}
\Blindtext
Another normal page after the image page
\end{document}
答案3
答案4
这会将标题和图像重叠。图像不占用任何空间,尽管基线位于文本区域的顶部。小页面占据整个文本区域,标题位于底部。
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}[p]
\rlap{\raisebox{\dimexpr 1in+\topmargin+\headheight+\headsep-\height}[0pt][0pt]%
{\hspace*{\dimexpr -1in-\oddsidemargin}\includegraphics[width=\paperwidth,height=\paperheight]{example-image}}}%
\begin{minipage}[c][\textheight][b]{\textwidth}% fill entire text area
\caption{Test}% will be even with bottom of text area
\end{minipage}%
\end{figure}
\end{document}