-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tex
189 lines (151 loc) · 4.3 KB
/
main.tex
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
% options:
% thesis=B bachelor's thesis
% thesis=M master's thesis
% czech thesis in Czech language
% english thesis in English language
% arara: xelatex: { shell: yes }
% arara: biber
% arara: xelatex: { shell: yes }
% arara: xelatex: { shell: yes }
\documentclass[thesis=M,czech]{template/FITthesisXE}
%\addbibresource{mendeley.bib}
\addbibresource{crossrefs.bib}
\usepackage{import}
\usepackage{booktabs}
\usepackage{dirtree}
\usepackage{ragged2e}
\usepackage[shortlabels]{enumitem}
\usepackage{float}
\usepackage{caption} % Fix hyperref links to captions
\floatstyle{plaintop}
\restylefloat{table}
\setcounter{tocdepth}{2}
\hyphenation{trans-klu-ze}
\hyphenation{trans-klu-zi}
\hyphenation{trans-klu-do-va-ný}
% References are in English by default
% https://tex.stackexchange.com/a/279302/135332
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldset=langid, fieldvalue={english}]
}
}
}
% https://tex.stackexchange.com/questions/30029/enumerated-description-list
\newcounter{descriptcount}
\renewcommand*\thedescriptcount{\alph{descriptcount}}
% from https://www.herout.net/blog/2017/03/pomalu-uz-pojdme-psat/
\usepackage{xcolor}
\newcommand{\todo}[1]{
%\textcolor{red}{\textbf{[[#1]]}}
}
\usepackage{blindtext}
\newcommand{\blind}[1][1]{
}
\newcommand{\importsvg}[1]{
\def\svgwidth{\columnwidth}
\import{media/svg/}{#1.pdf_tex}
}
% usage: \imagefigure{filename}{description}
\newcommand{\imagefigurefull}[3]{
\begin{figure}[htbp]
\centering
\includegraphics[width=#3\linewidth]{media/#1}
\caption{#2 \label{pic:#1}}
\end{figure}
}
% usage: \imagefigurelarge[short desc]{filename}{description}
\newcommand{\imagefigurelarge}[3][]{
\begin{figure}[htbp]
\centering
\includegraphics[width=.99\linewidth]{media/#2}
\caption[#1]{#3 \label{pic:#2}}
\end{figure}
}
\newcommand{\imagefigure}[2]{
\imagefigurefull{#1}{#2}{.6}
}
\newcommand{\screenshotfigure}[2]{
\imagefigurefull{#1}{#2}{.4}
}
\newcommand{\idkijustwanttwotofitonapagefigure}[2]{
\imagefigurefull{#1}{#2}{.83}
}
\newcommand{\svgfigure}[2]{
\begin{figure}[htbp]
\centering
\importsvg{#1}
\caption{#2 \label{pic:#1}}
\end{figure}
}
\newcommand{\eng}[1]{%
\foreignlanguage{english}{#1}%
}
\newcommand{\enterm}[1]{%
\eng{\emph{#1}}%
}
\newcommand{\pnoref}[2][viz]{%
#1 str.~\pageref{#2}%
}
% \MakeAutoQuote{„}{“}
% \MakeAutoQuote*{‚}{‘}
\renewcommand{\mkbegdispquote}[2]{\strut\llap{,,}\ignorespaces}
\renewcommand{\mkenddispquote}[2]{\unskip#1``\sourceatright{#2}}
\SetCiteCommand{\autocite}
\renewcommand{\mkcitation}[1]{ #1}
\newenvironment{quoted}[1]{%
\renewcommand{\mkcitation}[1]{#1}
\begin{displayquote}[{#1}]
}%
{%
\end{displayquote}
}
% Redeclare \citetitle* to include subtitle
% https://groups.google.com/d/msg/comp.text.tex/yraHKtHQidA/yJNoVqc2KVkJ
\DeclareCiteCommand*{\citetitle}{%
\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\indexfield{indextitle}%
\printtext[citetitle]{%
\printfield[noformat]{title}%
\iffieldundef{subtitle}{}{\subtitlepunct}%
\printfield[noformat]{subtitle}}}%
{\multicitedelim}
{\usebibmacro{postnote}}
% Redefine formatting – some stuff was with quotes, some in italic
\DeclareFieldFormat*{citetitle}{\textit{#1}}
% Respect name prefixes in citations in document
% https://tex.stackexchange.com/questions/21361/how-can-i-put-a-names-prefix-in-front-in-citations-but-not-in-the-bibliograph
\makeatletter
\AtBeginDocument{\toggletrue{blx@useprefix}}
\AtBeginBibliography{\togglefalse{blx@useprefix}}
\makeatother
%\makeglossaries
%\input{"src/glossary.tex"}
%\glsaddall % add even unused acronyms
\imprint{\input{"src/01-imprint.tex"}}
\acknowledgements{\input{"src/01-acknowledgements.tex"}}
\abstractEN{\input{"src/02-abstract_en.tex"}}
\abstractCS{\input{"src/02-abstract_cs.tex"}}
\input{"src/03-meta.tex"}
\begin{document}
% \mainmatter
\begin{introduction}
\input{"src/10-intro.tex"}
\end{introduction}
\input{"src/11-ch1.tex"}
\input{"src/12-ch2.tex"}
\input{"src/13-ch3.tex"}
\backmatter
\begin{conclusion}
\input{"src/14-conclusion.tex"}
\end{conclusion}
% TODO missing eds. in Bush1967
\setlength{\emergencystretch}{2em}
\printbibliography[]
\appendix
% \chapter{List of Acronyms}
% \printglossary[type=\acronymtype,style=acronyms]
\end{document}