summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fithesis/style/mu/sci.dtx
blob: db7059fbec51ef5784a5133a59ab0f1a95a9da21 (plain)
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
% \file{style/mu/fithesis-sci.sty}
% This is the style file for the theses written at the Faculty of
% Science at the Masaryk University in Brno. It has been
% prepared in accordance with the formal requirements published at
% the website of the faculty\footnote{See
% \url{http://www.sci.muni.cz/NW/predpisy/od/OD-2014-05.pdf}, and
% \url{http://www.sci.muni.cz/cz/BcMgrStudium/Legislativa/Sablon^^A
% y}}.
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fithesis/style/mu/fithesis-sci}[2017/06/02]
%    \end{macrocode}
% The file defines the color scheme of the respective faculty. Note
% the the color definitions are in RGB, which makes the resulting
% files generally unsuitable for printing.
%    \begin{macrocode}
\thesis@color@setup{
  links={HTML}{20E366},
  tableEmph={HTML}{8EDEAA},
  tableOdd={HTML}{EDF7F1},
  tableEven={HTML}{CCEDD8}}
%    \end{macrocode}
% The bibliography support is enabled. The |numeric| citations are
% used and the bibliography is sorted in citation order.
%    \begin{macrocode}
\thesis@bibliography@setup{
  style=iso-numeric,
  sorting=none}
\thesis@bibliography@load
%    \end{macrocode}
% The file uses Czech locale strings within the macros.
%    \begin{macrocode}
\thesis@requireLocale{czech}
%    \end{macrocode}
% \begin{macro}{\ifthesis@czech}
% The |\ifthesis@czech| \ldots |\else| \ldots |\fi| conditional is made
% available for testing, whether or not the current locale is Czech.
% \changes{v0.3.45}{2017/05/23}{Defined the
%   \cs{ifthesis@czech} macro in
%   \texttt{style/mu/fithesis-sci.sty}. The patch was submitted by
%   Juraj Pálenik. [VN]}
%    \begin{macrocode}
\def\ifthesis@czech{
  \expandafter\def\expandafter\@czech\expandafter{\string
  \czech}%
  \expandafter\expandafter\expandafter\def\expandafter
  \expandafter\expandafter\@locale\expandafter\expandafter
  \expandafter{\expandafter\string\csname\thesis@locale\endcsname}%
  \expandafter\csname\expandafter i\expandafter f\ifx\@locale
  \@czech
    true%
  \else
    false%
  \fi\endcsname}
\ifthesis@czech
  \expandafter\expandafter\expandafter\let\expandafter\expandafter
    \csname ifthesis@czech\endcsname\csname iftrue\endcsname
\else
  \expandafter\expandafter\expandafter\let\expandafter\expandafter
    \csname ifthesis@czech\endcsname\csname iffalse\endcsname
\fi
%    \end{macrocode}
% The file recognizes the following options: \begin{itemize}
%   \item\texttt{abstractonsinglepage} -- The abstracts are going
%   to be typeset on a single page as opposed to being spread
%   across several pages. This is the default for theses whose main
%   locale is neither Czech nor English.
% \end{itemize}
% \changes{v0.3.45}{2017/05/24}{Defined the
%   \texttt{abstractonsinglepage} option in
%   \texttt{style/mu/fithesis-sci.sty}. The patch was submitted by
%   Juraj Pálenik. [VN]}
%    \begin{macrocode}
\newif\ifthesis@abstractonsinglepage@
\DeclareOption{abstractonsinglepage}{\thesis@abstractonsinglepage@true}
\ifthesis@czech\else\ifthesis@english\else
  \ExecuteOptions{abstractonsinglepage}
\fi\fi
\ProcessOptions*
%    \end{macrocode}
% \end{macro}
% The file loads the following packages:
% \begin{itemize}
%   \item\textsf{tikz} -- Used for dimension arithmetic.
%   \item\textsf{changepage} -- Used for width adjustments.
% \end{itemize}
%    \begin{macrocode}
\thesis@require{tikz}
\thesis@require{changepage}
%    \end{macrocode}
% In case of rigorous and doctoral theses, the style file hides the
% thesis assignment in accordance with the formal requirements of
% the faculty.
% \begin{macrocode}
\ifx\thesis@type\thesis@bachelors\else
\ifx\thesis@type\thesis@masters\else
  \thesis@blocks@assignment@false
