-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphdthesis.cls
308 lines (257 loc) · 7.58 KB
/
phdthesis.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
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{phdthesis}[2015/01/01 v0.1 (Ing. Milos Kozak - [email protected])]
\newif\if@literature \@literaturefalse
\DeclareOption{literature}{\@literaturetrue}
\newif\if@statement \@statementfalse
\DeclareOption{statement}{\@statementtrue}
\newif\if@print \@printfalse
\DeclareOption{print}{\@printtrue}
\ProcessOptions \relax
% Volba rozlozeni stranky na zaklade zda se jedna o tezi nebo plnou disertaci
\if@statement
\LoadClass[twoside,a4paper,11pt]{article}
\RequirePackage[margin=2cm, bottom=2.5cm, top=2cm, right=2cm]{geometry}
% Fancy header for main text
%\RequirePackage{fancyhdr}
% Delimiter of front ad main text
\newcommand{\mainmatter}{
\newpage
\pagenumbering{arabic}
%\pagestyle{fancy}
}
\else
\LoadClass[12pt, oneside, a4paper]{book}
\RequirePackage[margin=2cm, left=3cm, top=3cm]{geometry}
\fi
\RequirePackage{graphicx}
% Informace o skole - mozno menit dynamicky skrze optiony
\newcommand\University{Czech Technical University in Prague}
\newcommand\Faculty{Faculty of Electrical Engineering}
\newcommand\Department{Department of Telecommunication Engineering}
\newcommand\PhDProgram{Electrical Engineering and Information Technology}
\newcommand\PhDBranch{Telecommunication Engineering}
% Makra pro definici vedouciho prace
\def \@supervisor{Unknown}
\newcommand{\supervisor}[1]{ \def \@supervisor{#1} }
\def \@authorAffiliation{Unknown}
\newcommand{\authorAffiliation}[1]{ \def \@authorAffiliation{#1} }
\def \@supervisorAffiliation{Unknown}
\newcommand{\supervisorAffiliation}[1]{ \def \@supervisorAffiliation{#1} }
\def \@placeyear{Prague, June 2015}
\newcommand{\placeyear}[1]{ \def \@placeyear{#1} }
% Makra pro rychlejsi reference
\newcommand{\figref}[1]{\figurename~\ref{#1}}
\newcommand{\tabref}[1]{Table \ref{#1}}
\newcommand{\secref}[1]{Section \ref{#1}}
% Uvodni stranka
\renewcommand\maketitle{\par
% Volba stylu uvodni stranky
\if@literature
\@literaturetitle
\else
\if@statement
\@statementtitle
\else
\@fullthesis
\fi
\fi
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@title\@empty
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
}
% Predni stranka pro vlastni disertacni praci
\def\@fullthesis{%
\frontmatter
\begin{center}%
\large\sffamily
\University\\
\Faculty\\
\Department\\
\vglue 20mm
\includegraphics[width=50mm]{images/LogoCVUT}
\vglue 30mm
{\Large\bfseries\@title}\\
\vglue 5mm
{\large\sffamily Disertation thesis} \\
\vglue 10mm
{\large\emph{\@author}}\\
\vglue 30mm
{\large
{Ph.D. programme: \PhDProgram} \\
{Branch of study: \PhDBranch} \\
{Supervisor: \@supervisor} \\
}
\vglue 30mm
\@placeyear \\
\end{center}%
\thispagestyle{empty}
% Strana 2
\newpage
\rule{0pt}{0pt}
\vfill
\begin{description}
\item[Thesis Supervisor:] ~\\
\@supervisor\\
\@supervisorAffiliation
\end{description}
Copyright {\copyright} {\@date} {\@author}
% Page with declaration
\chapter*{Declaration}
I hereby declare I have written this doctoral thesis independently and quoted all the sources of information used in accordance with methodological instructions on ethical principles for writing an academic thesis. Moreover, I state that this thesis has neither been submitted nor accepted for any other degree.
\vspace{5mm}
\noindent
In \@placeyear
\vspace{10mm}
\hfill\parbox[t]{8cm}{%
\centering
............................................ \\
\@author \\
}
}
% Predni stranka pro tezi
\def\@statementtitle{%
\pagenumbering{Roman}
\begin{center}%
{\LARGE\sffamily
\University\\
\Faculty\\
\Department\\
\vglue 50mm
\includegraphics[width=130mm]{images/LogoCVUT}
\vfill
{\LARGE\bfseries DISSERTATION THESIS STATEMENT}
}
\end{center}%
\thispagestyle{empty}
% Strana 2
\newpage
\if@print
~ \thispagestyle{empty}
\newpage
\fi
\begin{center}
{\Large\sffamily
\University\\
\Faculty\\
\Department
\vfill
{\sffamily\bfseries\@title}\\
\bigskip
{by}\\
\bigskip
{\large\emph{\@author}}\\
\vfill
{\large
Ph.D. Programme: \PhDProgram \\
Branch of study: \PhDBranch} \\
\vglue 1cm
\ifx\PhDSpecialization\undefined\relax\else{Specialization: \PhDSpecialization}\fi
\vfill
Dissertation thesis statement for obtaining \\ the academic title of ``Doctor'' abbreviated to ``Ph.D.''
\vglue 1cm
\@placeyear
}
\end{center}
\thispagestyle{empty}
\frontmatter
\newpage
% Strana 3 - autori a vedouci
\pagenumbering{roman}
{\small
\noindent The dissertation thesis was written during full-time, part-time doctoral study at the \Department, \Faculty of the Czech Technical University in Prague.
\vglue .5cm
\noindent\hbox to 3cm{\hbox{Ph.D. Candidate:}\hss}\parbox[t]{8cm}{
\textbf{\@author} \\
\@authorAffiliation}
\vglue .5cm
\noindent\hbox to 3cm{\hbox{Supervisor:}\hss}\parbox[t]{8cm}{%
\textbf{\@supervisor} \\
\@supervisorAffiliation}
\vglue 1cm
\noindent\hbox to 3cm{\hbox{Reviewers:}\hss}\parbox[t]{8cm}{%
\vrule width 5cm height 0pt depth 0.5pt\\[.5cm]
\vrule width 5cm height 0pt depth 0.5pt\\[.5cm]
\vrule width 5cm height 0pt depth 0.5pt
}
\bigskip\bigskip
\noindent The dissertation thesis statement was distributed on ................
\bigskip
\noindent The defence of the dissertation thesis will be held before the Committee for the presentation and defence of the dissertation thesis in the doctoral degree study program \PhDBranch
\ifx\PhDSpecialization\undefined\relax\else{in the \PhDSpecialization{} specialization}\fi\\
on ............................ at .......................... in the meeting room No. ............... .
\bigskip
\noindent Those interested may get acquainted with the doctoral thesis concerned at the Dean Office of the Faculty of Electrical Engineering of the CTU in Prague, at the Department for Science and Research, Technick{\' a}~2, Praha~6.
\vfill
\begin{center}
\bigskip
\bigskip
............................................................................\\
\medskip
Chairman of the Board for the Defence of the Doctoral Thesis in the branch \\ of study \PhDBranch
\\
\Department\\
\Faculty\\
\University\\
\Address
\end{center}}
\newpage
}
\def\@literaturetitle{%
\begin{center}%
{\Large\sffamily
\University\\
\Faculty\\
\Department\\
\vglue 30mm
\includegraphics[width=50mm]{images/LogoCVUT}
\vglue 20mm
{\Large\bfseries LIST OF PERSONAL PUBLICATIONS}
\vglue 30mm
\textit{\@author}
\vglue 10mm
\@placeyear
\vfill
{\footnotesize All the provided information are based on VVVS listed on\currenttime~\today}
}
\end{center}%
\thispagestyle{empty}
% Strana 2
\newpage
\pagenumbering{arabic}
}
% Biblatex rutina pro pohodlne vkladani celych citaci do sekce Autorova citace
\RequirePackage[style=ieee,backend=bibtex]{biblatex}
\DeclareBibliographyCategory{fullcited}
\newcommand{\bibentry}[1]{\fullcite{#1}\addtocategory{fullcited}{#1}}
%% Par zakladnich veci
% Pro pridavani polozek do TOC
\RequirePackage[nottoc]{tocbibind}
% Hrani si s radkovanim
\RequirePackage{setspace}
% Odkazy na reference, udelano tak, aby odkazy vypadaly jako bezny text, jen je mozne na ne kliknout
\RequirePackage{xcolor}
\RequirePackage[pdftex]{hyperref}
\hypersetup{
colorlinks = true,
citecolor = black,
linkcolor = black,
urlcolor = black,
}
% Zapsani metadat do PDF souboru
\makeatletter
\AtBeginDocument{
\hypersetup{
pdftitle = {\@title},
pdfauthor = {\@author},
pdfsubject = {Dissertation thesis},
}
}
\makeatother