- If the photo is landscape oriented, then it, and its caption, should be rotated 90 degrees to take full advantage of the page (currently I accomplish this using the
{sidewaysfigure}
environment from therotating package for such images).
- The header (and footer, but that's normally empty anyway) should be suppressed on pages containing a full page image (currently I accomplish this using the
\iffloatpage
command from thefancyhdr package in my header definitions).
- No captions should be numbered (currently I accomplish this by using the
\caption*
command from thecaption package).
- The image and its caption should be sized to take up all available space on the page, include that normally allotted to the header and the footer but not the margins.
\fullfigheight
) which was \textheight
+\headheight
+\headsep
+\footskip
and use this as the height of the image. This resulted in two problems:
- The top of the figure is placed at the top of the text field, not the top of the header field (surrounding the
\includegraphics
command with a\centerline
command seems to solve this) - The figure, especially when the caption is included, is too wide for the page
height=\textwidth,keepaspectratio
" to the optional arguments for the \includegraphics
command, but that doesn't help because that doesn't take into account the room taken up by the caption. As a result the figure "bleeds" into the margins.What I'd like to do is have the image be scaled so that it uses the full print height (text + header + footer) where possible, but scales the image down when necessary (and only as much as is necessary) to make both the image and the caption fit within the horizontal margins. Ideally, this should happen automatically and should play well with changes to the custom page layout parameters (as these might change).
I've attached a MWE (and a sample image) that shows the results of what I've tried.