\fi\fi
%    \end{macrocode}
% Enable the inclusion of the scanned assignment inside the digital
% version of the document.
% \begin{macrocode}
\thesis@blocks@assignment@hideIfDigital@false
%    \end{macrocode}
% \begin{macro}{\thesis@blocks@bibEntry}
% The |\thesis@blocks@bibEntry| macro typesets a bibliographical
% entry. Along with the macros required by the locale file
% interface, the locale files need to define the following macros:
% \begin{itemize}
%   \item|\thesis@|\textit{locale}|@bib@title| -- The title of the
%     entire block
%   \item|\thesis@|\textit{locale}|@bib@author| -- The label of the
%     author name entry
%   \item|\thesis@|\textit{locale}|@bib@title| -- The label of the
%     title name entry
%   \item|\thesis@|\textit{locale}|@bib@programme| -- The label of
%     the programme name entry
%   \item|\thesis@|\textit{locale}|@bib@field| -- The label of the
%     field of study name entry
%   \item|\thesis@|\textit{locale}|@bib@advisor| -- The label of
%     the advisor name entry
%   \item|\thesis@|\textit{locale}|@bib@academicYear| -- The label
%     of the academic year entry
%   \item|\thesis@|\textit{locale}|@bib@pages| -- The label of the
%     number of pages entry
%   \item|\thesis@|\textit{locale}|@bib@keywords| -- The label of
%     the keywords entry
% \end{itemize}
% \changes{v0.3.45}{2017/05/26}{Bibliographical entries in
%   \texttt{style/mu/fithesis-sci.sty} now face each other when the
%   main locale is either Czech or English. [VN]}
%    \begin{macrocode}
\def\thesis@blocks@bibEntry{%
  \begin{alwayssingle}%
    % Clear only the right page, if the main locale is Czech.
    \ifthesis@czech
      \begingroup
      \let\thesis@blocks@clear\thesis@blocks@clearRight
    \fi
    \chapter*{\thesis@@{bib@title}}%
    \ifthesis@czech
      \endgroup
    \fi
    {% Calculate the width of the columns
    \let\@A\relax\newlength{\@A}\settowidth{\@A}{{%
      \bf\thesis@@{bib@author}:}}
    \let\@B\relax\newlength{\@B}\settowidth{\@B}{{%
      \bf\thesis@@{bib@thesisTitle}:}}
    \let\@C\relax\newlength{\@C}\settowidth{\@C}{{%
      \bf\thesis@@{bib@programme}:}}
    \let\@D\relax\newlength{\@D}\settowidth{\@D}{{%
      \bf\thesis@@{bib@field}:}}
    % Unless this is a rigorous thesis, we will be typesetting the
    % name of the thesis advisor.
    \let\@E\relax\newlength{\@E}
      \ifx\thesis@type\thesis@rigorous
        \setlength{\@E}{0pt}%
      \else
        \settowidth{\@E}{{\bf\thesis@@{bib@advisor}:}}
      \fi
    \let\@F\relax\newlength{\@F}\settowidth{\@F}{{%
      \bf\thesis@@{bib@academicYear}:}}
    \let\@G\relax\newlength{\@G}\settowidth{\@G}{{%
      \bf\thesis@@{bib@pages}:}}
    \let\@H\relax\newlength{\@H}\settowidth{\@H}{{%
      \bf\thesis@@{bib@keywords}:}}
    \let\@skip\relax\newlength{\@skip}\setlength{\@skip}{16pt}
    \let\@left\relax\newlength{\@left}\pgfmathsetlength{\@left}{%
      max(\@A,\@B,\@C,\@D,\@E,\@F,\@G,\@H)}
    \let\@right\relax\newlength{\@right}\setlength{\@right}{%
      \textwidth-\@left-\@skip}
    % Typeset the table
    \renewcommand{\arraystretch}{2}
    \noindent\begin{thesis@newtable@old}%
      {@{}p{\@left}@{\hskip\@skip}p{\@right}@{}}
      \textbf{\thesis@@{bib@author}:} &
        \noindent\parbox[t]{\@right}{
          \thesis@author\\
          \thesis@@{facultyName},
          \thesis@@{universityName}\\
          \thesis@department@name
        }\\
      \textbf{\thesis@@{bib@thesisTitle}:}
        & \thesis@title \\
      \textbf{\thesis@@{bib@programme}:}
        & \thesis@programme \\
      \textbf{\thesis@@{bib@field}:}
        & \thesis@field@name \\
      % Unless this is a rigorous thesis, typeset the name of the
      % thesis advisor.
      \ifx\thesis@type\thesis@rigorous\else
        \textbf{\thesis@@{bib@advisor}:}
          & \thesis@advisor \\
      \fi
      \textbf{\thesis@@{bib@academicYear}:}
        & \thesis@academicYear \\
      \textbf{\thesis@@{bib@pages}:}
        & \thesis@pages@preamble{} + \thesis@pages \\
      \textbf{\thesis@@{bib@keywords}:}
        & \thesis@TeXkeywords \\
    \end{thesis@newtable@old}}
  \end{alwayssingle}}
