57

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?

  • 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
54

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.

| improve this answer | |
  • 1
    Just a slight improvement to @Werner 's answer. Changing the global margins to suit the title page can mess up the headers and footers for the rest of the document. A solution is to set the desired global margin and then add \newgeometry{<title page settings>} and \newgeometry{<global settings>} before and after \begin{titlepage} respectively. – Anthony Ebert Feb 8 '17 at 13:44
  • @Werner, could margin be changed for a specific line only? For example, I want to adjust the margin of the university logo in my title page and move it a bit more left. – Bobolo Dec 18 '18 at 21:45
42

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:

| improve this answer | |
  • could margin be changed for a specific line only? For example, I want to adjust the margin of the university logo on my title page and want to decrease its left margin. – Bobolo Dec 18 '18 at 21:47
2

I recommend to set up the title page as a separate small tex file and including the resulting pdf in the main document using package pdfpages.

The content of the titlepage is static anyway, needs extra attention and is the one (hopefully) place in the document where semantinc markup is not needed. There is no real need to keep it with the other stuff. It also ensures correct counting of pages, meaning you don't get in trouble with hyperref.

\documentclass{report}
\usepackage{pdfpages}
\usepackage{hyperref}
\begin{document}
\includepdf{titlepage}
%Acknowledgements, Dedication, Wombats, Ducks etc.
\chapter{Introduction}
\end{document}
| improve this answer | |

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.
https://tex.stackexchange.com/questions/31705/different-margins-for-title-page
tex.stackexchange.com
crawl=CC-MAIN-2020-40
172066
application/http; msgtype=response
sha1:WCPGZJDPI23KHLBHETJ2AZJ2JVDMRWPI
<urn:uuid:56e21a11-ce40-4bff-a419-a5a41224692e>
2020-09-29T23:21:52Z
151.101.129.69
text/html
sha1:PDU4KMT7X3HAF6MZKY55OQMNXATILBRL
<urn:uuid:4dc95efa-fd63-40e2-9a93-4b6ba698f552>
https://tex.stackexchange.com/questions/31705/different-margins-for-title-page
response
<urn:uuid:3e6ac2ab-e003-457e-a852-5afe9d888add>
isPartOf: CC-MAIN-2020-40
publisher: Common Crawl
description: Wide crawl of the web for September 2020
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-235.ec2.internal
software: Apache Nutch 1.17 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/