-
Notifications
You must be signed in to change notification settings - Fork 9
/
USN-PhD.cls
49 lines (42 loc) · 1.35 KB
/
USN-PhD.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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% USN-PhD.cls %%
%% LaTeX-class for writing theses %%
%% %%
%% (c) Dietmar Winkler (me.dwe.no) %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ---Identification----
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{USN-PhD}[2024/08/23 Template class for PhD theses]
% --- definitions of options ---
% All other options are passed on to the book class
\DeclareOption*{%
\typeout{Option \CurrentOption\space is passed to package USN-base!}
\PassOptionsToClass{\CurrentOption}{USN-base}
}%
% --- execution of options ---
\ProcessOptions* %% process the options in calling order
% --- load other classes
\LoadClass{USN-base} %% we reuse the USN-base class
% --- useful commands
\newcommand{\mysubject}{Technology}
\newcommand{\USNtitlepage}{%
\subject{\mysubject}
\title{\mytitle}
\subtitle{\normalsize
Thesis submitted to the University of South-Eastern Norway\\
for the degree of philosophiae doctor~(PhD)}
\author{\myauthor}
\date{}
% --- pdf document settings ---
\hypersetup{%
pdftitle = {\mytitle},%
pdfsubject = {\mysubject},%
pdfauthor = {\myauthor},%
pdfkeywords = {\mykeywords}
}%
\pdfbookmark[0]{\@title}{title} %% set the correct PDF bookmark
\maketitle%
%
\cleardoubleemptypage %% fillpage without page number
%
}