%    \end{macrocode}
% \end{macro}\begin{macro}{\thesis@blocks@bibEntryEn}
% The |\thesis@blocks@bibEntryEn| macro typesets a bibliographical
% entry in English unless the current locale is English.
%    \begin{macrocode}
\def\thesis@blocks@bibEntryEn{%
  \ifthesis@english\else
    {\thesis@selectLocale{english}
    \begin{alwayssingle}
      \chapter*{\thesis@english@bib@title}%
      {% Calculate the width of the columns
      \let\@A\relax\newlength{\@A}\settowidth{\@A}{{%
        \bf\thesis@english@bib@author:}}
      \let\@B\relax\newlength{\@B}\settowidth{\@B}{{%
        \bf\thesis@english@bib@thesisTitle:}}
      \let\@C\relax\newlength{\@C}\settowidth{\@C}{{%
        \bf\thesis@english@bib@programme:}}
      \let\@D\relax\newlength{\@D}\settowidth{\@D}{{%
        \bf\thesis@english@bib@field:}}
      % Unless this is a rigorous thesis, we will be typesetting
      % the name of the thesis advisor.
      \let\@E\relax\newlength{\@E}
        \ifx\thesis@type\thesis@rigorous
          \setlength{\@E}{0pt}%
        \else
          \settowidth{\@E}{{\bf\thesis@english@bib@advisor:}}
        \fi
      \let\@F\relax\newlength{\@F}\settowidth{\@F}{{%
        \bf\thesis@english@bib@academicYear:}}
      \let\@G\relax\newlength{\@G}\settowidth{\@G}{{%
        \bf\thesis@english@bib@pages:}}
      \let\@H\relax\newlength{\@H}\settowidth{\@H}{{%
        \bf\thesis@english@bib@keywords:}}
      \let\@skip\relax\newlength{\@skip}\setlength{\@skip}{16pt}
      \let\@left\relax\newlength{\@left}\pgfmathsetlength{\@left}{%
        max(\@A,\@B,\@C,\@D,\@E,\@F,\@G,\@H)}
      \let\@right\relax\newlength{\@right}\setlength{\@right}{%
        \textwidth-\@left-\@skip}
      % Typeset the table
      \renewcommand{\arraystretch}{2}
      \noindent\begin{thesis@newtable@old}%
        {@{}p{\@left}@{\hskip\@skip}p{\@right}@{}}
          \textbf{\thesis@english@bib@author:} &
            \noindent\parbox[t]{\@right}{
              \thesis@author\\
              \thesis@english@facultyName,
              \thesis@english@universityName\\
              \thesis@departmentEn@name
            }\\
          \textbf{\thesis@english@bib@thesisTitle:}
            & \thesis@titleEn \\
          \textbf{\thesis@english@bib@programme:}
            & \thesis@programmeEn \\
          \textbf{\thesis@english@bib@field:}
            & \thesis@fieldEn@name \\
          % Unless this is a rigorous thesis, typeset the name of the
          % thesis advisor.
          \ifx\thesis@type\thesis@rigorous\else
            \textbf{\thesis@english@bib@advisor:}
              & \thesis@advisor \\
          \fi
          \textbf{\thesis@english@bib@academicYear:}
            & \thesis@academicYear \\
          \textbf{\thesis@english@bib@pages:}
            & \thesis@pages@preamble{} + \thesis@pages \\
          \textbf{\thesis@english@bib@keywords:}
            & \thesis@TeXkeywordsEn \\
        \end{thesis@newtable@old}}
      \end{alwayssingle}
    }%
  \fi}
%    \end{macrocode}
% \end{macro}\begin{macro}{\thesis@blocks@abstractCs}
% The |\thesis@blocks@abstractCs| macro typesets the
% abstract in Czech. If the current locale is Czech, the
% macro produces no output. The following extra data field is
% defined for the macro: \begin{itemize}
%   \item|abstractCs| -- the Czech title of the thesis used for the
%     typesetting. This extra data field will expand to
%     |\thesis@abstract| if the current locale of the thesis
%     is Czech.
% \end{itemize}
% \changes{v0.3.45}{2017/05/28}{Defined the
%   \cs{thesis@blocks@abstractCs} macro in
%   \texttt{style/mu/fithesis-sci.sty}. The patch was submitted by
%   Juraj Pálenik. [VN]}
%    \begin{macrocode}
\thesis@def@extra[{
  \ifthesis@czech
    \thesis@abstract
  \else
    \thesis@placeholder@extra@abstractCs
  \fi
}]{abstractCs}
\def\thesis@blocks@abstractCs{%
  \ifthesis@czech\else
    {\thesis@selectLocale{czech}%
    \begin{alwayssingle}%
      \ifthesis@abstractonsinglepage@
        \thesis@blocks@clear
      \else
        % Start the new chapter without clearing the left page.
        \thesis@blocks@clearRight
      \fi
      {\let\thesis@blocks@clear\relax
      \chapter*{\thesis@czech@abstractTitle}%
      \thesis@extra@abstractCs}%
      \par\vfil\null
    \end{alwayssingle}}%
  \fi}
