This repository has been archived by the owner on Aug 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fitthesis.cls
807 lines (703 loc) · 27.4 KB
/
fitthesis.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
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
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
% ----------------------------------------------------------------------------
% FIT thesis
% ----------------------------------------------------------------------------
% (C) 2007 Zdenek Vasicek, 2008 Michal Bidlo
% ----------------------------------------------------------------------------
% Šablonu upravil / edited by: Ing. Jaroslav Dytrych, [email protected]
% ----------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{fitthesis}[2007/04/13 Sablona pro BP/DP]
%Vychozi hodnoty parametru / Default values for parameters
\newif\ifczech \let\ifczech\iftrue
\newif\ifslovak \let\ifslovak\iffalse
\newif\ifczechslovak \let\ifczechslovak\iftrue
\newif\ifcover \let\ifcover\iffalse
\newif\ifCOPEN \let\ifCOPEN\iffalse
\newif\ifCBOPEN \let\ifCBOPEN\iffalse
\newif\ifPrint \let\ifPrint\iffalse
\newif\ifWis \let\ifWis\iftrue
\newif\ifzadani \let\ifzadani\iffalse
\newif\iftwoside \let\iftwoside\iffalse
%-----------------------------------------------------------------------------
% Parametry tridy (odkomentovani zakomentovanych na vlastni nebezpeci)
% Class parameters (uncommenting of commented one is only on your own risk)
%-----------------------------------------------------------------------------
\DeclareOption{english}{\let\ifczech\iffalse\let\ifczechslovak\iffalse}
\DeclareOption{slovak}{\let\ifslovak\iftrue\let\ifczech\iffalse}
\DeclareOption{cover}{\let\ifcover\iftrue}
\DeclareOption{print}{\let\ifWis\iffalse \let\ifPrint\iftrue}
\DeclareOption{zadani}{\let\ifzadani\iftrue}
\DeclareOption{twoside}{\let\iftwoside\iftrue}
%\DeclareOption{COPEN}{\let\ifCOPEN\iftrue}
%\DeclareOption{CBOPEN}{\let\ifCBOPEN\iftrue}
\DeclareOption*{}
\ProcessOptions\relax
%Jako vychozi pouzijeme tridu REPORT / We will use REPORT class as a base
\iftwoside
\ifx\pdfoutput\undefined % nejedeme pod pdftexem / we are not using pdftex
\LoadClass[a4paper,twoside,onecolumn,11pt]{report}
\else
\LoadClass[pdftex,a4paper,twoside,onecolumn,11pt]{report}
\fi
\else
\ifx\pdfoutput\undefined % nejedeme pod pdftexem
\LoadClass[a4paper,oneside,onecolumn,11pt]{report}
\else
\LoadClass[pdftex,a4paper,oneside,onecolumn,11pt]{report}
\fi
\fi
%-----------------------------------------------------------------------------
% Balicky / Packages
%-----------------------------------------------------------------------------
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[czech,slovak,english]{babel}
\usepackage[utf8]{inputenc} %kodovani / encoding
\usepackage[T1]{fontenc}
\usepackage{cmap}
\usepackage{url}
\usepackage{ragged2e}
\usepackage{color}
\usepackage{etoolbox}
\ifczech
\main@language{czech}
\else
\ifslovak
\main@language{slovak}
\else
\main@language{english}
\fi
\fi
\ifx\pdfoutput\undefined % nejedeme pod pdftexem / we are not using pdftex
\usepackage{graphics}
\usepackage{epsfig}
\else % je to pdftex ! / it is pdftex !
\ifzadani
\usepackage{pdfpages}
\else % neni potreba pdfpages / pdfpages is not necessary
\usepackage[pdftex]{graphicx}
\fi
\fi
\newtoggle{slovak_used}
\togglefalse{slovak_used}
\ifslovak
\toggletrue{slovak_used}
\fi
\newtoggle{czechslovak}
\togglefalse{czechslovak}
\ifczech
\toggletrue{czechslovak}
\fi
\ifslovak
\toggletrue{czechslovak}
\fi
%-----------------------------------------------------------------------------
% Sazebni obrazec / Page layout
%-----------------------------------------------------------------------------
\iftwoside
% \usepackage[left=3.46cm, text={15.2cm,23.47cm}, top=2.5cm, marginparwidth=50pt]{geometry}
\usepackage[a4paper]{geometry}
\newgeometry{left=3.46cm, text={15.2cm,23.47cm}, top=2.5cm, marginparwidth=50pt}
\else
\setlength{\hoffset}{-0.7cm}
\setlength{\voffset}{-1.5cm}
\setlength{\textheight}{23.0cm}
\setlength{\textwidth}{15.2cm}
\fi
%-----------------------------------------------------------------------------
% Texty / Texts
%-----------------------------------------------------------------------------
\def\@vut@CS{Vysoké učení technické v~Brně}
\def\@vut@SK{Vysoké učení technické v~Brně}
\def\@vut@EN{Brno University of Technology}
\def\@fit@CS{Fakulta informačních technologií}
\def\@fit@SK{Fakulta informačních technologií}
\def\@fit@EN{Faculty of Information Technology}
\def\@author@CS{Autor práce}
\def\@author@SK{Autor práce}
\def\@author@EN{Author}
\def\@dep@CS{Ústav}
\def\@dep@SK{Ústav}
\def\@dep@EN{Department of}
\def\@abstract@CS{Abstrakt}
\def\@abstract@SK{Abstrakt}
\def\@abstract@EN{Abstract}
\def\@extendedabstract{Rozšířený abstrakt}
\def\@keywords@CS{Klíčová slova}
\def\@keywords@SK{Kľúčové slová}
\def\@keywords@EN{Keywords}
\def\@cite@CS{Citace}
\def\@cite@SK{Citácia}
\def\@cite@EN{Reference}
\def\@tdecl@CS{Prohlášení}
\def\@tdecl@SK{Prehlásenie}
\def\@tdecl@EN{Declaration}
\def\@tackn@CS{Poděkování}
\def\@tackn@SK{Poďakovanie}
\def\@tackn@EN{Acknowledgements}
\newif\ifnasel
\def\ifEqString#1#2#3#4{\def\testa{#1}\def\testb{#2}%
\ifx\testa\testb \def#4{#3} \naseltrue \fi%
}
%Vyber typu projektu / project type selection
\newcommand{\set@project}[1]{%
\naselfalse
\ifEqString{#1}{BP}{Bakalářská práce}{\@projecttype@CS}%
% \ifEqString{#1}{BP}{Bakalárska práca}{\@projecttype@SK}%
\ifEqString{#1}{BP}{Bakalářská práce}{\@projecttype@SK}%
\ifEqString{#1}{BP}{Bachelor's thesis}{\@projecttype@EN}%
\ifEqString{#1}{BP}{Vedoucí práce}{\@supervisor@CS}%
% \ifEqString{#1}{BP}{Vedúci práce}{\@supervisor@SK}%
\ifEqString{#1}{BP}{Vedoucí práce}{\@supervisor@SK}%
\ifEqString{#1}{BP}{Supervisor}{\@supervisor@EN}%
\ifEqString{#1}{SP}{Semestrální projekt}{\@projecttype@CS}%
% \ifEqString{#1}{SP}{Semestrálny projekt}{\@projecttype@SK}%
\ifEqString{#1}{SP}{Semestrální projekt}{\@projecttype@SK}%
\ifEqString{#1}{SP}{Term project}{\@projecttype@EN}%
\ifEqString{#1}{SP}{Vedoucí práce}{\@supervisor@CS}%
% \ifEqString{#1}{SP}{Vedúci práce}{\@supervisor@SK}%
\ifEqString{#1}{BP}{Vedoucí práce}{\@supervisor@SK}%
\ifEqString{#1}{SP}{Supervisor}{\@supervisor@EN}%
\ifEqString{#1}{DP}{Diplomová práce}{\@projecttype@CS}%
% \ifEqString{#1}{DP}{Diplomová práca}{\@projecttype@SK}%
\ifEqString{#1}{DP}{Diplomová práce}{\@projecttype@SK}%
\ifEqString{#1}{DP}{Master's thesis}{\@projecttype@EN}%
\ifEqString{#1}{DP}{Vedoucí práce}{\@supervisor@CS}%
% \ifEqString{#1}{DP}{Vedúci práce}{\@supervisor@SK}%
\ifEqString{#1}{DP}{Vedoucí práce}{\@supervisor@SK}%
\ifEqString{#1}{DP}{Supervisor}{\@supervisor@EN}%
\ifEqString{#1}{DR}{Disertační práce}{\@projecttype@CS}%
% \ifEqString{#1}{DR}{Dizertačná práca}{\@projecttype@SK}%
\ifEqString{#1}{DR}{Disertační práce}{\@projecttype@SK}%
\ifEqString{#1}{DR}{PhD thesis}{\@projecttype@EN}%
\ifEqString{#1}{DR}{Školitel}{\@supervisor@CS}%
% \ifEqString{#1}{DR}{Školiteľ}{\@supervisor@SK}%
\ifEqString{#1}{DR}{Školitel}{\@supervisor@SK}%
\ifEqString{#1}{DR}{Supervisor}{\@supervisor@EN}%
\ifnasel
\else
\typeout{Spatny typ projektu! Moznosti: BP, SP, DP, DR}\set@project{BP}
\fi
}
%Vyber ustavu / department selection
\newcommand{\set@department}[1]{%
\naselfalse
\ifEqString{#1}{UIFS}{informačních systémů}{\@department@CS}%
\ifEqString{#1}{UIFS}{informačních systémů}{\@department@SK}%
\ifEqString{#1}{UIFS}{Information Systems}{\@department@EN}%
\ifEqString{#1}{UPSY}{počítačových systémů}{\@department@CS}%
\ifEqString{#1}{UPSY}{počítačových systémů}{\@department@SK}%
\ifEqString{#1}{UPSY}{Computer Systems}{\@department@EN}%
\ifEqString{#1}{UITS}{inteligentních systémů}{\@department@CS}%
\ifEqString{#1}{UITS}{inteligentních systémů}{\@department@SK}%
\ifEqString{#1}{UITS}{Intelligent Systems}{\@department@EN}%
\ifEqString{#1}{UPGM}{počítačové grafiky a multimédií}{\@department@CS}%
\ifEqString{#1}{UPGM}{počítačové grafiky a multimédií}{\@department@SK}%
\ifEqString{#1}{UPGM}{Computer Graphics and~Multimedia}{\@department@EN}%
\ifnasel
\else
\typeout{Spatny ustav! Moznosti: UPSY, UIFS, UITS, UPGM}\set@department{UIFS}
\fi
}
%Nazev ustavu (CS, SK, EN) / name of the department
\def\@departmentname@CS{\@dep@CS\ \@department@CS}
\def\@departmentname@SK{\@dep@SK\ \@department@SK}
\def\@departmentname@EN{\@dep@EN\ \@department@EN}
%Nazev prace (v jazyce prace) / thesis title (in the language of the thesis)
\iftoggle{slovak_used}{
\def\@title{\@title@CS}
}{
\def\@title{\ifczech\@title@CS\else\@title@EN\fi}
}
%Jmeno, prijmeni, tituly autora / name surname and the titles of the author
\def\get@author{\ifx\undefined\@author@tp\else%
\@author@tp~\fi\MakeUppercase{\@author}\ifx\undefined\@author@ta\else,~\@author@ta\fi}
\def\getlc@author{\ifx\undefined\@author@tp\else%
\@author@tp~\fi\@author\ifx\undefined\@author@ta\else,~\@author@ta\fi}
%Jmeno, prijmeni, tituly vedouciho / name surname and the titles of the supervisor
\def\get@supervisor{\ifx\undefined\@supervisor@tp\else%
\@supervisor@tp~\fi\MakeUppercase{\@supervisor}\ifx\undefined\@supervisor@ta\else,~\@supervisor@ta\fi}
%-----------------------------------------------------------------------------
% Projectinfo - parametrizace sablony / template parameters
%-----------------------------------------------------------------------------
%Parametry
\define@key{projinfo}{title.cs}{\global\def\@title@CS{#1}}
\define@key{projinfo}{title.en}{\global\def\@title@EN{#1}}
\define@key{projinfo}{department}{\set@department{#1}}
\define@key{projinfo}{project}{\set@project{#1}}
\define@key{projinfo}{year}{\def\@year{#1}}
\define@key{projinfo}{date}{\def\@date{#1}}
\define@key{projinfo}{author}{\def\@author{#1}}
\define@key{projinfo}{author.name}{\def\@author@n{#1}}
\define@key{projinfo}{author.surname}{\def\@author@s{#1}}
\define@key{projinfo}{author.title.a}{\def\@author@ta{#1}}
\define@key{projinfo}{author.title.p}{\def\@author@tp{#1}}
\define@key{projinfo}{supervisor}{\def\@supervisor{#1}}
\define@key{projinfo}{supervisor.name}{\def\@supervisor@n{#1}}
\define@key{projinfo}{supervisor.surname}{\def\@supervisor@s{#1}}
\define@key{projinfo}{supervisor.title.a}{\def\@supervisor@ta{#1}}
\define@key{projinfo}{supervisor.title.p}{\def\@supervisor@tp{#1}}
\define@key{projinfo}{keywords.cs}{\def\@tkeywords@CS{#1}}
\define@key{projinfo}{keywords.en}{\def\@tkeywords@EN{#1}}
\define@key{projinfo}{abstract.cs}{\def\@tabstract@CS{#1}}
\define@key{projinfo}{abstract.en}{\def\@tabstract@EN{#1}}
%\define@key{projinfo}{extendedabstract}{\def\@textendedabstract{#1}}
\define@key{projinfo}{declaration}{\def\@declaration{#1}}
\define@key{projinfo}{acknowledgment}{\def\@acknowledgment{#1}}
%Vychozi hodnoty / Default values
\setkeys{projinfo}{
title.cs={Název práce (česky)},title.en={Název práce(anglicky)},
date=\today, project=BP, department=UIFS, declaration=,
abstract.cs=, abstract.en=, keywords.cs=, keywords.en=,
author=Jmeno Prijmeni, supervisor=Jmeno Prijmeni,
author.name=, author.surname=, supervisor.name=,
supervisor.surname=
}%
\def\projectinfo{\setkeys{projinfo}}
%Prohlaseni / Declaration
\newcommand{\declaration}[1]{\def\@declaration{#1}}
%Podekovani / Acknowledgement
\newcommand{\acknowledgment}[1]{\def\@acknowledgment{#1}}
%Abstrakt / Abstract
\renewcommand{\abstract}[2][cs]{%
\ifEqString{#1}{cs}{#2}{\@tabstract@CS}%
\ifEqString{#1}{sk}{#2}{\@tabstract@SK}%
\ifEqString{#1}{en}{#2}{\@tabstract@EN}%
}
%Klicova slova / Keywords
\newcommand{\keywords}[2][cs]{%
\ifEqString{#1}{cs}{#2}{\@tkeywords@CS}%
\ifEqString{#1}{sk}{#2}{\@tkeywords@SK}%
\ifEqString{#1}{en}{#2}{\@tkeywords@EN}%
}
%Rozsireny abstrakt / Extended abstract
%\newcommand{\extendedabstract}[1]{%
% \def\@textendedabstract{#1}%
%}
\newlength{\mkspc}
\setlength{\mkspc}{2pt}
\def\setfontsize#1{\renewcommand{\baselinestretch}{1.5}\fontsize{#1}{\f@baselineskip}\selectfont}
%text
\newcommand{\mktxt}[2]{\vbox{\setfontsize{#1}\noindent#2}\vspace\mkspc}
%text pro titulní list / text for title page
\newcommand{\mktxtt}[2]{\vbox{\setfontsize{#1}\fosfamily\bfseries\noindent#2}\vspace\mkspc}
%text pro desky / text for cover
\newcommand{\mktxtc}[2]{\vbox{\setfontsize{#1}\ifCOPEN\fosfamily\fi\ifCBOPEN\fosfamily\bfseries\fi\noindent#2}\vspace\mkspc}
%všechna velká / uppercase
\newcommand{\mkuctxt}[2]{\vbox{\setfontsize{#1}\noindent\MakeUppercase{#2}}\vspace\mkspc}
\newcommand{\mkuctxtt}[2]{\vbox{\setfontsize{#1}\fosfamily\bfseries\noindent\MakeUppercase{#2}}\vspace\mkspc}
\newcommand{\mkuctxtc}[2]{\vbox{\setfontsize{#1}\ifCOPEN\fosfamily\fi\ifCBOPEN\fosfamily\bfseries\fi\noindent\MakeUppercase{#2}}\vspace\mkspc}
%bold
\newcommand{\mktxt@b}[2]{\vbox{\setfontsize{#1}\noindent\bf#2}\vspace\mkspc}
%bold pro titulní list / bold for title page
\newcommand{\mktxtt@b}[2]{\vbox{\setfontsize{#1}\fosfamily\bfseries\noindent\bf#2}\vspace\mkspc}
%-----------------------------------------------------------------------------
% Desky / Cover \makecover
%-----------------------------------------------------------------------------
\newcommand\makecover{
\thispagestyle{empty}\null%
\fontfamily{qhv}\selectfont%
%
\addtolength{\voffset}{-0.95cm}
\begin{center}
\ifczech
\noindent\hspace{-34.0pt}\mkuctxtc{20}{\@vut@CS}
\else
\ifslovak
\noindent\hspace{-34.0pt}\mkuctxtc{20}{\@vut@CS}
\else
\noindent\hspace{-34.0pt}\mkuctxtc{20}{\@vut@EN}
\fi
\fi
\vspace{8mm}
\ifczech
\noindent\hspace{-34.0pt}\mktxtc{20}{\@fit@CS}
\else
\ifslovak
\noindent\hspace{-34.0pt}\mktxtc{20}{\@fit@CS}
\else
\noindent\hspace{-34.0pt}\mktxtc{20}{\@fit@EN}
\fi
\fi
\vspace{9cm}
\ifczech
\noindent\hspace{-34.0pt}\mkuctxtc{20}{\@projecttype@CS}
\else
\ifslovak
\noindent\hspace{-34.0pt}\mkuctxtc{20}{\@projecttype@CS}
\else
\noindent\hspace{-34.0pt}\mkuctxtc{20}{\@projecttype@EN}
\fi
\fi
\enlargethispage{5.1\baselineskip}
\vfill
\noindent\mktxtc{16}{\hspace{-52.0pt}Brno, \@year \hfill \getlc@author \hspace{5.0pt}~}
\end{center}
%===================================================
\newpage
\fontfamily{\familydefault}\selectfont%
\addtolength{\voffset}{0.95cm}
}
%-----------------------------------------------------------------------------
% Abstrakt, klicova slova \makeabstract
% Abstract, keywords \makeabstract
%-----------------------------------------------------------------------------
\newcommand\makeabstract{%
\thispagestyle{empty}\null%
\ifczech
\mktxt@b{16}{\@abstract@CS}\noindent\@tabstract@CS
\else
\ifslovak
\mktxt@b{16}{\@abstract@SK}\noindent\@tabstract@CS
\else
\mktxt@b{16}{\@abstract@EN}\noindent\@tabstract@EN
\fi
\fi
\vfill
\ifczech
\mktxt@b{16}{\@abstract@EN}\noindent\@tabstract@EN
\else
\ifslovak
\mktxt@b{16}{\@abstract@EN}\noindent\@tabstract@EN
\else
\mktxt@b{16}{\@abstract@CS}\noindent\@tabstract@CS
\fi
\fi
\vfill
\ifczech
\mktxt@b{16}{\@keywords@CS}\noindent\@tkeywords@CS
\else
\ifslovak
\mktxt@b{16}{\@keywords@SK}\noindent\@tkeywords@CS
\else
\mktxt@b{16}{\@keywords@EN}\noindent\@tkeywords@EN
\fi
\fi
\vfill
\ifczech
\mktxt@b{16}{\@keywords@EN}\noindent\@tkeywords@EN
\else
\ifslovak
\mktxt@b{16}{\@keywords@EN}\noindent\@tkeywords@EN
\else
\mktxt@b{16}{\@keywords@CS}\noindent\@tkeywords@CS
\fi
\fi
\vfill
\mktxt@b{16}{\ifslovak\@cite@SK\else\ifczech\@cite@CS\else\@cite@EN\fi\fi}
\iftoggle{slovak_used}{
\noindent\MakeUppercase{\@author@s}, \@author@n. \it\@title\rm. Brno, \@year. \@projecttype@SK. \@vut@SK, \@fit@SK. {\@supervisor@SK} {\@supervisor@s} {\@supervisor@n}.
}{
\noindent\MakeUppercase{\@author@s}, \@author@n. \it\@title\rm. Brno, \@year. \ifczech\@projecttype@CS\else\@projecttype@EN\fi. \ifczech\@vut@CS\else\@vut@EN\fi, \ifczech\@fit@CS\else\@fit@EN\fi. {\ifczech\@supervisor@CS\else\@supervisor@EN\fi} {\@supervisor@s} {\@supervisor@n}.
}
%===================================================
\newpage
%Rozsireny abstrakt / Extended abstract
%\thispagestyle{empty}%
%\mktxt@b{16}{\@extendedabstract}\noindent\@textendedabstract
%\newpage
}
%-----------------------------------------------------------------------------
% Prohlaseni, podekovani \makedeclaration
% Declaration, acknowledgement \makedeclaration
%-----------------------------------------------------------------------------
\newcommand\makedeclaration{
\thispagestyle{empty}%
\mktxt@b{18}{\@title}
\vspace{10mm}
\ifslovak
\mktxt@b{16}{\@tdecl@SK}
\else
\mktxt@b{16}{\ifczech\@tdecl@CS\else\@tdecl@EN\fi}
\fi
\noindent\@declaration
\begin{flushright}
\makebox[4cm]{\dotfill} \\
\@author\\
\@date
\end{flushright}
\ifx\undefined\@acknowledgment
\else
\vspace{20mm}
\ifslovak
\mktxt@b{16}{\@tackn@SK}
\else
\mktxt@b{16}{\ifczech\@tackn@CS\else\@tackn@EN\fi}
\fi
\noindent\@acknowledgment
\fi
\vfill
%===================================================
\newpage
}
%-----------------------------------------------------------------------------
% Uvodni stranky \maketitle
% Introductory pages \maketitle
%-----------------------------------------------------------------------------
\renewcommand\maketitle{%
\ifcover\makecover\fi%
\thispagestyle{empty}\null%
\iftwoside
\pagestyle{empty}\null%
\fi
%=====================================================
\fontfamily{qhv}\selectfont%
%\newsavebox{\@obrlogo}\newsavebox{\@rtext}\newlength{\@vyskartext}\newlength{\@vyskaobr}%
\newsavebox{\@obrlogo}\newsavebox{\@rtext}\newlength{\@vyskartext}\newlength{\@sirkartext}\newlength{\@vyskaobr}\newlength{\@sirkaobr}%
\ifPrint
\savebox{\@obrlogo}{\hspace*{-0.6cm}\includegraphics[width=4.1cm,keepaspectratio,trim={1.2cm 1.2cm 1.2cm 1.2cm},clip]{template-fig/VUT_symbol_cernobile_CZ}}%symbol VUT
\else
\savebox{\@obrlogo}{\hspace*{-0.6cm}\includegraphics[width=4.1cm,keepaspectratio,trim={1.2cm 1.2cm 1.2cm 1.2cm},clip]{template-fig/VUT_symbol_barevne_CMYK_CZ}}%symbol VUT
\fi
\savebox{\@rtext}{\vbox{\mkuctxt{18}{\ifslovak\@vut@SK\else\ifczech\@vut@CS\else\@vut@EN\fi\fi}\mkuctxt{11}{\ifczech\@vut@EN\else\ifslovak\@vut@EN\else\@vut@CS\fi\fi}}}%text VUT
\settoheight{\@vyskaobr}{\makebox{\usebox{\@obrlogo}}}% vyska loga / logo height
\settowidth{\@sirkaobr}{\makebox{\usebox{\@obrlogo}}}% vyska loga
\settoheight{\@vyskartext}{\makebox{\usebox{\@rtext}}}% vyska textu / text height
\settowidth{\@sirkartext}{\makebox{\usebox{\@rtext}}}% sirka textu / text width
\addtolength{\@vyskaobr}{-\@vyskartext}%odecteme od vysky loga vysku textu / we will subtract text height from logo height
\addtolength{\@sirkartext}{-\@sirkaobr}\addtolength{\@sirkartext}{-10pt}%sirka textu na radku s obrazkem a odsazenim / text width on row with picture and indentation
\newtoggle{gray_used}
\togglefalse{gray_used}
\usebox{\@obrlogo}
\vspace{10mm}
\iftoggle{slovak_used}{
\mkuctxtt{18}{\@vut@SK}
\mkuctxtt{11}{\@vut@EN}
}{
\mkuctxtt{18}{\ifczech\@vut@CS\else\@vut@EN\fi}
\mkuctxtt{11}{\ifczech\@vut@EN\else\@vut@CS\fi}
}
\vspace{5mm}
\iftoggle{slovak_used}{
\mkuctxtt{14}{\@fit@SK}
\mkuctxtt{11}{\@fit@EN}
}{
\mkuctxtt{14}{\ifczech\@fit@CS\else\@fit@EN\fi}
\mkuctxtt{11}{\ifczech\@fit@EN\else\@fit@CS\fi}
}
\vspace{5mm}
\iftoggle{slovak_used}{
\mkuctxtt{14}{\@departmentname@SK}
\mkuctxtt{11}{\@departmentname@EN}
}{
\mkuctxtt{14}{\ifczech\@departmentname@CS\else\@departmentname@EN\fi}
\mkuctxtt{11}{\ifczech\@departmentname@EN\else\@departmentname@CS\fi}
}
\vspace{5mm}
\vfill
\mkuctxtt{18}{\ifslovak\@title@CS\else\ifczech\@title@CS\else\@title@EN\fi\fi}
\mkuctxtt{10}{\ifslovak\@title@EN\else\ifczech\@title@EN\else\@title@CS\fi\fi}
\vfill
\mkuctxtt{14}{\ifslovak\@projecttype@SK\else\ifczech\@projecttype@CS\else\@projecttype@EN\fi\fi}
\mkuctxtt{10}{\ifslovak\@projecttype@EN\else\ifczech\@projecttype@EN\else\@projecttype@CS\fi\fi}
\vspace{5mm}
\mktxtt{14}{\MakeUppercase{\ifslovak\@author@SK\else\ifczech\@author@CS\else\@author@EN\fi\fi} \hfill \get@author}
\mkuctxtt{10}{\ifslovak\@author@EN\else\ifczech\@author@EN\else\@author@CS\fi\fi}
\vspace{5mm}
\mktxtt{14}{\MakeUppercase{\ifslovak\@supervisor@SK\else\ifczech\@supervisor@CS\else\@supervisor@EN\fi\fi} \hfill \get@supervisor}
\mkuctxtt{10}{\ifslovak\@supervisor@EN\else\ifczech\@supervisor@EN\else\@supervisor@CS\fi\fi}
\vspace{10mm}
\mktxtt{11}{BRNO \@year}
\iftwoside
\newgeometry{left=3.46cm, text={15.2cm,23.0cm}, top=2.96cm}
\fi
%zadani / assignment
\ifzadani\includepdf[pages=-,offset=0.6cm -1.7cm]{zadani.pdf}\fi
%\ifzadani\includepdf[pages=-,offset=0.6cm -1.7cm]{assignment.pdf}\fi
\iftwoside
\cleardoublepage
\pagestyle{plain}
\else
\newpage
\fi
\fontfamily{\familydefault}\selectfont%
%=================================================================================
\makeabstract\makedeclaration
\clearpage
\setcounter{tocdepth}{2}\setcounter{page}{1}
}
%-----------------------------------------------------------------------------
\def\uv#1{\iflanguage{english}{``#1''}%
{\quotedblbase #1\textquotedblleft}}%
%\catcode`\"=\active
%\def"{\bgroup
% \iflanguage{english}%
% {``\def"{''\egroup}}%
% {\quotedblbase\def"{\textquotedblleft\egroup}}}
% Now, switch on what is appropriate for czech:
% czech quotation marks
% \bq - begin quotation, \eq - end quotation
\def\bq{\mbox{\kern.1ex\protect\raisebox{-1.3ex}[0pt][0pt]{''}\kern-.1ex}}
\def\eq{\mbox{\kern-.1ex``\kern.1ex}}
%\setlanguage{\czech}
{% % Begin a group for which " is active
\catcode`\"=\active % Make " an active character
\catcode`\@=11 % Make @ an active character
%
% \csdoublequoteson
%
% This macro makes " an active character, resets the control sequence
% \dblqu@te to L (left), and defines \dq as a replacement for ".
%
\gdef\csdoublequoteson{% % \csdoublequoteson enables "
\gdef"{\czechquotes}% % Define " as \czechquotes
\global\catcode`\"=\active% % Make " an active character
\global\chardef\dq=`\"% % Double-quote char. via \dq
\global\let\dblqu@te=L% % Always start with a left double-quote
} % End of macro
%
% \bq, \eq
%
% These macros define default characters for czech left and right
% double quotes. Czech opening quote is created from two commas with
% kerning depending on fontdimen four parameter of current font.
% Better solution should be specially designed character with
% proper kernings; if you have such characters in fonts
% (e.g. in DC-fonts), use it instead. (e.g. define
% macros \bq and \eq e.g. \def\bq{\char"130 }
% in your document/style file-- not in csquote.sty!)
% Similar solution is used for czech right quote.
%
% \cs existence test, stolen from TeXbook exercise 7.7
\def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax }%
%
% another macro to be more efficient in time and space
\global\chardef\f@@r=4
%
\ifundefined{bq}%
\gdef\bq{\kern-.25\fontdimen\f@@r\font,\kern-.8\fontdimen\f@@r\font,%
\kern-.35\fontdimen\f@@r\font}%
\fi
\ifundefined{eq}%
\gdef\eq{\kern-.35\fontdimen\f@@r\font`\kern-.8\fontdimen\f@@r\font`%
\kern-.25\fontdimen\f@@r\font}
\fi
%
% Macro \uv for other usage of \bq and \eq.
%
\ifundefined{uv}\iflanguage{czech}%
\gdef\uv#1{\bq #1\eq}
\fi
%
% \testquotes macro gives warning if citation span this place
%
\gdef\testquotes{\if R\dblqu@te
\message{Warning: You forgot right double quote!}%
\let\dblqu@te=L\fi}
%
% Define the macro that will be executed whenever " is encountered.
%
\gdef\czechquotes{\protect\czechqu@tes}
\gdef\czechqu@tes{%
% If the double-quote is the first character in a new paragraph,
% make sure it becomes a left double-quote. This case can be
% detected by checking to see if TeX is currently in vertical mode.
% If so, the double-quote is at the beginning of the paragraph
% (since " hasn't actually generated any horizontal mode tokens
% yet, TeX is still in vertical mode). If the mode is vertical,
% set \dblqu@te equal to L.
%
\ifinner\else\ifvmode\testquotes\fi\fi%
%
% Now insert the appropriate left or right double-quote.
%
% If \dblqu@te is L, insert an opening quote and set \dblqu@te to R.
%
\if L\dblqu@te\bq\global\let\dblqu@te=R%
%
% Otherwise, save the current \spacefactor, insert '', set \dblqu@te
% to L, and reset the original \spacefactor.
%
\else%
\let\xxx=\spacefactor% % Save the \spacefactor
\eq% % Insert ending quote
\global\let\dblqu@te=L% % and reset \dblqu@te
\spacefactor\xxx% % Reset the \spacefactor
\fi% % End of \if L\dblqu@te...
} % End of " macro
} % End of group
\gdef\csdoublequotesoff{%
\catcode`\"=12% % Set " back to other
}
%
% Czech quotes are default
%
\csdoublequoteson
% Zarovnání v seznamu typu description
% Alignment in description list
% http://tex.stackexchange.com/questions/7008/change-hanging-indent-in-description-list
\makeatletter
\newcommand{\DESCRIPTION@original@item}{}
\let\DESCRIPTION@original@item\item
\newcommand*{\DESCRIPTION@envir}{DESCRIPTION}
\newlength{\DESCRIPTION@totalleftmargin}
\newlength{\DESCRIPTION@linewidth}
\newcommand{\DESCRIPTION@makelabel}[1]{\llap{#1}}%
\newcommand{\DESCRIPTION@item}[1][]{%
\setlength{\@totalleftmargin}%
{\DESCRIPTION@totalleftmargin+\widthof{\textbf{#1 }}-\leftmargin}%
\setlength{\linewidth}
{\DESCRIPTION@linewidth-\widthof{\textbf{#1 }}+\leftmargin}%
\par\parshape \@ne \@totalleftmargin \linewidth
\DESCRIPTION@original@item[\textbf{#1}]%
}
\newenvironment{DESCRIPTION}
{\list{}{\setlength{\labelwidth}{0cm}%
\let\makelabel\DESCRIPTION@makelabel}%
\setlength{\DESCRIPTION@totalleftmargin}{\@totalleftmargin}%
\setlength{\DESCRIPTION@linewidth}{\linewidth}%
\renewcommand{\item}{\ifx\@currenvir\DESCRIPTION@envir
\expandafter\DESCRIPTION@item
\else
\expandafter\DESCRIPTION@original@item
\fi}}
{\endlist}
\makeatother
% Balíčky
% Packages
\usepackage[czech,slovak,english]{babel}
\usepackage[]{opensans}
\usepackage[utf8]{inputenc} %kodovani / encoding
\usepackage[T1]{fontenc}
\usepackage{cmap}
\usepackage{float}
\usepackage{calc}
\usepackage{longtable,booktabs}
\usepackage{xcolor,colortbl}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{ragged2e}
\usepackage{url}
\DeclareUrlCommand\url{\def\UrlLeft{<}\def\UrlRight{>} \urlstyle{tt}}
\def\UrlBreaks{\do\/\do-}
\usepackage{blindtext}
\usepackage{listings}
\usepackage[toc,page,header]{appendix}
\RequirePackage{titletoc}
\ifczech
\usepackage{ae}
\fi
%--------------------------------------------------------
% Oprava pro Čechy a Slováky -- vyžaduje aktuální balíčky!
% Fix for CZECH and SLOVAK -- needs up to date packages!
% http://tex.stackexchange.com/questions/111999/slovak-and-czech-babel-gives-problems-with-cmidrule-and-cline
%--------------------------------------------------------
\usepackage{regexpatch}
\ifczechslovak
\makeatletter
% Change the `-` delimiter to an active character
\xpatchparametertext\@@@cmidrule{-}{\cA-}{}{}
\xpatchparametertext\@cline{-}{\cA-}{}{}
\makeatother
\fi
% Příkazy pro TODO
% commands for TODO
\newcommand{\todo}[1]{\textcolor{red}{\textbf{[[#1]]}}}
\newcommand{\phony}[1]{\textcolor{gray}{#1}}
\newcommand{\blind}[1]{\textcolor{gray}{\Blindtext[#1]}}
% Sloupec zarovnaný vlevo s pevnou šířkou
% Left aligned column with a fixed width
\newcolumntype{L}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}
\endinput
%%
%% End of file `fitthesis.cls'.