I know using \newgeometry{left=xcm,bottom=xcm} and \restoregeometry can help to set a new margin, but I don't know where I should put this to reset only the second page (or third, etc.). Here is the MWE:

\section{First section} \lipsum[1-4]
\section{Second section} \lipsum[5-8]
\section{Third section} \lipsum[9-12]
\section{Last section} \lipsum[13-14]

My question is: how to set different margins for different pages? i.e.,

for the 1st page: \geometry{top=1in,bottom=1in,left=1in,right=1in};

for the 2nd page: \geometry{top=2in,bottom=2in,left=2in,right=2in};

for the 3rd page: \geometry{top=3in,bottom=3in,left=3in,right=3in};

enter image description here

  • Do you only have a different first page? Or do you have random page margin alterations throughout your document? – Werner Feb 27 at 18:10
  • @Werner sorry, I am not very sure about your question. I want to be able to set different margins for different pages. – FzLbMj Feb 27 at 20:06
  • @FzLbMj: If you document has a single odd-margined page, it's possible to manually make changes fairly easily. However, for multiple odd-margined pages, you'll have to suggest a manual change around every page break. – Werner Feb 27 at 20:07
  • @Werner yeah, the later is what I want to do. However, when you write a document, it is not possible to exactly define where is the start of a new page since the content may be changed. – FzLbMj Feb 27 at 20:10
  • Ok, i have to ask. Why do you want to have different margins for every page? – Johannes_B Feb 28 at 17:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.