%    \end{macrocode}
% \end{macro}\begin{macro}{\thesis@blocks@bibEntryCs}
% The |\thesis@blocks@bibEntryCs| macro typesets a bibliographical
% entry in English unless the current locale is Czech. The
% macro uses the following extra data fields:\begin{itemize}
%   \item|programmeCs| -- the Czech name of the author's study
%     programme. This extra data field will expand to
%     |\thesis@programme| if the current locale of the thesis
%     is Czech.
%   \item|fieldCs| -- the Czech name of the author's field of
%     study. This extra data field will expand to
%     |\thesis@field@name| if the current locale of the thesis
%     is Czech.
%   \item|keywordsCs| -- the Czech keywords of the thesis.
%     This extra data field will expand to |\thesis@keywords| if
%     the current locale of the thesis is Czech.
%   \item|TeXkeywordsCs| -- the Czech \TeX{} keywords of the thesis.
%     This extra data field will expand to |\thesis@TeXkeywords| if
%     the current locale of the thesis is Czech.
% \end{itemize}
% \changes{v0.3.45}{2017/05/21}{Defined the
%   \cs{thesis@blocks@bibEntryCs} macro in
%   \texttt{style/mu/fithesis-sci.sty}. The patch was submitted by
%   Juraj Pálenik. [VN]}
%    \begin{macrocode}
\thesis@def@extra[{
  \ifthesis@czech
    \thesis@programme
  \else
    \thesis@placeholder@extra@programmeCs
  \fi
}]{programmeCs}
\thesis@def@extra[{
  \ifthesis@czech
    \thesis@field@name
  \else
    \thesis@placeholder@extra@fieldCs
  \fi
}]{fieldCs}
\thesis@def@extra[{
  \ifthesis@czech
    \thesis@title
  \else
    \thesis@placeholder@extra@titleCs
  \fi
}]{titleCs}
\thesis@def@extra[{
  \ifthesis@czech
    \thesis@keywords
  \else
    \thesis@placeholder@extra@keywordsCs
  \fi
}]{keywordsCs}
\thesis@def@extra[{
  \ifthesis@czech
    \thesis@TeXkeywords
  \else
    \thesis@placeholder@extra@keywordsCs
  \fi
}]{TeXkeywordsCs}
%    \end{macrocode}
% \changes{v0.3.45}{2017/05/26}{Bibliographical entries in
%   \texttt{style/mu/fithesis-sci.sty} now face each other when the
%   main locale is either Czech or English. [VN]}
%    \begin{macrocode}
\def\thesis@blocks@bibEntryCs{%
  \ifthesis@czech\else
    {\thesis@selectLocale{czech}
    \begin{alwayssingle}
      % Clear only the right page, if the main locale is English.
      \ifthesis@english
        \begingroup
        \let\thesis@blocks@clear\thesis@blocks@clearRight
      \fi
      \chapter*{\thesis@czech@bib@title}%
      \ifthesis@english
        \endgroup
      \fi
      {% Calculate the width of the columns
      \let\@A\relax\newlength{\@A}\settowidth{\@A}{{%
        \bf\thesis@czech@bib@author:}}
      \let\@B\relax\newlength{\@B}\settowidth{\@B}{{%
        \bf\thesis@czech@bib@thesisTitle:}}
      \let\@C\relax\newlength{\@C}\settowidth{\@C}{{%
        \bf\thesis@czech@bib@programme:}}
      \let\@D\relax\newlength{\@D}\settowidth{\@D}{{%
        \bf\thesis@czech@bib@field:}}
      % Unless this is a rigorous thesis, we will be typesetting
      % the name of the thesis advisor.
      \let\@E\relax\newlength{\@E}
        \ifx\thesis@type\thesis@rigorous
          \setlength{\@E}{0pt}%
        \else
          \settowidth{\@E}{{\bf\thesis@czech@bib@advisor:}}
        \fi
      \let\@F\relax\newlength{\@F}\settowidth{\@F}{{%
        \bf\thesis@czech@bib@academicYear:}}
      \let\@G\relax\newlength{\@G}\settowidth{\@G}{{%
        \bf\thesis@czech@bib@pages:}}
      \let\@H\relax\newlength{\@H}\settowidth{\@H}{{%
        \bf\thesis@czech@bib@keywords:}}
      \let\@skip\relax\newlength{\@skip}\setlength{\@skip}{16pt}
      \let\@left\relax\newlength{\@left}\pgfmathsetlength{\@left}{%
        max(\@A,\@B,\@C,\@D,\@E,\@F,\@G,\@H)}
      \let\@right\relax\newlength{\@right}\setlength{\@right}{%
        \textwidth-\@left-\@skip}
      % Typeset the table
      \renewcommand{\arraystretch}{2}
      \noindent\begin{thesis@newtable@old}%
        {@{}p{\@left}@{\hskip\@skip}p{\@right}@{}}
          \textbf{\thesis@czech@bib@author:} &
            \noindent\parbox[t]{\@right}{
              \thesis@author\\
              \thesis@czech@facultyName,
              \thesis@czech@universityName\\
              \thesis@extra@departmentCs
            }\\
          \textbf{\thesis@czech@bib@thesisTitle:}
            & \thesis@extra@titleCs \\
          \textbf{\thesis@czech@bib@programme:}
            & \thesis@extra@programmeCs \\
          \textbf{\thesis@czech@bib@field:}
            & \thesis@extra@fieldCs \\
          % Unless this is a rigorous thesis, typeset the name of the
          % thesis advisor.
          \ifx\thesis@type\thesis@rigorous\else
            \textbf{\thesis@czech@bib@advisor:}
              & \thesis@advisor \\
          \fi
          \textbf{\thesis@czech@bib@academicYear:}
            & \thesis@academicYear \\
          \textbf{\thesis@czech@bib@pages:}
            & \thesis@pages@preamble{} + \thesis@pages \\
          \textbf{\thesis@czech@bib@keywords:}
            & \thesis@extra@TeXkeywordsCs \\
        \end{thesis@newtable@old}}
      \end{alwayssingle}
    }%
  \fi}
