-
Notifications
You must be signed in to change notification settings - Fork 0
/
fithesis.cls
517 lines (465 loc) · 12.6 KB
/
fithesis.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
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
%%
%% This is file `fithesis.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% fithesis.dtx (with options: `class')
%%
%%
%% Copyright 1993 1994 1995 The LaTeX3 Project and any individual
%% authors listed elsewhere in this file.
%%
%% For further copyright information, and conditions for modification
%% and distribution, see the file legal.txt, and any other copyright
%% notices in this file.
%%
%% This file is part of the LaTeX2e system.
%% ----------------------------------------
%% This system is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
%%
%% IMPORTANT COPYRIGHT NOTICE:
%%
%% You are NOT ALLOWED to distribute this file alone.
%%
%% If you receive only some of these files from someone, complain!
%%
%% However, NO PERMISSION is granted to generate or to distribute a
%% modified version of this file under its original name.
%%
%% You are NOT ALLOWED to change this file.
%%
%%
%% MODIFICATION ADVICE:
%%
%% If you want to customize this file, it is best to make a copy of
%% the source file(s) from which it was produced. Use a different
%% name for your copy(ies) and modify the copy(ies); this will ensure
%% that your modifications do not get overwritten when you install a
%% new release of the standard system. You should also ensure that
%% your modified source file does not generate any modified file with
%% the same name as a standard file.
%%
%% You will also need to produce your own, suitably named, .ins file to
%% control the generation of files from your source file; this file
%% should contain your own preambles for the files it generates, not
%% those in the standard .ins files.
%%
%% The names of the source files used are shown above.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{fithesis}[2006/06/12 version 0.2.10 (FI) MU thesis class]
\ifx\clsclass\undefined
\def\clsclass{rapport3}
\fi
\LoadClass{\clsclass}
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
\DeclareOption{onecolumn}{\@twolumnfalse}
\DeclareOption{twocolumn}{\@twocolumntrue}
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\DeclareOption{final}{\setlength\overfullrule{0pt}}
\ExecuteOptions{11pt,oneside,final}
\ProcessOptions
\RequirePackage{palatino}
\def\Scrreprtcls{scrreprt}
\def\Rapport1cls{rapport1}
\def\Rapport3cls{rapport3}
\ifx\clsclass\Scrreprtcls
\newcommand*\ChapFont{\bfseries}
\newcommand*\PageFont{\bfseries}
\fi
\usepackage[latin2]{inputenc}
\setcounter{tocdepth}{4}
\input fit1\@ptsize.clo\relax
\def\ps@thesisheadings{%
\def\chaptermark##1{%
\markright{%
\ifnum\c@secnumdepth >\m@ne
\thechapter.\ %
\fi ##1}}
\let\@oddfoot\@empty
\let\@oddhead\@empty
\def\@oddhead{\vbox{\hbox to \textwidth{%
\hfil{\sc\rightmark}}\vskip 4pt\hrule}}
\if@twoside
\def\@evenhead{\vbox{\hbox to \textwidth{%
{\sc\rightmark}\hfil}\vskip 4pt\hrule}}
\else
\let\@evenhead\@oddhead
\fi
\def\@oddfoot{\hfil\PageFont\thepage}
\if@twoside
\def\@evenfoot{\PageFont\thepage\hfil}%
\else
\let\@evenfoot\@oddfoot
\fi
}
\renewcommand*\chapter{%
\if@twoside
\clearpage
\thispagestyle{empty}
\cleardoublepage
\else
\clearpage
\fi
\thispagestyle{plain}%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter}
\renewcommand*\part{%
\clearpage
\thispagestyle{empty}
\cleardoublepage
\thispagestyle{empty}%
\if@twocolumn%
\onecolumn
\@tempswatrue
\else
\@tempswafalse
\fi
\hbox{}\vfil
\secdef\@part\@spart}
\font\filogo fi-logo at 40mm
\def\logopath{loga/}
\def\facultylogo{\logopath\@thesisfaculty-logo}
\def\universityname{Masarykova univerzita}
\def\facultyname{Fakulta informatiky}
\def\@thesissubtitle{Diplomov\'{a} pr\'{a}ce}
\def\lowecasewrapper#1{\lowercase{#1}}
\def\Fi{fi}
\def\Sci{sci}
\def\Law{law}
\def\Eco{eco}
\def\Fss{fss}
\def\Med{med}
\def\Ped{ped}
\def\Phil{phil}
\def\True{true}
\def\Langcs{cs}
\def\Langsk{sk}
\def\Langen{en}
\def\@thesislang{cs}
\def\titlefont{\fontsize\@xxvpt{30}\selectfont}
\def\thesistitle#1{\gdef\@thesistitle{#1}}
\def\thesisstudent#1{\gdef\@thesisstudent{#1}}
\def\thesisyear#1{\gdef\@thesisyear{#1}}
\def\thesisplaceyear{Brno, \@thesisyear}
\def\thesissubtitle#1{\gdef\@thesissubtitle{#1}}
\def\thesisuniversity#1{\gdef\@thesisuniversity{#1}}
\def\thesislogo#1{\gdef\@thesislogo{#1}}
\def\thesisadvisor#1{\gdef\@thesisadvisor{#1}}
\def\thesisfaculty#1{\gdef\@thesisfaculty{#1}
\ifx\@thesisfaculty\Fi
\ifx\@thesislang\Langen
\def\facultyname{Faculty of Informatics}
\def\universityname{Masaryk University}
\else \def\facultyname{Fakulta informatiky}
\fi
\else \ifx\@thesisfaculty\Sci
\ifx\@thesislang\Langen
\def\facultyname{Faculty of Science}
\def\universityname{Masaryk University}
\else \def\facultyname{P\v{r}\'{i}rodov\v{e}deck\'{a} fakulta}
\fi
\else \ifx\@thesisfaculty\Law
\ifx\@thesislang\Langen
\def\facultyname{Faculty of Law}
\def\universityname{Masaryk University}
\else \def\facultyname{Pr\'{a}vnick\'{a} fakulta}
\fi
\else \ifx\@thesisfaculty\Eco
\ifx\@thesislang\Langen
\def\facultyname{Faculty of Economics and Administration}
\def\universityname{Masaryk University}
\else \def\facultyname{Ekonomicko-spr\'{a}vn\'{i} fakulta}
\fi
\else \ifx\@thesisfaculty\Fss
\ifx\@thesislang\Langen
\def\facultyname{Faculty of Social Studies}
\def\universityname{Masaryk University}
\else \def\facultyname{Fakulta soci\'{a}ln\'{i}ch studi\'{i}}
\fi
\else \ifx\@thesisfaculty\Med
\ifx\@thesislang\Langen
\def\facultyname{Faculty of Medicine}
\def\universityname{Masaryk University}
\else \def\facultyname{L\'{e}ka\v{r}sk\'{a} fakulta}
\fi
\else \ifx\@thesisfaculty\Ped
\ifx\@thesislang\Langen
\def\facultyname{Faculty of Education}
\def\universityname{Masaryk University}
\else \def\facultyname{Pedagogick\'{a} fakulta}
\fi
\else \ifx\@thesisfaculty\Phil
\ifx\@thesislang\Langen
\def\facultyname{Faculty of Arts}
\def\universityname{Masaryk University}
\else \def\facultyname{Filozofick\'{a} fakulta}
\fi
\else \ifx\@thesisfaculty\Fsps
\ifx\@thesislang\Langen
\def\facultyname{Faculty of Sports Studies}
\def\universityname{Masaryk University}
\else \def\facultyname{Fakulta sportovn\'{i}ch studi\'{i}}
\fi
\else
\def\facultyname{\@thesisfaculty}
\def\universityname{\@thesisuniversity}
\def\facultylogo{\@thesislogo}
\def\thesisplaceyear{\@thesisyear}
\fi
\fi
\fi
\fi
\fi
\fi
\fi
\fi
\fi
}
\newif\if@restonecol
\def\alwayssingle{%
\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi}
\def\endalwayssingle{\if@restonecol\twocolumn\fi}
\newif\ifwoman\womanfalse
\def\@w{\ifwoman{a}\else\fi}
\def\thesiswoman#1{\gdef\@thesiswoman{#1}
\ifx\@thesiswoman\True\def\@w{a}\else\def\@w{}\fi}
\def\thesislang#1{\gdef\@thesislang{#1}}
\def\DeclarationTextcs{%
Prohla\v{s}uji, \v{z}e tato \expandafter\lowecasewrapper\@thesissubtitle{}
je m\'{y}m p\r{u}vodn\'{i}m autorsk\'{y}m
d\'{i}lem, kter\'{e} jsem vypracoval\@w\ samostatn\v{e}. V\v{s}echny zdroje, prameny a
literaturu, kter\'{e} jsem p\v{r}i vypracov\'{a}n\'{i} pou\v{z}\'{i}val\@w\ nebo z~nich
\v{c}erpal\@w, v~pr\'{a}ci \v{r}\'{a}dn\v{e} cituji s~uveden\'{i}m \'{u}pln\'{e}ho odkazu na p\v{r}\'{i}slu\v{s}n\'{y}
zdroj.}
\def\DeclarationTextsk{%
Vyhlasujem, \v{z}e t\'{a}to \expandafter\lowecasewrapper\@thesissubtitle{}
je moj\'{i}m p^^f4vodn\'{y}m autorsk\'{y}m
dielom, ktor\'{e} som vypracoval\@w\ samostatne. V\v{s}etky zdroje, pramene a
literat\'{u}ru, ktor\'{e} som pri vypracovan\'{i} pou\v{z}\'{i}val\@w\ alebo z~nich
\v{c}erpal\@w, v~pr\'{a}ci riadne citujem s~uveden\'{i}m \'{u}pln\'{e}ho odkazu na pr\'{i}slu\v{s}n\'{y}
zdroj.}
\def\DeclarationTexten{%
Hereby I declare, that this paper is my original authorial work,
which I have worked out by my own. All sources, references and literature used or excerpted
during elaboration of this work are properly cited and listed in complete reference to the due source.
}
\def\DeclarationTitlecs{%
Prohl\'{a}\v{s}en\'{i}
}
\def\DeclarationTitlesk{%
Vyhl\'{a}senie
}
\def\DeclarationTitleen{%
Declaration
}
\def\ThanksTitlecs{%
Pod\v{e}kov\'{a}n\'{i}
}
\def\ThanksTitlesk{%
Po^^efakovanie
}
\def\ThanksTitleen{%
Acknowledgement
}
\def\AbstractTitlecs{%
Shrnut\'{i}
}
\def\AbstractTitlesk{%
Zhrnutie
}
\def\AbstractTitleen{%
Abstract
}
\def\KeyWordsTitlecs{%
Kl\'{i}\v{c}ov\'{a} slova
}
\def\KeyWordsTitlesk{%
K^^b5\'{u}\v{c}ov\'{e} slov\'{a}
}
\def\KeyWordsTitleen{%
Keywords
}
\def\AdvisorTitlecs{%
Vedouc\'{i} pr\'{a}ce:
}
\def\AdvisorTitlesk{%
Ved\'{u}ci pr\'{a}ce:
}
\def\AdvisorTitleen{%
Advisor:
}
\def\DeclarationText{%
\ifx\@thesislang\Langcs
\DeclarationTextcs
\else \ifx\@thesislang\Langsk
\DeclarationTextsk
\else \ifx\@thesislang\Langen
\DeclarationTexten
\else \DeclarationTextcs
\fi
\fi
\fi
}
\def\AdvisorName{\par\vfill{
\ifx\@thesislang\Langcs
\bf \AdvisorTitlecs
\else \ifx\@thesislang\Langsk
\bf \AdvisorTitlesk
\else \ifx\@thesislang\Langen
\bf \AdvisorTitleen
\else \bf \AdvisorTitlecs
\fi
\fi
\fi} \@thesisadvisor}
\def\FrontMatter{%
\pagestyle{plain}
\parindent 1.5em
\setcounter{page}{1}
\pagenumbering{roman}}
\newcommand{\ThesisTitlePage}{
\begin{alwayssingle}
\thispagestyle{empty}
\begin{center}
{\sc \universityname\\ \facultyname}
\vskip 1em
\ifx\@thesisfaculty\Fi
{\filogo SL}\\[0.4in]
\else
\includegraphics[width=40mm]{\facultylogo}\\[0.4in]
\fi
\let\footnotesize\small
\let\footnoterule\relax{}
{\titlefont\bf\@thesistitle\par\vfil}\vskip 0.8in
{\sc \@thesissubtitle}\\[0.3in]
{\Large\bf\@thesisstudent}
\par\vfill
{\large \thesisplaceyear}
\end{center}
\end{alwayssingle}
\newpage}
\newenvironment{ThesisDeclaration}{%
\begin{alwayssingle}
\ifx\@thesislang\Langcs
\chapter*{\DeclarationTitlecs}
\else \ifx\@thesislang\Langsk
\chapter*{\DeclarationTitlesk}
\else \ifx\@thesislang\Langen
\chapter*{\DeclarationTitleen}
\else \chapter*{\DeclarationTitlecs}
\fi
\fi
\fi}
{\par\vfil
\end{alwayssingle}
\newpage}
\newenvironment{ThesisThanks}{%
\begin{alwayssingle}
\ifx\@thesislang\Langcs
\chapter*{\ThanksTitlecs}
\else \ifx\@thesislang\Langsk
\chapter*{\ThanksTitlesk}
\else \ifx\@thesislang\Langen
\chapter*{\ThanksTitleen}
\else \chapter*{\ThanksTitlecs}
\fi
\fi
\fi}
{\par\vfill
\end{alwayssingle}
\newpage}
\newenvironment{ThesisAbstract}{%
\begin{alwayssingle}
\ifx\@thesislang\Langcs
\chapter*{\AbstractTitlecs}
\else \ifx\@thesislang\Langsk
\chapter*{\AbstractTitlesk}
\else \ifx\@thesislang\Langen
\chapter*{\AbstractTitleen}
\else \chapter*{\AbstractTitlecs}
\fi
\fi
\fi}
{\par\vfil\null
\end{alwayssingle}
\newpage}
\newenvironment{ThesisAbstracten}{%
\begin{alwayssingle}
\chapter*{\AbstractTitleen}
}
{\par\vfil\null
\end{alwayssingle}
\newpage}
\newenvironment{ThesisKeyWords}{%
\begin{alwayssingle}
\ifx\@thesislang\Langcs
\chapter*{\KeyWordsTitlecs}
\else \ifx\@thesislang\Langsk
\chapter*{\KeyWordsTitlesk}
\else \ifx\@thesislang\Langen
\chapter*{\KeyWordsTitleen}
\else \chapter*{\KeyWordsTitlecs}
\fi
\fi
\fi}
{\par\vfill
\end{alwayssingle}
\newpage}
\def\MainMatter{%
\if@twoside
\clearpage
\thispagestyle{empty}
\cleardoublepage
\else
\clearpage
\fi
\setcounter{page}{1}
\pagenumbering{arabic}
\pagestyle{thesisheadings}
\parindent 1.5em}
\renewcommand*\l@part[2]{%
\ifnum \c@tocdepth >-2\relax
\addpenalty{-\@highpenalty}%
\addvspace{0.5em \@plus\p@}%
\begingroup
\setlength\@tempdima{3em}%
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
{\leavevmode
\normalfont \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
\nobreak
\global\@nobreaktrue
\everypar{\global\@nobreakfalse\everypar{}}%
\endgroup
\addvspace{0.2em \@plus\p@}%
\fi}
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \bfseries
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\renewcommand*\l@chapter{\@dottedtocline{1}{0em}{1.5em}}
\renewcommand*\l@section{\@dottedtocline{2}{1.5em}{2.3em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
\renewcommand*\l@subsubsection{\@dottedtocline{2}{7.0em}{3.8em}}
\endinput
%%
%% End of file `fithesis.cls'.