Take the 2-minute tour ×
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.

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

\usepackage[left=1cm,right=2cm,top=2.5cm,bottom=2.5cm,footnotesep=0.5cm]{geometry}

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
1  
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
    
We need a MWE to get anywhere with this: without one it's too localized. –  Joseph Wright Nov 21 '12 at 8:39
add comment

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.

1 Answer

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

% ... some material
\afterpage{%
\newgeometry{<options>}
% material for this page
\clearpage
\restoregeometry
} % 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
add comment

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