I'm writing my thesis and have used the geometry package to control the size of the text body so that it follows 'good' typesetting practices as described in the KOMA-script documentation.

Many of my figures are full-page floats that are taller than the text height. Consequently I have been using the newgeometry/restoregeometry and afterpage commands to adjust the page layout and ensure that the figure is appropriately placed in the document.

This works fine except that on the page immediately following the figure, the text 'runs' into the bottom margin. I've have provided a MWE below. Note how the fourth page is formatted incorrectly. (I am using pdfLaTeX).

Does anyone know how to correct this behaviour? (or have an alternative method of accomplishing the same layout?)

It seems to me as though the restoregeometry command is not being executed correctly.


% Calculate type area for page 
\geometry{ bindingoffset = 8mm, 
           heightrounded = true, 
           body = {125mm, 125mm * 16 / 9},
           marginratio = {9:16, 9:16},
           marginparsep = 5mm,
           marginparwidth = 30mm,
           headsep = 10mm,
           headheight = 10mm,
           footskip = 15mm }

\KOMAoptions{fontsize = 11pt}
% Chapters open on right.
\KOMAoptions{open = right}
% \cleardoublepage command uses the empty page style
\KOMAoptions{cleardoublepage = empty}
% Don't typeset the Chapter and Appendix prefixes
\KOMAoptions{chapterprefix = false}
\KOMAoptions{appendixprefix = false}
% We also avoid having running heads and page numbers on float pages by using the  floatpage
% package to make float pages use the empty page style.

% For dummy text

% For good control of floats
% Allow floats to hang into the outer margin

% For control of caption formatting

% End Preamble

\chapter{First Chapter}
\section{First Section}%

% Add a full page figure. I want the preceeding page to be full of text so
% use the afterpage command. Also as the figure is taller than the page height 
% I use the newgeometry/savegeometry/restoregeometry commands.
\newgeometry{bindingoffset = 8mm, 
             body = {125mm, 125mm * 16 / 9 + 10mm + 15mm}, 
             headsep = 0mm, 
             footskip = 0mm}%

                    {\caption{First sub-figure}}%

                    {\caption{Second sub-figure }}%
        {\caption{Main caption of the figure. In reality this runs to two lines long so I'm just filling in space here with meaningless text.}}%
% Next section
\section{Second Section}%
\section{Third Section}%

  • Have you try the command \resizebox from the pkg geometry? Try using this command to adjust your figure a little smaller?
    – Ch'en Meng
    Commented Oct 21, 2013 at 7:17
  • 1
    I have a situation where I do need \afterpage and \newgeometry and where Ulrike Fischers solution won't do. A solution would be much appreciated.
    – Andreas
    Commented May 20, 2015 at 14:04
  • Note that \newgeometry makes local changes which will not make it out of \afterpage. You need to use \afterpage{\newgeometry{,,,}...\renewgeometry} and do the whole thing in one go. Commented Jun 15, 2022 at 16:59

1 Answer 1


I don't think that you need afterpage and restoregeometry. Use negative space to move your graphic around and avoid overful box messages. E.g.

\section{First Section}%

\vspace{-2cm}%move up
\begin{minipage}[t][\dimexpr \textheight + 3cm]{\textwidth}

\caption{Main caption of the figure. In reality this runs to two lines long so I'm just filling in space here with meaningless text.}%

\vspace{-3cm}%avoid "float to large"
  • This is exactly the simple work around I was looking for. The funny thing is that I was originally using \vspace to shift my figures around but the resulting "float to large" warnings drove me nuts. Hence leading me to use \afterpage and \newgeometry. Now I know better.
    – luke
    Commented Nov 2, 2013 at 3:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .