TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to change the geometry for a single page only. I set the geometry for the whole document using:


The geometry package provides the two commands \newgeometry \restoregeometry, but the \newgeometry forces a \clearpage. I just want to change the geometry for one page only, is that possible?

share|improve this question

closed as too localized by Joseph Wright Nov 21 '12 at 8:39

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Try the package afterpage. – agodemar Oct 19 '12 at 7:26
That doesn't seem to work at all. When I put \afterpage{\restoregeometry} in the document, the geometry is not restored at all. – Andre Oct 19 '12 at 7:40
it sounds like you might like the adjustwidth environment from the changepage package – cmhughes Oct 19 '12 at 14:29
Is the difference only in the layout? Or does it include a difference in the page size as well? Are you working in twoside or not (doesn't seem like it)? Out of curiosity: What is on the page that requires it to have a different geometry? Do you have non-standard elements on that different page? What would you want the new geometry to look like? Do you have any restrictions in terms of the packages used? Would you be able to create a minimal working example (MWE) so we have something to work with that also answers the above questions? – Werner Oct 19 '12 at 15:12
I’m voting to reopen this question because I think that, contrary to what has been said, it concerns an issue of general interest. Maybe some day someone will come up with a good solution. – Gustavo Mezzetti Jun 15 at 23:14

With help from the afterpage package, the following should work for you:

% ... some material
% material for this page
} % end of \afterpage{...} material
% ... still more material
share|improve this answer
My problem is that I want LaTeX to decide what to put on the page (in my case there is lots of text). If I woul'd knew what to put on the page then the \restoregeometry would be just fine. I wan't to tell LaTeX: This page has a different geometry, deal with it. – Andre Oct 19 '12 at 8:33
If I got it right, you want a new geometry on only one page and you don't know what goes in that page? What is the purpose of that? And of course \newgeometry forces \clearpage, logically you can't have two layouts (margins, page size) on the same page, so layout pages have to go to the next page. – Joseph Nov 18 '12 at 11:54
The order at the end is important. For some reason we need \restoregeometry\clearpage. Otherwise the bottom margin on the next page is incorrect and text runs into the the end of the page (see tex.stackexchange.com/questions/139834/…) – Jörg Nov 28 '14 at 11:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.