diff options
Diffstat (limited to 'thesis/infthesis.cls')
-rw-r--r-- | thesis/infthesis.cls | 22 |
1 files changed, 15 insertions, 7 deletions
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 <sgwater@inf.ed.ac.uk> +%% Author : Version 3.9 Alpha by Hiroshi Shimodaira <h.shimodaira@ed.ac.uk> +%% Version 3.8 by Sharon Goldwater <sgwater@inf.ed.ac.uk> %% Version 3.7 updated by Jennifer Oxley <joxley@inf.ed.ac.uk> %% Version 3.6 by Charles Sutton <csutton@inf.ed.ac.uk> %% Version 3.5 by Vasilis Vasaitis <v.vasaitis@sms.ed.ac.uk> %% Version 3.4.1 updated by Tiejun Ma (t.j.ma@ed.ac.uk) %% Version 3.0 by Mary Ellen Foster <mef@cogsci.ed.ac.uk> %% 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 |