-
Notifications
You must be signed in to change notification settings - Fork 0
/
icldt.cls
171 lines (165 loc) · 5.81 KB
/
icldt.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
%%
%% This is file `icldt.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% icldt.dtx (with options: `class')
%%
%% ///////////////////////////////////////////////////////////////////
%%
%% The provided documentclass `icldt' is based on the class `scrreprt'
%% from the Koma-script package. It uses the packages `geometry'
%% and `setspace' to fullfill the requirements for dissertations of
%% the University of London and of Imperial College London.
%%
%% If you print your dissertation for yourself or as a present for
%% family, friends or colleagues you probably should use a different
%% layout which does not fulfill the College requirements but which
%% looks much better.
%% For further information and for professional layouting and
%% printing services please visit www.PrettyPrinting.net.
%%
%% ///////////////////////////////////////////////////////////////////
%%
%% Copyright (c) 2007, Daniel Wagner, www.PrettyPrinting.net
%%
%% Permission is hereby granted, free of charge, to any person
%% obtaining a copy of this documentclass and associated
%% documentation files (the "Template"), to deal in the Template
%% without restriction, including without limitation the rights to
%% use, copy, modify, merge, publish, distribute, sublicense,
%% and/or sell copies of the Template, and to permit persons to
%% whom the Template is furnished to do so, subject to the
%% following conditions:
%%
%% The above copyright notice and this permission notice shall be
%% included in all copies or substantial portions of the Template.
%%
%% THE TEMPLATE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
%% EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
%% OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
%% NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
%% HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
%% WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
%% FROM, OUT OF OR IN CONNECTION WITH THE TEMPLATE OR THE USE OR
%% OTHER DEALINGS IN THE TEMPLATE.
%%
%% ///////////////////////////////////////////////////////////////////
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{icldt}
[2008/09/25 v1.4 Imperial College London Dissertation Template]
\newcommand*{\@supervisor}{}
\newcommand*{\@university}{}
\newcommand*{\@college}{Queen Mary}
\newcommand*{\@department}{}
\newcommand*{\@field}{}
\newcommand*{\@degree}{}
\newcommand*{\@diploma}{}
\newcommand*{\@declaration}{}
\DeclareOption{university}{%
\renewcommand{\@university}{University of London}}
\DeclareOption{imperial}{%
\let\@university\empty}
\DeclareOption{PhD}{%
\renewcommand{\@degree}{Doctor of Philosophy}
\renewcommand{\@diploma}{Diploma of Imperial College London}}
\DeclareOption{MSc}{%
\renewcommand{\@degree}{Master of Science}\let\@diploma\empty}
\DeclareOption{BSc}{%
\renewcommand{\@degree}{Bachelor of Science}\let\@diploma\empty}
\DeclareOption{DIC=off}{%
\let\@diploma\empty}
\DeclareOption{DIC=on}{%
\renewcommand{\@diploma}{Diploma of Imperial College London}}
\DeclareOption{declaration=off}{%
\let\@declaration\empty}
\DeclareOption{declaration=on}{%
\renewcommand{\@declaration}{%
I herewith certify that all material in this dissertation which
is not my own work has been properly acknowledged.}}
\DeclareOption{doublespacing}{\AtBeginDocument{\doublespacing}}
\DeclareOption{onehalfspacing}{\AtBeginDocument{\onehalfspacing}}
\DeclareOption{titlepagenumber=off}{%
\AtEndOfClass{\renewcommand{\titlepagestyle}{empty}}}
\DeclareOption{titlepagenumber=on}{%
\AtEndOfClass{\renewcommand{\titlepagestyle}{plain}}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}}
\ExecuteOptions{%
onehalfspacing,titlepagenumber=on,university,PhD,declaration=on,a4paper,12pt,oneside,DIC=off}
\ProcessOptions\relax
\newcommand*{\supervisor}[1]{\gdef\@supervisor{#1}}
\newcommand*{\college}[1]{\gdef\@college{#1}}
\newcommand*{\department}[1]{\gdef\@department{#1}}
\newcommand*{\field}[1]{\gdef\@field{#1}}
\newcommand*{\declaration}[1]{\gdef\@declaration{#1}}
\LoadClass{scrreprt}
\RequirePackage{setspace}
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% MARGINS
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
\RequirePackage[left=4.0cm,right=2.0cm,top=3.50cm,bottom=3.0cm]%
{geometry}
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
\setkomafont{sectioning}{\rmfamily\bfseries}
\renewcommand*{\maketitle}{
\begin{titlepage}
\par
\clearpage
\thispagestyle{\titlepagestyle}
\noindent\begin{minipage}[t]{\textwidth}
\centering\large
Astronomy Unit
\ifx\@department\@empty \else \par School of \@department\fi
\@college
\ifx\@university\@empty \else \@university\par\fi
\end{minipage}
\null\vfill
\begin{center}
{\titlefont\huge \@title\par}
\vskip 3em
{\Large \lineskip 0.75em
\begin{tabular}[t]{c}
\@author
\end{tabular}\par}
\vskip 1.5em
% {\Large \@date \par}
\vskip \z@ \@plus3fill
\ifx\@supervisor\@empty \else
{\Large Supervised by \@supervisor \par}
\fi
\vskip 3em
\end{center}\par
\noindent\begin{minipage}[b]{\textwidth}
\centering
Submitted in part fulfilment of the requirements for the degree of\\
\@degree\ in \ifx\empty\@field{\@department}\else{\@field}\fi\ of
\ifx\empty\@university{\@college}\else{the \@university}\fi
\ifx\@diploma\@empty\else{\\and the \@diploma}\fi
\end{minipage}
\ifx\@declaration\@empty\else{
\cleardoublepage
\chapter*{Declaration}
\thispagestyle{plain}
\@declaration
\par\vspace{3cm}
\hfill\@author
\cleardoublepage
}\fi
\end{titlepage}
}
\newcommand{\makededication}{
\ifx\@dedication\@empty \else
\clearpage
\thispagestyle{plain}
\null\vfill
{\centering \Large \@dedication \par}
\vskip \z@ \@plus3fill
\cleardoublepage
\fi
}
\renewenvironment{abstract}{%
\chapter*{Abstract}\thispagestyle{plain}}{\cleardoublepage}
\endinput
%%
%% End of file `icldt.cls'.