From 07090208b2bf39c4ff2746986b55224980a1dae7 Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Mon, 4 Mar 2024 15:13:30 +0000 Subject: use even margin version of template --- thesis/infthesis.cls | 22 +++++++++++++++------- thesis/main.tex | 2 +- thesis/ugcheck.sty | 2 +- 3 files changed, 17 insertions(+), 9 deletions(-) (limited to 'thesis') diff --git a/thesis/infthesis.cls b/thesis/infthesis.cls index 57e660e..f4bd4f1 100644 --- a/thesis/infthesis.cls +++ b/thesis/infthesis.cls @@ -1,13 +1,14 @@ %% %% File : infthesis.cls (LaTeX2e class file) -%% Author : Version 3.8 by Sharon Goldwater +%% Author : Version 3.9 Alpha by Hiroshi Shimodaira +%% Version 3.8 by Sharon Goldwater %% Version 3.7 updated by Jennifer Oxley %% Version 3.6 by Charles Sutton %% Version 3.5 by Vasilis Vasaitis %% Version 3.4.1 updated by Tiejun Ma (t.j.ma@ed.ac.uk) %% Version 3.0 by Mary Ellen Foster %% Original version by Martin Reddy (mxr@dcs.ed.ac.uk) -%% Version : 3.8 +%% Version : 3.9 Alpha %% Updates : 1.0 [9/11/95] - initial release. %% 1.1 [24/4/96] - fixed bibliography bug caused by new report.cls %% 1.2 [13/5/96] - \dedication & \thesiscaption[] @@ -35,6 +36,7 @@ %% 3.7 [07/02/2013] - fix MInf definition %% 3.8 [06/06/2019] - added support for MSc degrees: %% adi, datasci, di, cyber +%% 3.9 Alpha [30/01/2024] - added [online] option for equal left&right margins (suggested by Iain Murray) %% This file contains a class definition, infthesis, for the LaTeX2e @@ -45,7 +47,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesClass{infthesis}[2013/02/07 v3.7 School of Informatics Thesis Class] +\ProvidesClass{infthesis}[2024/01/30 v3.9 Alpha - School of Informatics Thesis Class] %% @@ -99,6 +101,7 @@ \newboolean{frontabs} \newboolean{strict} \newboolean{timesfonts} +\newboolean{online} %% Choose the monochrome crest for the front page (if crests used) \shieldtype{0} @@ -203,6 +206,7 @@ Computer Science}} \DeclareOption{10pt}{\renewcommand{\@thesispoints}{10pt}} \DeclareOption{11pt}{\renewcommand{\@thesispoints}{11pt}} \DeclareOption{12pt}{\renewcommand{\@thesispoints}{12pt}} +\DeclareOption{online}{\setboolean{online}{true}} %% Font options. \DeclareOption{notimes}{\setboolean{timesfonts}{false}} @@ -298,10 +302,14 @@ Computer Science}} \ifthenelse{\boolean{draftthesis}} {\geometry{a4paper,margin=2cm,twoside}} {\if@twoside - \geometry{a4paper,left=4cm,top=2cm,right=2.5cm,bottom=4cm,twoside} - \else - \geometry{a4paper,left=4cm,top=2cm,right=2.5cm,bottom=4cm} - \fi} + \ifthenelse{\boolean{online}} + {\PackageWarning{infthesis}{The "online" option should not be used in conjunction with the "twoside" option}} + {\geometry{a4paper,left=4cm,top=2cm,right=2.5cm,bottom=4cm,twoside}} + \else + \ifthenelse{\boolean{online}} + {\geometry{a4paper,margin=3.25cm,top=2cm,bottom=4cm}} + {\geometry{a4paper,left=4cm,top=2cm,right=2.5cm,bottom=4cm}} + \fi} %% We should make pages created by "cleardoublepage" be %% really empty. Taken from titlesec.sty diff --git a/thesis/main.tex b/thesis/main.tex index bd7f755..9b65351 100644 --- a/thesis/main.tex +++ b/thesis/main.tex @@ -1,7 +1,7 @@ % UG project example file, February 2022 % Do not change the first two lines of code, except you may delete "logo," if causing problems. % Understand any problems and seek approval before assuming it's ok to remove ugcheck. -\documentclass[logo,bsc,singlespacing,parskip]{infthesis} +\documentclass[logo,bsc,singlespacing,parskip,online]{infthesis} \usepackage{ugcheck} \usepackage[dvipsnames]{xcolor} diff --git a/thesis/ugcheck.sty b/thesis/ugcheck.sty index d34839e..3750d98 100644 --- a/thesis/ugcheck.sty +++ b/thesis/ugcheck.sty @@ -27,7 +27,7 @@ % \newif\ifmarginsmessedwith \marginsmessedwithfalse -\ifdim\oddsidemargin=41.54103pt \else oddsidemargin has been altered.\\ \marginsmessedwithtrue\fi +\ifdim\oddsidemargin=20.20146pt \else oddsidemargin has been altered.\\ \marginsmessedwithtrue\fi \ifdim\headheight=12.0pt \else headheight has been altered.\\ \marginsmessedwithtrue\fi \ifdim\textheight=674.33032pt \else textheight has been altered.\\ \marginsmessedwithtrue\fi \ifdim\marginparsep=10.0pt \else marginparsep has been altered.\\ \marginsmessedwithtrue\fi -- cgit v1.2.3