# Two sets of margins for a single page

Does anyone know how to change the marins of a document midpage? IE a header has .5 inch margins but the text itself has only 1 inch margins?

-
Can you give us an example? Is this formally a page header, or just the first block of text in the page body? –  Brent.Longborough Sep 27 '10 at 20:24
does any one know how to change the margin of the first page, different from the main body? I use \documentclass{book} –  user15527 Jun 12 '12 at 4:58
@ren Welcome to TeX.sx! If you have a similar question which is not answered here, please post it as a fresh one using the "Ask Question" link above. Follow-up questions like this are more than welcome! Please also include a link to this question to provide the background. –  Werner Jun 12 '12 at 5:04

You can change the margins for small pieces of text (not spreading over more than a page, usually) using the changepage package. E.g.,

\documentclass{article}
\usepackage{changepage,lipsum}
\begin{document}
\lipsum[1]
\lipsum[2]
\lipsum[3]
\end{document}


The changepage package has some more features for adjusting more of the textblock, but if it's the entire page that you want to change, the latest version of the geometry package provides this somewhat more conveniently. Here's an example:

\documentclass{article}
\usepackage{geometry,lipsum}
\geometry{margin=4cm}
\begin{document}
\lipsum
\clearpage
\newgeometry{margin=1cm}
\lipsum
\clearpage
\restoregeometry
\lipsum
\end{document}

-