-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiploma.cls
543 lines (541 loc) · 22.6 KB
/
diploma.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
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
%%
%% This is file `diploma.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% VersionInfo.dtx
%% Introduction.dtx
%% UserManual.dtx
%% ImplementationBeginning.dtx
%% Constants.dtx
%% VariablesDeclaration.dtx
%% BaseClassAndPackages.dtx
%% OptionsDeclaration.dtx
%% PublicMacros.dtx
%% InternalMacros.dtx
%% SourceCodeListings.dtx
%% ImplementationFinale.dtx
%%
%% IMPORTANT NOTICE:
%%
%% For the copyright see the source file.
%%
%% Any modified versions of this file must be renamed
%% with new filenames distinct from diploma.cls.
%%
%% For distribution of the original source see the terms
%% for copying and modification in the file VersionInfo.dtx Introduction.dtx UserManual.dtx ImplementationBeginning.dtx Constants.dtx VariablesDeclaration.dtx BaseClassAndPackages.dtx OptionsDeclaration.dtx PublicMacros.dtx InternalMacros.dtx SourceCodeListings.dtx ImplementationFinale.dtx.
%%
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\def\fileversion{3.935}
\def\filedate{2016/04/25}
\def\docdate{25. dubna 2016}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{diploma}[\filedate\space \fileversion\space diploma LaTeX document class]
\RequirePackage[utf8]{inputenc}
\RequirePackage{ifthen}
\newcommand{\Dipl@BachelorThesis}{0}
\newcommand{\Dipl@BachelorPractice}{1}
\newcommand{\Dipl@MasterThesis}{2}
\newcommand{\Dipl@PhDThesis}{3}
\newcommand{\Dipl@CzechLanguage}{0}
\newcommand{\Dipl@EnglishLanguage}{1}
\newcommand{\Dipl@SlovakLanguage}{2}
\newtoks\Dipl@UniversityName
\Dipl@UniversityName={No university name is given}
\newtoks\Dipl@FacultyName
\Dipl@FacultyName={No faculty name is given}
\newtoks\Dipl@DepartmentName
\Dipl@DepartmentName={No department name is given}
\newtoks\Dipl@ThesisAuthor
\Dipl@ThesisAuthor={No author name is given}
\newtoks\Dipl@CzechThesisTitle
\Dipl@CzechThesisTitle={No Czech or Slovak thesis title is given}
\newtoks\Dipl@EnglishThesisTitle
\Dipl@EnglishThesisTitle={No English thesis title is given}
\newtoks\Dipl@SubmissionDate
\Dipl@SubmissionDate={No submission date is given}
\newtoks\Dipl@ThesisAssignmentImagePath
\Dipl@ThesisAssignmentImagePath={}
\newtoks\Dipl@AuthorDeclaration
\Dipl@AuthorDeclaration={}
\newtoks\Dipl@AuthorDeclarationImageFile
\Dipl@AuthorDeclarationImageFile={}
\newtoks\Dipl@CooperatingPersonsDeclaration
\Dipl@CooperatingPersonsDeclaration={}
\newtoks\Dipl@ThesisAccessRestriction
\Dipl@ThesisAccessRestriction={}
\newtoks\Dipl@CooperatingPersonsDeclarationImageFile
\Dipl@CooperatingPersonsDeclarationImageFile={}
\newtoks\Dipl@Thanks
\Dipl@Thanks={}
\newtoks\Dipl@CzechAbstract
\Dipl@CzechAbstract={No Czech or Slovak abstract is given}
\newtoks\Dipl@CzechKeywords
\Dipl@CzechKeywords={No Czech or Slovak keywords are given}
\newtoks\Dipl@EnglishAbstract
\Dipl@EnglishAbstract={No English abstract is given}
\newtoks\Dipl@EnglishKeywords
\Dipl@EnglishKeywords={No English keywords are given}
\newtoks\Dipl@Acronyms
\Dipl@Acronyms={}
\newtoks\Dipl@DefaultSourceCodeLanguage
\Dipl@DefaultSourceCodeLanguage={java}
\newboolean{Dipl@IsPublicPart}
\setboolean{Dipl@IsPublicPart}{true}
\newboolean{Dipl@AuthorIsMale}
\setboolean{Dipl@AuthorIsMale}{true}
\newboolean{Dipl@PrintCooperatingPersonsDeclaration}
\setboolean{Dipl@PrintCooperatingPersonsDeclaration}{false}
\newboolean{Dipl@IsAppendix}
\setboolean{Dipl@IsAppendix}{false}
\newcounter{Dipl@CurrentThesisType}
\setcounter{Dipl@CurrentThesisType}{\Dipl@MasterThesis}
\newcounter{Dipl@CurrentThesisLanguage}
\setcounter{Dipl@CurrentThesisLanguage}{\Dipl@CzechLanguage}
\newcounter{Dipl@ThesisAssignmentImageCounter}
\LoadClass[11pt]{article}
\RequirePackage[czech,english,slovak]{babel}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage[a4paper,includefoot,nohead,marginparwidth=0mm,marginparsep=0mm,left=30mm,right=20mm,top=30mm,bottom=30mm]{geometry}
\RequirePackage{booktabs}
\RequirePackage{graphicx}
\RequirePackage[final]{listings}
\RequirePackage{longtable}
\RequirePackage{rotating}
\RequirePackage{setspace}
\RequirePackage{theorem}
\RequirePackage{titlesec}
\RequirePackage[nottoc,notindex,section]{tocbibind}
\RequirePackage{totcount}
\RequirePackage{xcolor}
%\RequirePackage[a-1b]{pdfx}
\DeclareOption{czech}
{
\setcounter{Dipl@CurrentThesisLanguage}{\Dipl@CzechLanguage}
\Dipl@UniversityName={VŠB -- Technická univerzita Ostrava}
\Dipl@FacultyName={Fakulta elektrotechniky a informatiky}
}
\DeclareOption{english}
{
\setcounter{Dipl@CurrentThesisLanguage}{\Dipl@EnglishLanguage}
\Dipl@UniversityName={VŠB -- Technical University of Ostrava}
\Dipl@FacultyName={Faculty of Electrical Engineering and Computer Science}
}
\DeclareOption{slovak}
{
\setcounter{Dipl@CurrentThesisLanguage}{\Dipl@SlovakLanguage}
\Dipl@UniversityName={VŠB -- Technická univerzita Ostrava}
\Dipl@FacultyName={Fakulta elektrotechniky a informatiky}
}
\DeclareOption{bachelor}
{
\setcounter{Dipl@CurrentThesisType}{\Dipl@BachelorThesis}
\Dipl@CooperatingPersonsDeclaration={\Dipl@IfEnglish{I hereby agree to the publishing of the bachelor's thesis as per s. 26, ss. 9 of the Study and Examination Regulations for Bachelor's Degree Programmes at VŠB -- Technical University of Ostrava.}{Souhlasím se zveřejněním této bakalářské práce dle požadavků čl.\ 26, odst.\ 9 Studijního a~zkušebního řádu pro studium v bakalářských programech VŠB-TU Ostrava.}}
}
\DeclareOption{bachelorpractice}
{
\setcounter{Dipl@CurrentThesisType}{\Dipl@BachelorPractice}
\Dipl@CzechThesisTitle={Absolvování individuální odborné praxe}
\Dipl@EnglishThesisTitle={Individual Professional Practice in the Company}
\Dipl@CooperatingPersonsDeclaration={\Dipl@IfEnglish{I hereby agree to the publishing of the bachelor's thesis as per s. 26, ss. 9 of the Study and Examination Regulations for Bachelor's Degree Programmes at VŠB -- Technical University of Ostrava.}{Souhlasím se zveřejněním této bakalářské práce dle požadavků čl.\ 26, odst.\ 9 Studijního a~zkušebního řádu pro studium v bakalářských programech VŠB-TU Ostrava.}}
}
\DeclareOption{master}
{
\setcounter{Dipl@CurrentThesisType}{\Dipl@MasterThesis}
\Dipl@CooperatingPersonsDeclaration={\Dipl@IfEnglish{I hereby agree to the publishing of the master's thesis as per s. 26, ss. 9 of the Study and Examination Regulations for Master's Degree Programmes at VŠB -- Technical University of Ostrava.}{Souhlasím se zveřejněním této diplomové práce dle požadavků čl.\ 26, odst.\ 9 Studijního a~zkušebního řádu pro studium v magisterských programech VŠB-TU Ostrava.}}
}
\DeclareOption{phd}{\setcounter{Dipl@CurrentThesisType}{\Dipl@PhDThesis}}
\DeclareOption{public}{\setboolean{Dipl@IsPublicPart}{true}}
\DeclareOption{nonpublic}{\setboolean{Dipl@IsPublicPart}{false}}
\DeclareOption{cpdeclaration}{\setboolean{Dipl@PrintCooperatingPersonsDeclaration}{true}}
\DeclareOption{dept410}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Electrical Power Engineering}{Katedra elektroenergetiky}}}
\DeclareOption{dept420}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Electrical Engineering}{Katedra elektrotechniky}}}
\DeclareOption{dept430}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Electronics}{Katedra elektroniky}}}
\DeclareOption{dept440}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Telecommunications}{Katedra telekomunikační techniky}}}
\DeclareOption{dept450}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Cybernetics and Biomedical Engineering}{Katedra kybernetiky a biomedicínského inženýrství}}}
\DeclareOption{dept460}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Computer Science}{Katedra informatiky}}}
\DeclareOption{dept470}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Applied Mathematics}{Katedra aplikované matematiky}}}
\DeclareOption{male}
{
\setboolean{Dipl@AuthorIsMale}{true}
\ifthenelse{\(\value{Dipl@CurrentThesisType}=\Dipl@BachelorThesis\) \or \(\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice\)}
{
\Dipl@AuthorDeclaration={\Dipl@IfEnglish{I hereby declare that this bachelor's thesis was written by myself. I have quoted all the references I have drawn upon.}{Prohlašuji, že jsem tuto bakalářskou práci vypracoval samostatně. Uvedl jsem všechny literární prameny a publikace, ze kterých jsem čerpal.}}
}
{\relax}
\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@MasterThesis}
{
\Dipl@AuthorDeclaration={\Dipl@IfEnglish{I hereby declare that this master's thesis was written by myself. I have quoted all the references I have drawn upon.}{Prohlašuji, že jsem tuto diplomovou práci vypracoval samostatně. Uvedl jsem všechny literární prameny a publikace, ze kterých jsem čerpal.}}
}
{\relax}
}
\DeclareOption{female}
{
\setboolean{Dipl@AuthorIsMale}{false}
\ifthenelse{\(\value{Dipl@CurrentThesisType}=\Dipl@BachelorThesis\) \or \(\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice\)}
{
\Dipl@AuthorDeclaration={\Dipl@IfEnglish{I hereby declare that this bachelor's thesis was written by myself. I have quoted all the references I have drawn upon.}{Prohlašuji, že jsem tuto bakalářskou práci vypracovala samostatně. Uvedla jsem všechny literární prameny a publikace, ze kterých jsem čerpala.}}
}
{\relax}
\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@MasterThesis}
{
\Dipl@AuthorDeclaration={\Dipl@IfEnglish{I hereby declare that this master's thesis was written by myself. I have quoted all the references I have drawn upon.}{Prohlašuji, že jsem tuto diplomovou práci vypracovala samostatně. Uvedla jsem všechny literární prameny a publikace, ze kterých jsem čerpala.}}
}
{\relax}
}
\DeclareOption{ansic}{\Dipl@DefaultSourceCodeLanguage={ansic}}
\DeclareOption{bash}{\Dipl@DefaultSourceCodeLanguage={bash}}
\DeclareOption{cil}{\Dipl@DefaultSourceCodeLanguage={cil}}
\DeclareOption{cpp}{\Dipl@DefaultSourceCodeLanguage={cpp}}
\DeclareOption{csharp}{\Dipl@DefaultSourceCodeLanguage={csharp}}
\DeclareOption{delphi}{\Dipl@DefaultSourceCodeLanguage={delphi}}
\DeclareOption{gnuplot}{\Dipl@DefaultSourceCodeLanguage={gnuplot}}
\DeclareOption{html}{\Dipl@DefaultSourceCodeLanguage={html}}
\DeclareOption{java}{\Dipl@DefaultSourceCodeLanguage={java}}
\DeclareOption{latex}{\Dipl@DefaultSourceCodeLanguage={latex}}
\DeclareOption{lisp}{\Dipl@DefaultSourceCodeLanguage={lisp}}
\DeclareOption{lua}{\Dipl@DefaultSourceCodeLanguage={lua}}
\DeclareOption{make}{\Dipl@DefaultSourceCodeLanguage={make}}
\DeclareOption{mathematica}{\Dipl@DefaultSourceCodeLanguage={mathematica}}
\DeclareOption{matlab}{\Dipl@DefaultSourceCodeLanguage={matlab}}
\DeclareOption{octave}{\Dipl@DefaultSourceCodeLanguage={octave}}
\DeclareOption{pascal}{\Dipl@DefaultSourceCodeLanguage={pascal}}
\DeclareOption{perl}{\Dipl@DefaultSourceCodeLanguage={perl}}
\DeclareOption{php}{\Dipl@DefaultSourceCodeLanguage={php}}
\DeclareOption{pov}{\Dipl@DefaultSourceCodeLanguage={pov}}
\DeclareOption{prolog}{\Dipl@DefaultSourceCodeLanguage={prolog}}
\DeclareOption{python}{\Dipl@DefaultSourceCodeLanguage={python}}
\DeclareOption{ruby}{\Dipl@DefaultSourceCodeLanguage={ruby}}
\DeclareOption{r}{\Dipl@DefaultSourceCodeLanguage={r}}
\DeclareOption{sh}{\Dipl@DefaultSourceCodeLanguage={sh}}
\DeclareOption{sql}{\Dipl@DefaultSourceCodeLanguage={sql}}
\DeclareOption{tcltk}{\Dipl@DefaultSourceCodeLanguage={tcltk}}
\DeclareOption{vb}{\Dipl@DefaultSourceCodeLanguage={vb}}
\DeclareOption{vhdl}{\Dipl@DefaultSourceCodeLanguage={vhdl}}
\DeclareOption{xml}{\Dipl@DefaultSourceCodeLanguage={xml}}
\DeclareOption{xslt}{\Dipl@DefaultSourceCodeLanguage={xslt}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions
\newcommand{\ThesisAuthor}[1]{\Dipl@ThesisAuthor={#1}}
\newcommand{\CzechThesisTitle}[1]{\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice}{\relax}{\Dipl@CzechThesisTitle={#1}}}
\newcommand{\EnglishThesisTitle}[1]{\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice}{\relax}{\Dipl@EnglishThesisTitle={#1}}}
\newcommand{\SubmissionDate}[1]{\Dipl@SubmissionDate={#1}}
\newcommand{\ThesisAssignmentImagePath}[1]{\Dipl@ThesisAssignmentImagePath={#1}}
\newcommand{\AuthorDeclarationImageFile}[1]{\Dipl@AuthorDeclarationImageFile={#1}}
\newcommand{\ThesisAccessRestriction}[1]{\Dipl@ThesisAccessRestriction={#1}}
\newcommand{\CooperatingPersonsDeclarationImageFile}[1]{\Dipl@CooperatingPersonsDeclarationImageFile={#1}}
\newcommand{\Thanks}[1]{\Dipl@Thanks={#1}}
\newcommand{\CzechAbstract}[1]{\Dipl@CzechAbstract={#1}}
\newcommand{\CzechKeywords}[1]{\Dipl@CzechKeywords={#1}}
\newcommand{\EnglishAbstract}[1]{\Dipl@EnglishAbstract={#1}}
\newcommand{\EnglishKeywords}[1]{\Dipl@EnglishKeywords={#1}}
\newcommand{\AddAcronym}[2]{\Dipl@AddTokens{\Dipl@Acronyms}{#1&--\\}}
\newcommand{\MakeTitlePages}
{
\pagestyle{empty}
\Dipl@TitlePage
\Dipl@ThesisAssignmentPage
\Dipl@AuthorDeclarationPage
\Dipl@CooperatingPersonsDeclarationPage
\Dipl@WriteThanksPage
\Dipl@AbstractsKeywordsPage
\pagestyle{plain}
\tableofcontents\cleardoublepage
\Dipl@WriteAcronymsPage
\ifthenelse{\totvalue{figure}>0}{\listoffigures\cleardoublepage}{\relax}
\ifthenelse{\totvalue{table}>0}{\listoftables\cleardoublepage}{\relax}
}
{\theorembodyfont{\itshape}\newtheorem{definition}{\Dipl@IfEnglish{Definition}{Definice}}}
{\theorembodyfont{\itshape}\newtheorem{theorem}{\Dipl@IfEnglish{Theorem}{Věta}}}
\newenvironment{proof}
{\par\noindent\textbf{\Dipl@IfEnglish{Proof.}{Důkaz.}}}
{\mbox{}\hspace*{5pt}\hfill\hbox{\vrule height5pt depth0pt width5pt}\par\medskip}
{\theorembodyfont{\rmfamily}\newtheorem{remark}{\Dipl@IfEnglish{Remark}{Poznámka}}}
{\theoremstyle{break}\theorembodyfont{\rmfamily}\newtheorem{Dipl@examplebody}{\Dipl@IfEnglish{Example}{Příklad}}}
\newenvironment{example}
{\begin{Dipl@examplebody}}
{
\nopagebreak\mbox{}\hspace*{5pt}\hfill\hbox{\vrule height5pt depth0pt width5pt}
\end{Dipl@examplebody}
}
\newcommand{\InsertFigure}[4]
{
\begin{figure}
\centering
\includegraphics[width=#2]{#1}
\caption{#3}
\label{#4}
\end{figure}
}
\newcommand{\Dipl@TitlePage}
{
\begin{center}
\sffamily
{\Large\the\Dipl@UniversityName\par
\the\Dipl@FacultyName\par
\the\Dipl@DepartmentName\par}
\vspace{26mm}
{\Huge\bfseries\Dipl@IfEnglish{\the\Dipl@EnglishThesisTitle}{\the\Dipl@CzechThesisTitle}\par}
\bigskip
{\Huge\bfseries\Dipl@IfEnglish{\the\Dipl@CzechThesisTitle}{\the\Dipl@EnglishThesisTitle}\par}
\ifthenelse{\boolean{Dipl@IsPublicPart}}{\relax}
{
\bigskip
\bigskip
{\huge\Dipl@IfEnglish{Non-public part/Neveřejná část}{Neveřejná část/Non-public part}\par}
}
\end{center}
\vfill
{\sffamily\Large\number\year\hfill\the\Dipl@ThesisAuthor}
\cleardoublepage
}
\newcommand{\Dipl@ThesisAssignmentPage}
{
\ifthenelse{\equal{\the\Dipl@ThesisAssignmentImagePath}{\empty}}
{
\begin{center}
\Large\sffamily\bfseries
\Dipl@IfEnglish{This page will be replaced by official thesis assignment in printed and electronic version of the submitted thesis.}%
{Tuto stránku nahradíte v tištěné verzi práce oficiálním zadáním Vaší diplomové či bakalářské práce.}
\end{center}
}
{
\setcounter{Dipl@ThesisAssignmentImageCounter}{1}
\whiledo{\value{Dipl@ThesisAssignmentImageCounter}>0}
{
\IfFileExists{\the\Dipl@ThesisAssignmentImagePath\theDipl@ThesisAssignmentImageCounter.jpg}
{
\Dipl@InsertFullPageImage{\the\Dipl@ThesisAssignmentImagePath\theDipl@ThesisAssignmentImageCounter.jpg}
\addtocounter{Dipl@ThesisAssignmentImageCounter}{1}
}
{
\setcounter{Dipl@ThesisAssignmentImageCounter}{-1}
}
}
}
\cleardoublepage
}
\newcommand{\Dipl@AuthorDeclarationPage}
{
\ifthenelse{\equal{\the\Dipl@AuthorDeclarationImageFile}{\empty}}
{
\mbox{}
\vfill
\noindent
\the\Dipl@AuthorDeclaration
\par
\vspace{15mm}
\noindent\Dipl@IfEnglish{Ostrava,}{V Ostravě}~\the\Dipl@SubmissionDate\hfill\hbox to50mm{\dotfill}
}
{
\Dipl@InsertFullPageImage{\the\Dipl@AuthorDeclarationImageFile}
}
\cleardoublepage
}
\newcommand{\Dipl@CooperatingPersonsDeclarationPage}
{
\ifthenelse{\boolean{Dipl@PrintCooperatingPersonsDeclaration}}
{
\ifthenelse{\equal{\the\Dipl@CooperatingPersonsDeclarationImageFile}{\empty}}
{
\mbox{}
\vfill
\ifthenelse{\equal{\the\Dipl@ThesisAccessRestriction}{\empty}}
{\relax}
{\noindent\the\Dipl@ThesisAccessRestriction\par\bigskip}
\noindent
\the\Dipl@CooperatingPersonsDeclaration
\par
\vspace{15mm}
\noindent\Dipl@IfEnglish{Ostrava,}{V Ostravě}~\the\Dipl@SubmissionDate\hfill\hbox to50mm{\dotfill}
}
{
\Dipl@InsertFullPageImage{\the\Dipl@CooperatingPersonsDeclarationImageFile}
}
\cleardoublepage
}
{\relax}
}
\newcommand{\Dipl@WriteThanksPage}
{
\ifthenelse{\equal{\the\Dipl@Thanks}{\empty}}
{\relax}
{
\mbox{}
\vfill
\noindent\the\Dipl@Thanks
\cleardoublepage
}
}
\newcommand{\Dipl@AbstractsKeywordsPage}
{
\vspace*{20mm plus 0mm minus 25mm}
\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@SlovakLanguage}
{
\begin{otherlanguage}{slovak}
\noindent\textbf{Abstrakt}
\medbreak
\noindent\the\Dipl@CzechAbstract
\bigbreak
\noindent\textbf{Kľúčové slová}:~\the\Dipl@CzechKeywords\par
\end{otherlanguage}
}
{
\begin{otherlanguage}{czech}
\noindent\textbf{Abstrakt}
\medbreak
\noindent\the\Dipl@CzechAbstract
\bigbreak
\noindent\textbf{Klíčová slova}:~\the\Dipl@CzechKeywords\par
\end{otherlanguage}
}
\vspace{30mm plus 0mm minus 30mm}
\begin{otherlanguage}{english}
\noindent\textbf{Abstract}
\medbreak
\noindent\the\Dipl@EnglishAbstract
\bigbreak
\noindent\textbf{Key Words}:~\the\Dipl@EnglishKeywords\par
\end{otherlanguage}
\cleardoublepage
}
\newcommand{\Dipl@WriteAcronymsPage}
{
\ifthenelse{\equal{\the\Dipl@Acronyms}{\empty}}
{\relax}
{
\section*{\Dipl@IfEnglish{List of symbols and abbreviations}{Seznam použitých zkratek a symbolů}}
\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@EnglishLanguage}
{
\addcontentsline{toc}{section}{List of symbols and abbreviations}
}
{
\addcontentsline{toc}{section}{Seznam použitých zkratek a symbolů}
}
\begin{longtable*}[l]{p{0.2\textwidth}cp{0.7\textwidth}}
\the\Dipl@Acronyms
\end{longtable*}
\cleardoublepage
}
}
\newcommand{\Dipl@PrintRestriction}
{
\noindent\the\Dipl@PublicationAgreement\par
\ifthenelse{\equal{\the\Dipl@AccessRestriction}{\empty}}
{\relax}
{\bigskip\noindent\the\Dipl@AccessRestriction\par}
\vspace{15mm}
\noindent\Dipl@IfEnglish{Ostrava,}{V Ostravě}~\the\Dipl@SubmissionDate\hfill\hbox to50mm{\dotfill}\par
\vspace{15mm}
}
\newcommand{\sectionbreak}
{
\cleardoublepage
\ifthenelse{\boolean{Dipl@IsAppendix}}{\relax}{\suppressfloats}
}
\let\Dipl@OldAppendix\appendix
\renewcommand{\appendix}
{
\Dipl@OldAppendix
\addcontentsline{toc}{section}{\appendixname}%
}
\newcommand{\Dipl@IfEnglish}[2]{\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@EnglishLanguage}{#1}{#2}}
\newcommand{\Dipl@AddTokens}[2]{\expandafter \global#1\expandafter{\the#1#2}}
\newcommand{\Dipl@InsertFullPageImage}[1]
{
\newgeometry{margin=1pt,nohead,nofoot,nomarginpar,centering}
\thispagestyle{empty}
\begin{center}
\includegraphics[width=0.99\textwidth,height=0.99\textheight]{#1}
\end{center}
\cleardoublepage
\restoregeometry
}
\newcommand{\Dipl@SetDefaultLanguage}
{
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{ansic}}{\lstset{language=[ANSI]C}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{bash}}{\lstset{language=bash}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{cil}}{\lstset{language=CIL}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{cpp}}{\lstset{language=C++}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{csharp}}{\lstset{language=[Sharp]C}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{delphi}}{\lstset{language=Delphi}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{gnuplot}}{\lstset{language=Gnuplot}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{html}}{\lstset{language=HTML}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{java}}{\lstset{language=Java}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{latex}}{\lstset{language=[LaTeX]TeX}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{lisp}}{\lstset{language=Lisp}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{lua}}{\lstset{language=Lua}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{make}}{\lstset{language=make}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{mathematica}}{\lstset{language=Mathematica}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{matlab}}{\lstset{language=Matlab}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{octave}}{\lstset{language=Octave}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{pascal}}{\lstset{language=Pascal}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{perl}}{\lstset{language=Perl}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{php}}{\lstset{language=PHP}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{pov}}{\lstset{language=POV}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{prolog}}{\lstset{language=Prolog}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{python}}{\lstset{language=Python}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{ruby}}{\lstset{language=Ruby}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{r}}{\lstset{language=R}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{sh}}{\lstset{language=sh}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{sql}}{\lstset{language=SQL}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{tcltk}}{\lstset{language=[tk]tcl}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{vb}}{\lstset{language=[Visual]Basic}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{vhdl}}{\lstset{language=VHDL}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{xml}}{\lstset{language=XML}}{}
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{xslt}}{\lstset{language=XSLT}}{}
}
\lstset
{
basicstyle=\ttfamily,
keywordstyle=\color{blue},
identifierstyle=\color[RGB]{43,145,175},
commentstyle=\slshape\color[RGB]{0,128,0},
stringstyle=\color[RGB]{163,21,21},
breaklines=true,
tabsize=3,
columns=flexible,
showstringspaces=false,
frame=lines,
captionpos=b
}
\onehalfspacing
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{5}
\widowpenalty=9000
\clubpenalty=9000
\regtotcounter{figure}
\regtotcounter{table}
\addto{\captionsczech}{\renewcommand{\refname}{Literatura}}
\addto{\captionsslovak}{\renewcommand{\refname}{Literatura}}
\addto{\captionsczech}{\renewcommand{\appendixname}{Přílohy}}
\addto{\captionsslovak}{\renewcommand{\appendixname}{Přílohy}}
\AtBeginDocument%
{
\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@CzechLanguage}
{
\selectlanguage{czech}
\def\lstlistlistingname{Seznam výpisů zdrojového kódu}
\def\lstlistingname{Výpis}
}{}
\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@EnglishLanguage}
{
\selectlanguage{english}
}{}
\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@SlovakLanguage}
{
\selectlanguage{slovak}
\def\lstlistlistingname{Seznam výpisů zdrojového kódu}
\def\lstlistingname{Výpis}
}{}
\Dipl@SetDefaultLanguage
}
\endinput
%%
%% End of file `diploma.cls'.