%    \end{macrocode}
% \end{macro}\begin{macro}{\thesis@blocks@frontMatter}
% The |\thesis@blocks@frontMatter| macro sets up the style
% of the front matter front matter of the thesis. The front matter
% is typeset without any visible numbering, as mandated by the
% formal requirements of the faculty.
%    \begin{macrocode}
\def\thesis@blocks@frontMatter{%
  \thesis@blocks@clear
  \pagestyle{empty}
  \parindent 1.5em
  \setcounter{page}{1}
  \pagenumbering{roman}}
%    \end{macrocode}
% \end{macro}\begin{macro}{\thesis@blocks@cover}
% The |\thesis@blocks@cover| macro typesets the thesis
% cover. The following extra data field is defined for the macro:
% \begin{itemize}
%   \item|departmentCs| -- the Czech name of the department at
%     which the thesis is being written. This extra data field will
%     expand to |\thesis@department@name| if the main locale of the
%     thesis is Czech.
% \end{itemize}
% \begin{macrocode}
\thesis@def@extra[{
  \ifthesis@czech
    \thesis@department@name
  \else
    \thesis@placeholder@extra@departmentCs
  \fi
}]{departmentCs}
\def\thesis@blocks@cover{{%
  \thesis@selectLocale{czech}
  \ifthesis@cover@
    \thesis@blocks@clear
    \begin{alwayssingle}
      \begin{center}
      {\sc\thesis@titlePage@LARGE\thesis@czech@universityName\\%
          \thesis@titlePage@Large\thesis@czech@facultyName\\[0.3em]%
          \thesis@titlePage@normalsize\thesis@extra@departmentCs}
      \vfill
      {\bf\thesis@titlePage@Huge\thesis@czech@typeName}
      \vfill
      {\thesis@titlePage@large\thesis@place
       \ \thesis@year\hfill\thesis@author}
      \end{center}
    \end{alwayssingle}
  \fi}}
%    \end{macrocode}
% \end{macro}\begin{macro}{\thesis@blocks@titlePage}
% The |\thesis@blocks@titlePage| macro typesets the thesis
% title page. Depending on the value of the |\ifthesis@color@|
% conditional, the faculty logo is loaded from either
% |\thesis@logopath|, if \texttt{false}, or from
% |\thesis@logopath color/|, if \texttt{true}.
% The following extra data field is defined for the macro:
% \begin{itemize}
%   \item|TeXtitleCs| -- the Czech title of the thesis used for the
%     typesetting. This extra data field will expand to
%     |\thesis@TeXtitle| if the main locale of the thesis is Czech.
% \end{itemize}
% \begin{macrocode}
\thesis@def@extra[{
  \ifthesis@czech
    \thesis@TeXtitle
  \else
    \thesis@placeholder@extra@titleCs
  \fi
}]{TeXtitleCs}
\def\thesis@blocks@titlePage{{%
  \thesis@blocks@clear
  \thesis@selectLocale{czech}
  \begin{alwayssingle}
    % The top of the page
    \begin{adjustwidth}{-12mm}{}
      \begin{minipage}{30mm}
        \thesis@blocks@universityLogo@color[width=30mm]
      \end{minipage}\begin{minipage}{89mm}
        \begin{center}
          {\sc\thesis@titlePage@LARGE\thesis@czech@universityName\\%
              \thesis@titlePage@Large\thesis@czech@facultyName\\[0.3em]%
              \thesis@titlePage@normalsize\thesis@extra@departmentCs}
          \rule{\textwidth}{2pt}\vspace*{2mm}
        \end{center}
      \end{minipage}\begin{minipage}{30mm}
        \thesis@blocks@facultyLogo@color[width=30mm]
      \end{minipage}
    \end{adjustwidth}
    % The middle of the page
    \vfill
    \parbox\textwidth{% Prevent vfills from squashing the leading
      \bf\thesis@titlePage@Huge\thesis@extra@TeXtitleCs}
    {\thesis@titlePage@Huge\\[0.8em]}
    {\thesis@titlePage@large\thesis@czech@typeName\\[1em]}
    {\bf\thesis@titlePage@LARGE\thesis@author\\}
    \vfill\noindent
    % The bottom of the page
    {\bf\thesis@titlePage@normalsize
      % Unless this is a rigorous thesis, typeset the name of the
      % thesis advisor.
      \ifx\thesis@type\thesis@rigorous\else
          \thesis@czech@advisorTitle: \thesis@advisor\hfill
      \fi
      \thesis@place\ \thesis@year}
  \end{alwayssingle}}}
