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.

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?

share|improve this question
    
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
add comment

1 Answer

up vote 8 down vote accepted

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]
\begin{adjustwidth*}{4cm}{2cm}
\lipsum[2]
\end{adjustwidth*}
\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}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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