Change how page geometry is handled.

Instead of setting margins by hand, use the geometry package. Set a 1" margin
generally, and a 0.5" margin for the title page.
This commit is contained in:
Jim Hague 2013-07-07 20:41:05 +01:00
parent 1129f42a8b
commit f64f1c9dd8
3 changed files with 3 additions and 26 deletions

View File

@ -1,16 +1,3 @@
% ----- Page setup
% Adjust margins for A4 portrait. Increase width by 4cm and height by 4cm.
\addtolength{\textwidth}{4cm}
\addtolength{\hoffset}{-2cm}
\addtolength{\textheight}{4cm}
\addtolength{\voffset}{-2cm}
% Move the top margin up a further cm.
\addtolength{\textheight}{1cm}
\addtolength{\voffset}{-1cm}
% ----- % -----
% Title page % Title page

View File

@ -1,16 +1,3 @@
% ----- Page setup
% Adjust margins for A5 landscape. Increase width by 4cm and height by 4cm.
\addtolength{\textwidth}{4cm}
\addtolength{\hoffset}{-2cm}
\addtolength{\textheight}{4cm}
\addtolength{\voffset}{-2cm}
% Move the top margin up a further cm.
\addtolength{\textheight}{1cm}
\addtolength{\voffset}{-1cm}
% ----- % -----
% Title page % Title page

View File

@ -2,6 +2,7 @@
\usepackage{color} \usepackage{color}
\usepackage{fontspec} \usepackage{fontspec}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx} \usepackage{graphicx}
\usepackage{fancyhdr} \usepackage{fancyhdr}
\usepackage{longtable} \usepackage{longtable}
@ -51,10 +52,12 @@
% ----- Title page % ----- Title page
\newgeometry{margin=0.5in}
\begin{titlepage} \begin{titlepage}
\pagecolor{havocpurple} \pagecolor{havocpurple}
\titleBoD \titleBoD
\end{titlepage} \end{titlepage}
\restoregeometry
% ----- First inside page and dedication. No page numbering here, thanks. % ----- First inside page and dedication. No page numbering here, thanks.