summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/uowthesistitlepage/uowthesistitlepage.sty
blob: 5bb47f00492e85c2c475ad9c8ce9f76c36b159b5 (plain)
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
%% This is file `uowthesistitlepage.sty',
%% 2014-01-07 (cc) tmgriffiths Version 2.0
%%
%% Copyright (CC BY-NC-SA 3.0 AU) 2013 by T. M. Griffiths
%% under the creative commons licence, attribution, non-comercial, share alike
%% http://creativecommons.org/licenses/by-nc-sa/3.0/au/ 
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License version 1.3c
%% http://www.latex-project.org/lppl/lppl-1-3c.txt
%%
%%--------------------------------------------------------------------------------
%% This Package redefines the \maketitle Command for LaTeX documents and generates
%% a title page as close as possible to the current UOW HDR word thesis-template.        
%% Use this package with the book class to typeset your thesis. 
%% The UOW default dimensions can be implimented with:
%% \usepackage{geometry}
%%     \geometry{a4paper,inner=4.0cm, outer=2cm, top=3cm, bottom=2cm}               
%%                    
%% Created by Thomas M. Griffiths (tmg994[at]uowmail[dot]edu[dot]au) 2013-06-17 
%% Version 2.0 2014-01-07 tmgriffiths       
%%--------------------------------------------------------------------------------

%% Basic usage overview
%
% \usepackage{uowthesistitlepage}
%
% \begin{document}
%
% Title page info and usage
%
% Standard fields of \maketitle
% \title{A Pretty Swish Title} 
% \author{Average J. Blow}
%   % If you use the hyperref package you can add a mailto link, so that clicking on your name opens an email to you.
% 	
% The new fields from the \maketitle renewal (see code below).
% \degree{That Degree You've Been Studying} 
%   % Write it in full: e.g. Bachelor of Science Medicinal Chemistry Advanced Honours
% \school{Your School} 
%   % e.g Chemistry
% \supervisor{supervisor 1, supervisor 2 \& supervisor 3}
%   % A list of your supervisors, can be turned off with the nosupervisor package option in the preamble 
%   % or switched to multiple (more thn one) with the package option multiplesupervisors
%
% Implimented in version 1.1 is the \declaration Command. 
% This typesets the declaration (below) that this thesis is your own work, required in the front of each PhD Thesis.
%
% Declaration
%
% I, <Student’s Full Name>, declare that this thesis, submitted in partial fulfilment of the requirements for the award of 
% <Your Degree>, of the School of <Your School>, University of Wollongong, is wholly my own work unless otherwise referenced
% or acknowledged. The document has not been submitted for qualifications at any other academic institution.
%
%
% ------------------------------------
%
% <Student’s Full Name>, July 1, 2013
%

%%---------------------------------------------------------------------%%
% Package code   														%
%%---------------------------------------------------------------------%%

\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{uowthesistitlepage}[2014/01/07 V 2.0 (cc) tmgriffiths]

\RequirePackage{geometry} 
\RequirePackage{setspace} % for the doublespacing
\RequirePackage{etoolbox} % for the supervisor counting trickery
\RequirePackage{graphicx} 
    \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

%% If statements
\newif\ifphd
\newif\ifhonours
\newif\ifmasters
\newif\ifpartial
\newif\ifnosupervisor
\newif\ifmultiplesupervisors
\newif\ifcosupervisor
\newif\ifnocosupervisor
\newif\ifmultiplecosupervisors
\newif\ifsubject
\newif\ifschool
\newif\ifreport
\newif\ifhorizontal
    
%% Declareing the package options    
% The default wording for the thesis requirements for an honours thesis.
\DeclareOption{honours} 
{
\phdfalse
\mastersfalse
\honourstrue 
\partialtrue 
\subjectfalse
}

\DeclareOption{honors} % for those less honourable of you who've shunned the u.
{
\phdfalse 
\mastersfalse
\honourstrue
\partialtrue 
\subjectfalse
}

% The default wording for the thesis requirements for a masters by coursework thesis.
\DeclareOption{mastersbycoursework} 
{
\phdfalse
\masterstrue
\honoursfalse 
\partialtrue 
\subjectfalse
}

% The default wording for the thesis requirements for a masters by research dissertaion.
\DeclareOption{mastersbyresearch} 
{
\phdfalse 
\masterstrue
\honoursfalse
\partialfalse 
\subjectfalse
}

% The default wording for the thesis requirements for a PhD thesis.
\DeclareOption{phd}
{
\phdtrue
\mastersfalse
\honoursfalse
\partialfalse
\subjectfalse
\def\@degree{Doctor of Philosophy}
}

% The default wording for the thesis requirements for a PhD thesis, with option capitalisation.
\DeclareOption{PhD}
{
\phdtrue
\mastersfalse
\honoursfalse
\partialfalse
\subjectfalse
\reportfalse
\def\@degree{Doctor of Philosophy}
}

%for theses or reports that are for an individual subject, not for the award of a degree
\DeclareOption{partialsubject}
{
\phdfalse
\mastersfalse
\honoursfalse
\reportfalse  
\partialtrue 
\subjecttrue 
}

\DeclareOption{fullsubject}
{
\phdfalse
\mastersfalse
\honoursfalse 
\subjecttrue
\reportfalse 
\partialfalse
}

\DeclareOption{report}
{
\phdfalse
\mastersfalse
\honoursfalse 
\subjecttrue
\reporttrue 
\partialtrue 
\nosupervisortrue
}

% For all other thesis types. 
\DeclareOption{other} 
{
\phdfalse
\mastersfalse
\honoursfalse 
\partialtrue 
\subjectfalse
\reportfalse
\nosupervisortrue
}

% In case you belong to an institute or some other affiliation (such as AIIM) instead of a school
\DeclareOption{noschool} 
{
\def\@schooltitle{} 
\def\@school{}
}

% Determining the pluralisation (or absence) of 'supervisor' acording to the number of supervisors
\DeclareOption{nosupervisor} % also achievable by using \supervisor[0]{}
{
\nosupervisortrue
\cosupervisorfalse 
\multiplesupervisorsfalse
}

\DeclareOption{cosupervisor}
{
\nocosupervisorfalse
\cosupervisortrue
}

\DeclareOption{horizontal}
{
\horizontaltrue
}

% These two options have been left in for legacy purposes, but are no longer needed as the \supervisor Command has been modifed to have an optional field that specifies the number of supervisors
\DeclareOption{onesupervisor}
{
\nosupervisorfalse 
\multiplesupervisorsfalse
}

\DeclareOption{multiplesupervisors}
{
\nosupervisorfalse 
\multiplesupervisorstrue
}

%% Defining the defualt values of the macros within \maketitle
\makeatletter 
% His \makeatother friend is at the end of the document, using multiple "make-ats" I got all sorts of errors

% Fields already in the \maketitle Command
\def\@title
{
\textless{}Title of Your \ifreport Report\else \ifsubject Dissertation\else Thesis\fi\fi\textgreater
}

\def\@author
{
\textless{}Student's Full Name\textgreater
}

\def\@date
{
\textless{}Month Year\textgreater
}
    
% These are the new fields not currently in the standard \maketitle macro.
% \supervisor[]{}
% Dummy text
\def\@supervisor
{
\textless{}Your Supervisor(s)\textgreater
}
% Command
\newcommand{\supervisor}[2][1]
{
\gdef\@supervisor{#2}
\ifnumless{#1}{1}
    {% true
    \nosupervisortrue
    \multiplesupervisorsfalse
    }
    {% false
    }
\ifnumequal{#1}{1}
    {% true
    \nosupervisorfalse 
    \multiplesupervisorsfalse
    }
    {% false
    }
\ifnumgreater{#1}{1}
    {% true
    \nosupervisorfalse 
    \multiplesupervisorstrue
    }
    {% false
    }
}

% \cosupervisor[]{}
% Dummy text
\def\@cosupervisor
{
\textless{}Your Co-supervisor(s)\textgreater
}
% Command
\newcommand{\cosupervisor}[2][1]
{
\gdef\@cosupervisor{#2}
\ifnumless{#1}{1}
    {% true
    \cosupervisorfalse
    \nocosupervisortrue
    \multiplecosupervisorsfalse
    }
    {% false
    }
\ifnumequal{#1}{1}
    {% true
    \cosupervisortrue
    \nocosupervisorfalse 
    \multiplecosupervisorsfalse
    }
    {% false
    }
\ifnumgreater{#1}{1}
    {% true
    \cosupervisortrue
    \nocosupervisorfalse 
    \multiplecosupervisorstrue
    }
    {% false
    }
}

% \degree{}
% Dummy text
\def\@degree
{
\textless{}Your Degree\textgreater
} 
% Command
\newcommand{\degree}[1]
{
\gdef\@degree{#1}
}

% \class{}
% Dummy text    
\def\@class{\textless{}Your Class\textgreater}
% Command 
\newcommand{\class}[1]
{
\gdef\@class{#1}
} 

% Dummy text     
\def\@school
{
\textless{}Your School\textgreater
}
% Command 
\newcommand{\school}[1]
{
\gdef\@school{#1}
}

% Internal command for the wording of the title page.     
\def\@graphic
{
\includegraphics[height=\crestheight]{uow_logo}
} 
% Command
% Image must be in the working directory for this Command to work
\newcommand{\graphic}[1]
{
\gdef\@graphic{#1}
} 

% Internal command for the wording of the title page.    
\def\@requirement
{
\ifreport This report submitted as part of the assessment schedule for: \else This \ifsubject dissertation \else thesis \fi is presented as \ifpartial part of the requirements \else required \fi \ifsubject for completion of: \else for the conferral of the degree:\fi
\fi
}

% Internal command for the wording of the title page. 
\def\@schooltitle
{
School of
}

%%
%% Lengths
%% Calculate the size of the gaps between fields relative to the paper height incase A4 is not used.
%% The title page should cope with up to A5, but document fontsize  does need to be taken down to 10 pt.
%% In the future I hope to implement something that changes the font size according to paper size. 
\newlength{\biggap}
    \setlength{\biggap}{0.10\paperheight} %for A4 paper this is approximately 29 mm.

\newlength{\midgap}
    \setlength{\midgap}{0.044\paperheight} %for A4 paper this is approximately 13 mm.

\newlength{\smallgap}
    \setlength{\smallgap}{0.024\paperheight} %for A4 paper this is approximately 7 mm.

\newlength{\vsmallgap}
    \setlength{\vsmallgap}{0.012\paperheight} %for A4 paper this is approximately 3.5 mm.

\newlength{\crestheight}
    \setlength{\crestheight}{0.068\paperheight} %for A4 paper this is approximately 20 mm.

\newlength{\innersidemargin}
    \setlength{\innersidemargin}{0.135\paperheight} %for A4 paper this is approximately 40 mm.

\newlength{\outersidemargin}
    \setlength{\outersidemargin}{0.068\paperheight} %for A4 paper this is approximately 20 mm.
    
\newlength{\topsidemargin}
    \setlength{\topsidemargin}{\biggap} %for A4 paper this is approximately 29 mm.
    
\newlength{\bottomsidemargin}
    \setlength{\bottomsidemargin}{\outersidemargin} %for A4 paper this is approximately 20 mm.
    
    

%%
%% Title page
%%
%% Here we actually set up the title page.
\renewcommand{\maketitle}%
{
\thispagestyle{empty}
{\centering
{\onehalfspacing
\newgeometry{inner=\innersidemargin,outer=\outersidemargin,top=\topsidemargin,bottom=\bottomsidemargin}
\ifsubject
    {
    }\\ 
\else
    {
    \@graphic\\
    } 
\fi
\textbf
    {
    \vspace{\biggap}\\
    {\Large\@title}\\
    \vspace{\biggap}
    }
\@author\\
\vspace{\smallgap}
\ifhorizontal
    {
    \ifcosupervisor
        {
        \begin{tabular}{cc}
        \ifmultiplesupervisors 
            {
            Supervisors:
            } 
        \else 
            {
            Supervisor: 
            }
        \fi
        &
        \ifmultiplecosupervisors 
            {
            Co-supervisors:
            } 
        \else 
            {
            Co-supervisor: 
            }\\
        \fi
        \@supervisor
        &
        \@cosupervisor
        \end{tabular}
        }\\
    \else 
        {
        \ifnosupervisor
            { 
            } 
        \else
            {
            \ifmultiplesupervisors 
                {
                Supervisors:\\ \@supervisor
                }\\ 
            \else
                {
                Supervisor:\\ \@supervisor
                }\\ 
            \fi
            } 
        \fi
        }
    \fi
    }
\else
    {
    \ifnosupervisor
        { 
        } 
    \else
        {
        \ifmultiplesupervisors 
            {
            Supervisors:\\ \@supervisor\\
            } 
        \else
            {
            Supervisor:\\ \@supervisor\\
            } 
        \fi
        } 
    \fi
    \ifcosupervisor
        {
        \ifmultiplecosupervisors 
            {
            Co-supervisors:\\ \@cosupervisor\\
            }
        \else
            {
            Co-supervisor:\\ \@cosupervisor\\
            }
        \fi
        }
    \else
        {
        } 
    \fi
    }
\fi
\vspace{\biggap}
\textit{
\@requirement
}\\
\ifsubject
    {
    \vspace{\smallgap}
    \@class}\\
    \vspace*{\fill}
\else
    {
    \vspace{\smallgap}
    \@degree\\
    \vspace*{\fill}
    }
\fi
The University of Wollongong\par
\ifschool
    {
    \noindent\@schooltitle{}\@school\\
    }
\else
    {
    }
\fi
\vspace{\smallgap}
\@date\vspace{\smallgap} 
\restoregeometry       
\clearpage{\pagestyle{empty}\cleardoublepage}
}
}
}

%%
%% Declaration page
%%
%% This is a new Command (\declaration) that if you desire you can use to print the standard thesis submission declaration.

\newcommand{\declaration}
{
\thispagestyle{empty}
\noindent {\large \textbf{Declaration}}\\

{\itshape\noindent I, \@author, declare that this \ifreport report \else \ifsubject dissertation \else thesis \fi \fi submitted in \ifpartial partial \fi fulfilment of the requirements for \ifsubject the completion of \@class{}, \else the conferral of the degree \@degree{}, from the University of Wollongong, \fi is wholly my own work unless otherwise referenced or acknowledged. This document has not been submitted for qualifications at any other academic institution.\par
\vspace{\biggap}
\noindent\rule{0.4\textwidth}{0.5pt}
\vspace{1ex}\\
\textbf{\@author}\\
\today
}

\clearpage{\pagestyle{empty}\cleardoublepage}
\makeatother
}


%% Execute the default options, print supervisor field and requirements for an honours thesis.
\ExecuteOptions{honours}
\schooltrue
\ProcessOptions\relax

\endinput
% Quidquid latine dictum sit altum videtur.

% Depreciated/old snippets that I might need someday
%\def\@university{No university} 
%    \newcommand{\university}[1]{\gdef\@university{#1}} % inactive with the new thesis theme (tmgriffiths 2013-05-29)