-
Notifications
You must be signed in to change notification settings - Fork 1
/
iibproject.cls
112 lines (106 loc) · 3.16 KB
/
iibproject.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
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
\ProvidesClass{IIBproject}[2000/06/05 - declaration updated. Bugs to tpl@eng]
\newif\if@cuedwide
\@cuedwidefalse
\DeclareOption{a5paper}
{\ClassError{IIBproject}{Option `a5paper' not supported}{}}
\DeclareOption{b5paper}
{\ClassError{IIBproject}{Option `b5paper' not supported}{}}
\DeclareOption{twocolumn}%
{\ClassError{IIBproject}{Option `twocolumn' not supported}{}}
\DeclareOption{titlepage}%
{\ClassError{IIBproject}{Option `titlepage' not supported}{}}
\DeclareOption{wide}
{\@cuedwidetrue\typeout{Wide option selected}}
\PassOptionsToClass{12pt,a4paper}{article}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions
\LoadClass{article}
\if@cuedwide
\oddsidemargin=0pt \evensidemargin=0pt \topmargin=0pt \textwidth=421pt \textheight=612pt
\fi
\renewcommand{\abstractname}{Summary}
\def\projectgroup#1{\gdef\@projectgroup{#1}\gdef\theprojectgroup{#1}}
\if@titlepage
\renewcommand\maketitle{\begin{titlepage}%
\let\footnotesize\small
\let\footnoterule\relax
\null\vfil
\vskip 7.5cm % 60\p@
\begin{center}%
{\LARGE \@title \par}%
\vskip 3em%
{\large
\lineskip .75em%
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par}%
\vskip 1.5em%
{\large \@date \par}% % Set date in \large size.
\end{center}\par
\@thanks
\vfil\null
\end{titlepage}%
\setcounter{footnote}{0}%
\let\thanks\relax\let\maketitle\relax
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
\else
\renewcommand\maketitle{\par
\begingroup
\renewcommand\thefootnote{\@fnsymbol\c@footnote}%
\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
\long\def\@makefntext##1{\parindent 1em\noindent
\hb@[email protected]{%
\hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
\if@twocolumn
\ifnum \col@number=\@ne
\@maketitle
\else
\twocolumn[\@maketitle]%
\fi
\else
\newpage
\global\@topnum\z@ % Prevents figures from going at top of page.
\@maketitle
\fi
\thispagestyle{plain}\@thanks % tpl - remove page number
\endgroup
\setcounter{footnote}{0}%
\let\thanks\relax
\let\maketitle\relax\let\@maketitle\relax
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
\def\@maketitle{%
\newpage
\null
\vskip 7cm%
\begin{center}%
{\Large \@title \par}%
{by\par}
{\large
\lineskip .5em%
\begin{tabular}[t]{c}%
\@author \\
\normalsize in collaboration with Alan Douglass
\end{tabular}\par}%
\vskip 2mm
Fourth-year undergraduate project in\\Group \@projectgroup, 2010/2011%
\end{center}%
\par
%\vskip 6cm%
%\noindent I hereby declare that, except where specifically indicated,
%the work submitted herein is my own original work.
%\vskip 1cm %or some other suitable small distance
%\begin{center}
%Signed: \underline{\hspace{6cm}} Date: \underline{\hspace{3cm}}
%\end{center}
\begin{table}[b]
\begin{tabular}{l}
I hereby declare that, except where specifically indicated, the work\\
submitted herein is my own original work.\\
\\
Signed: \underline{\hspace{6cm}} Date: \underline{\hspace{3cm}}
\end{tabular}
\end{table}
\newpage}
\fi
\endinput