changeset 307:217768907fa8

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.
author Jim Hague <jim.hague@acm.org>
date Sun, 07 Jul 2013 20:41:05 +0100 (2013-07-07)
parents c3b300378738
children 22759794b31f
files docsetup.A4.tex docsetup.A5.tex dottes.tex
diffstat 3 files changed, 3 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/docsetup.A4.tex	Sun Jul 07 20:40:03 2013 +0100
+++ b/docsetup.A4.tex	Sun Jul 07 20:41:05 2013 +0100
@@ -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
--- a/docsetup.A5.tex	Sun Jul 07 20:40:03 2013 +0100
+++ b/docsetup.A5.tex	Sun Jul 07 20:41:05 2013 +0100
@@ -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
--- a/dottes.tex	Sun Jul 07 20:40:03 2013 +0100
+++ b/dottes.tex	Sun Jul 07 20:41:05 2013 +0100
@@ -2,6 +2,7 @@
 
 \usepackage{color}
 \usepackage{fontspec}
+\usepackage[margin=1in]{geometry}
 \usepackage{graphicx}
 \usepackage{fancyhdr}
 \usepackage{longtable}
@@ -51,10 +52,12 @@
 
 % ----- Title page
 
+\newgeometry{margin=0.5in}
 \begin{titlepage}
 \pagecolor{havocpurple}
 \titleBoD
 \end{titlepage}
+\restoregeometry
 
 % ----- First inside page and dedication. No page numbering here, thanks.