Page LayoutDifferent page layout for the title page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
yuri
Posts: 6
Joined: Sat Apr 09, 2011 12:15 am

Different page layout for the title page

Post by yuri »

Hi,
I'd like to set a different margins for the title page and a different one for the rest.

Currently, I've the margins set by the geometry package which is very comfortable:

Code: Select all

\usepackage[a4paper,left=25mm,right=25mm,top=25mm,bottom=35mm]{geometry}
I have a separate .tex file only for the title page with the titlepage struct:

Code: Select all

\begin{titlepage}
...
\end{titlepage}
And I import it to the main .tex file via:

Code: Select all

\input{title.tex}
. The problem is that the imported title page inherits the margins from the main file and you can't set it separately.

I'd like to know what is the easiest/most comfortable/ way to set some other margins - left, right, top and bottom - for the title page.

Thanks in advance.
Last edited by yuri on Sun May 29, 2011 9:49 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Different page layout for the title page

Post by localghost »

Since version 5 the geometry package allows to alter the page geometry within a document and restore the orginal one later on. So in your file »title.tex« some simple additions should already work.

Code: Select all

% file »title.tex«
\newgeometry{%
  a4paper,
  left=5mm,
  right=5mm,
  top=5mm,
  bottom=15mm
}
\begin{titlepage}
% title page content
\end{titlepage}
\restoregeometry
% end of input
See the package manual for details.


Thorsten
yuri
Posts: 6
Joined: Sat Apr 09, 2011 12:15 am

Re: Different page layout for the title page

Post by yuri »

This is exactly what I've been looking for.
Thank you!
Post Reply