2

We all know that by adding:

\usepackage[left=...,right=...]{geometry}

changes the margins of the entire document. However, is there a way to modify the margins on the pages I'd want?

  • With the geometry package you can use \newgeometry{<new settings>} and then \restoregeometry to restore the initial settings. – Gonzalo Medina Jul 4 '15 at 1:00
3

With the geometry package you can use

\newgeometry{<new settings>} 

and then

\restoregeometry 

to restore the initial settings. A little example:

\documentclass{article}
\usepackage[a6paper,hmargin=3cm,vmargin=2cm,showframe]{geometry}

\begin{document}

\mbox{}
\newgeometry{margin=1cm}
\mbox{}
\restoregeometry
\mbox{}

\end{document}

enter image description here

Your Answer

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

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