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.

My document class is article with a4paper. The margins that I want for the body are:

top: 1 inch
bottom: 1 inch
right: 0.5 inch
left: 1.5 inch

The title page should have a 1 inch margin on all four sides, but the body of my paper should have margins as specified above.

I tried using the geometry package to specify these margins. But it didn't come out as I wanted. How can I achieve this?

share|improve this question
    
I re-arranged your question a bit to separate info and question and to make it clearer what you're looking for, hope you don't mind. –  doncherry Oct 16 '11 at 8:36
add comment

2 Answers

up vote 14 down vote accepted

Using the geometry package it is possible to switch your layout mid-document using the \newgeometry{<settings>} macro. We first set up the initial layout of the title page (1in on all four sides) when the package is loaded

\usepackage[showframe,paper=a4paper,margin=1in]{geometry}% http://ctan.org/pkg/geometry

and then change this after the title page using

\newgeometry{top=1in,bottom=1in,right=0.5in,left=1.5in}

Here is the complete MWE:

\documentclass{article}
\usepackage[showframe,paper=a4paper,margin=1in]{geometry}% http://ctan.org/pkg/geometry
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\begin{document}
\begin{titlepage}
\thispagestyle{empty}
\author{Somebody Important}
\title{Something just as important}
\maketitle
\lipsum[1-2]
\end{titlepage}

\newgeometry{top=1in,bottom=1in,right=0.5in,left=1.5in}

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

enter image description here

lipsum provides dummy text, while the showframe option to geometry merely frames the page to highlight the layout of the text block and other areas.

share|improve this answer
add comment

Using \restoregeometry yields the same results:

\documentclass{article}
\usepackage[showframe,paper=a4paper,top=1in,bottom=1in,right=0.5in,left=1.5in]{geometry}% http://ctan.org/pkg/geometry
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\begin{document}

% Declare new goemetry for the title page only.
\newgeometry{margin=1in}
%---------------------------------------------

\begin{titlepage}
\thispagestyle{empty}
\author{Somebody Important}
\title{Something just as important}
\maketitle
\lipsum[1-2]
\end{titlepage}

% Ends the declared geometry for the titlepage
\restoregeometry
%--------------------------

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

This gives:

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.