-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate.cls
More file actions
135 lines (114 loc) · 4.27 KB
/
template.cls
File metadata and controls
135 lines (114 loc) · 4.27 KB
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
\NeedsTeXFormat{LaTeX2e} \ProvidesClass{template}
\RequirePackage{setspace}
\LoadClass[11pt, a4paper]{report}
\oddsidemargin 14.6truemm \evensidemargin 0truemm
\marginparwidth 40pt \marginparsep 10pt
\topmargin 0truemm \headsep 10truemm
\textheight 224truemm \textwidth 145truemm
\brokenpenalty=10000
\onehalfspacing
\def\degreetitle#1{\gdef\@degreetitle{#1}}
\def\rpttype#1{\gdef\@rpttype{#1}}
\def\principaladviser#1{\gdef\@principaladviser{#1}}
\def\advis@r{Advisor} % default spelling---we are English!
\def\principaladvisor#1{\gdef\@principaladviser{#1}\gdef\advis@r{Advisor}}
\def\firstreader#1{\gdef\@firstreader{#1}}
\def\secondreader#1{\gdef\@secondreader{#1}}
\def\submitdate#1{\gdef\@submitdate{#1}}
\def\copyrightyear#1{\gdef\@copyrightyear{#1}}
\def\@title{}\def\@author{}\def\@dept{School of Computing, Engineering and Technology}
\def\@principaladviser{}\def\@firstreader{}\def\@secondreader{}
\def\@submitdate{\ifcase\the\month\or
January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or December\fi
\space \number\the\year}
\newif\ifcopyright \newif\iffigurespage \newif\iftablespage \newif\ifalgorithmspage \newif\ifsigpage \copyrightfalse \figurespagetrue \tablespagetrue \algorithmspagefalse \sigpagefalse
\def\titlep{%
\thispagestyle{empty}%
\null\vskip1in%
\begin{center}
\large\sc\expandafter{\@title}\\
\vskip 0.25in
{\Large \@author}
\vskip 0.45in
\includegraphics[height=40mm]{rgulogo.jpg}
\vfill
\vskip 0.25in
\end{center}
\begin{center}
\sc A report submitted as part of the requirements for the degree\\ of
\@degreetitle
\\at the School of Computing, Engineering and Technology \\Robert Gordon University\\ Aberdeen, Scotland
\end{center}
\vfill
\vskip 0.5in
\begin{center}
\@submitdate
\end{center}
\vfill
\begin{center}
\normalfont
Supervisor \@principaladviser\\
\end{center}\vskip.5in\newpage}
\def\declpage{%
\prefacesection{Declaration}
\begin{center}
\begin{minipage}{4.5in}
\parindent=0pt
I confirm that the work contained in this \@rpttype \space project report has been composed solely by myself and has not been accepted in any previous application for a degree. All sources of information have been specifically acknowledged and all verbatim extracts are distinguished by quotation marks. \textcolor{red}{The declaration can be found inside template.cls. Make sure you put your name and adjust the date in the dotted lines!}
\par
\vskip 2in
Signed .....XXX XXX..... \hspace{0.2 in} Date .....01/01/1970.....\\
\hspace*{0.4 in} \@author
\par
\end{minipage}%
\end{center}%
\vfill}
\def\beforeabstract{
\pagenumbering{roman}
\pagestyle{plain}
\titlep
\ifsigpage\signaturepage\fi
\def\afterabstract{
%% \newpage
\declpage
\tableofcontents
\newpage
\iftablespage
\addvspace{10pt}
\listoftables
\newpage
\fi
\iffigurespage
\addvspace{10pt}
\listoffigures
\newpage
\fi
\ifalgorithmspage
\addvspace{10pt}
\listofalgorithms
\newpage
\fi}
}
\def\prefacesection#1{%
\chapter*{#1}
\addcontentsline{toc}{chapter}{#1}}
\def\afterpreface{\newpage
\pagestyle{plain}}
\pagestyle{plain}
\def\thebibliography#1{\chapter*{\bibname\@mkboth
{\uppercase{\bibname}}{\uppercase{\bibname}}}%
\addcontentsline{toc}{chapter}{\bibname}%
\list
{\@biblabel{\arabic{enumiv}}}{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumiv}%
\let\p@enumiv\@empty
\def\theenumiv{\arabic{enumiv}}}%
\def\newblock{\hskip .11em plus.33em minus.07em}%
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=\@m}
\def\endthebibliography{%
\def\@noitemerr{\@warning{Empty `thebibliography' environment}}%
\endlist}