%    \end{macrocode}
% \end{macro}\begin{macro}{\thesis@blocks@thanks}
% The |\thesis@blocks@thanks| macro typesets the
% acknowledgements, if the |\thesis@thanks| macro is
% defined. Otherwise, the macro produces no output.
% As per the faculty requirements, the acknowledgements are
% positioned at the top of the page.
% \changes{v0.3.45}{2017/05/24}{Redefined the
%   \cs{thesis@blocks@thanks} and \cs{thesis@blocks@declaration}
%   macros in \texttt{style/mu/fithesis-sci.sty}. The patch was
%   submitted by Juraj Pálenik. [VN]}
%    \begin{macrocode}
\def\thesis@blocks@thanks{%
  \thesis@blocks@clear
  \ifx\thesis@thanks\undefined\else
    \begin{alwayssingle}%
      \chapter*{\thesis@@{thanksTitle}}%
      \leavevmode\thesis@thanks
    \end{alwayssingle}%
  \fi}
%    \end{macrocode}
% \end{macro}\begin{macro}{\thesis@blocks@declaration}
% The |\thesis@blocks@declaration| macro typesets the declaration
% text. Unlike the generic |\thesis@blocks@declaration| macro from
% the \texttt{style/mu/fithesis-sci.sty} file, this definition
% includes the date and a blank line for the author's signature, as
% per the requirements of the faculty.
%    \begin{macrocode}
\def\thesis@blocks@declaration{%
  \begin{alwayssingle}%
    \leavevmode\vfill
    % Start the new chapter without clearing any page.
    {\let\thesis@blocks@clear\relax
    \chapter*{\thesis@@{declarationTitle}}}%
    \thesis@declaration
    \vskip 2cm%
    {\let\@A\relax\newlength{\@A}
      \settowidth{\@A}{\thesis@@{authorSignature}}
      \setlength{\@A}{\@A+1cm}
    \noindent\thesis@place, \thesis@@{formattedDate}\hfill
    \begin{minipage}[t]{\@A}%
      \centering\rule{\@A}{1pt}\\
      \thesis@@{authorSignature}\par
    \end{minipage}}
  \end{alwayssingle}}
%    \end{macrocode}
% \end{macro}
% Note that there is no direct support for the seminar paper and
% thesis proposal types.  If you would like to change the contents
% of the preamble and the postamble, you should modify the
% |\thesis@blocks@preamble| and |\thesis@blocks@postamble| macros.
%
% All blocks within the autolayout preamble and postamble that are
% not defined within this file are defined in the
% \texttt{style/mu/fithesis-base.sty} file. The entire front matter
% is typeset as though the locale were Czech in accordance with the
% formal requirements of the faculty.
%    \begin{macrocode}
\def\thesis@blocks@preamble{
  \thesis@blocks@coverMatter
    \thesis@blocks@cover
  \thesis@blocks@frontMatter
    \thesis@blocks@titlePage
    \thesis@blocks@clearRight
      \thesis@blocks@bibEntryCs
      \thesis@blocks@bibEntry
      \thesis@blocks@bibEntryEn
      \thesis@blocks@abstractCs
      \ifthesis@abstractonsinglepage@
        \begingroup
          \let\clearpage\relax
      \fi
          \thesis@blocks@abstract
          \thesis@blocks@abstractEn
      \ifthesis@abstractonsinglepage@
        \endgroup
      \fi
    \thesis@blocks@assignment
    {\thesis@selectLocale{czech}%
    \thesis@blocks@thanks
    \thesis@blocks@declaration
    \thesis@blocks@clear
      \pagestyle{plain}%
      \thesis@blocks@tables}}
\def\thesis@blocks@postamble{%
  \thesis@blocks@bibliography}
%    \end{macrocode}