-
Notifications
You must be signed in to change notification settings - Fork 0
/
baththesis.sty
134 lines (105 loc) · 4.09 KB
/
baththesis.sty
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
% This style option is designed to work with the report document
% style of LaTeX version 2.09. Use
% \documentstyle[mitthesis]{report}
% Adapted by Philip Milne from Stephen Gildea's mitthesis style file.
%
% Later hacked by FEB to reflect updated University regulations and
% to ensure compatibility with LaTeX2e
%
% Updated on 19/01/05 by PJH to reflect updated university regulations.
%
% Updated on 01/09/07 by MAF to reflect updated university regulations.
%
% Updated on 11/05/22 by WMG to reflect updated university regulations.
%% Announce ourselves
\ProvidesPackage{baththesis}
%% Page layout: the regs ask for a margin of at least 40mm on the
%% binding edge (left hand margin) and at least 15mm on all other
%% margins. The following does the job
\oddsidemargin 15mm
\evensidemargin 0pt
\textwidth 5.7in
\textheight 234mm
\topmargin 0in
\headheight 0in % no header
\textheight 8.5in
\headsep \headheight
\footskip .4in
%% Setting the spaces between the lines
\RequirePackage{setspace}
%\onehalfspacing
% If you are getting two degrees, use \and between the names.
\def\degree#1{\setbox0\hbox{#1} %for side effect of setting \@degreeword
\gdef\@degree{#1}}
% \and is used inside the \degree argument to separate two degrees
\def\and{\gdef\@degreeword{degrees} \par and \par}
\def\degreemonthyear#1{\gdef\@degreemonthyear{#1}}
% input department name
\def\department#1{\gdef\@department{#1}}
\def\@standardcopyright{Attention is drawn to the fact that copyright of this thesis rests with the author.
A copy of this thesis has been supplied on condition that anyone who consults it is understood to recognise that its copyright rests with the author and that they must not copy it or use material from it except as permitted by law or with the consent of the author.}
\def\@norestriction{This thesis may be made available for consultation within the University Library and may be photocopied or lent to other libraries for the purposes of consultation.}
\def\@restriction[#1]{This thesis may not be consulted, photocopied or lent to other libraries without the permission of the author for #1 years from the date of acceptance of the thesis.}
\def\@declarepreviouswork{The material presented here for examination for the award of a higher degree by research has not been incorporated into a submission for another degree.
}
\def\@declareauthorship{I am the author of this thesis, and the work described therein was carried out by myself personally, without exception.}
\def\signature#1#2{\par\noindent#1\hspace{0.25\textwidth}\dotfill\null
{\raggedleft \mbox{#2 \hspace{1in}}\par}}
% Format for the title page
\def\maketitle{
\begin{titlepage}
\setcounter{page}{0}
\thispagestyle{empty}
\parskip 10pt% plus 1fil minus 1fil
\null\vfill
\begin{center}
\vfill
\def\baselinestretch{1.2}
{\def\baselinestretch{1.2}\Huge\bf \@title \par}
\vfill
{\huge \@author}
\vfill
{\large Thesis submitted for the degree of \@degree}
{\huge University of Bath}
{\Large \@department}
\vfill
{\Large \@degreemonthyear}
\vfill
\end{center}
% The \kern0pt pushes any depth into the height. Thanks to Richard Stone.
\par\kern 0pt\null
\end{titlepage}
}
% Licensing page format
\def\License{
\newpage\null\vfil
% Copyright and license
\begin{center}
\bf COPYRIGHT
\end{center}
\vspace{\baselineskip}
\@standardcopyright
\noindent\@norestriction
%push the rest of these objects to the bottom page
\vspace*{\fill}
% declaration of previous submission and authorship
\begin{center}
\bf DECLARATION OF ANY PREVIOUS SUBMISSION OF THE WORK
\end{center}
\vspace{\baselineskip}
\@declarepreviouswork
\begin{center}
\signature{Candidate's signature}{\@author}
\end{center}
\vspace{\baselineskip}
\begin{center}
\bf DECLARATION OF AUTHORSHIP
\end{center}
\vspace{\baselineskip}
\@declareauthorship
\begin{center}
\signature{Candidate's signature}{\@author}
\end{center}
}
% If using the report style, use - instead of . in the figure number.
\@ifundefined{thechapter}{}{\def\thefigure{\thechapter-\arabic{figure}}}