diff --git a/appendix.tex b/appendix.tex
new file mode 100644
index 0000000000000000000000000000000000000000..83946f3e42a636b813bb582c6eaf4d8c994ea46f
--- /dev/null
+++ b/appendix.tex
@@ -0,0 +1,4 @@
+\chapter{Nějaká příloha}
+
+
+Sem přijde to, co nepatří do hlavní části.
diff --git a/assignment-include.pdf b/assignment-include.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..eb5e939be09ec7636663e7890eb9aca79b4608d4
Binary files /dev/null and b/assignment-include.pdf differ
diff --git a/bib-database.bib b/bib-database.bib
new file mode 100644
index 0000000000000000000000000000000000000000..9fb983b8208feb5510f6f27d947affa420215aa6
--- /dev/null
+++ b/bib-database.bib
@@ -0,0 +1,452 @@
+@article{Sestakova2018,
+  author = {Eliška Šestáková and Jan Janoušek},
+  journal = {Information},
+  title = {Automata Approach to XML Data Indexing},
+  year = {2018},
+  volume = {9},
+  number = {1},
+  ISSN = {2078-2489},
+  medium = {online},
+  accessed = {2019-03-26},
+  DOI = {10.3390/info9010012},
+  URL = {http://www.mdpi.com/2078-2489/9/1/12},
+}
+
+@book{Crochemore2002,
+  author = {Maxime Crochemore and Wojciech Rytter},
+  title = {Jewels of stringology},
+  publisher = {World Scientific},
+  address = {River Edge, NJ},
+  year = {2002},
+  ISBN = {978-9810247829},
+}
+
+@book{Motwani2014,
+  author = {Rajeev Motwani and Jeffrey D. Ullman and John E. Hopcroft},
+  title = {Introduction to automata theory, languages, and computation},
+  publisher = {Pearson},
+  address = {Harlow},
+  year = {2014},
+  edition = {Third},
+  ISBN = {9781292039053},
+}
+
+@book{Kopka2004,
+  author = {Helmut Kopka and Patrick W. Daly},
+  title = {LATEX},
+  subtitle = {podrobnĂ˝ prĹŻvodce},
+  publisher = {Computer Press},
+  address = {Brno},
+  year = {2004},
+  ISBN = {80-7226-973-9},
+}
+
+
+
+
+
+@inproceedings{exponential:queries,
+ author = {Mandhani, Bhushan and Suciu, Dan},
+ title = {Query Caching and View Selection for XML Databases},
+ booktitle = {Proceedings of the 31st International Conference on Very Large Data Bases},
+ series = {VLDB '05},
+ year = {2005},
+ isbn = {1-59593-154-6},
+ location = {Trondheim, Norway},
+ pages = {469--480},
+ numpages = {12},
+ url = {http://dl.acm.org/citation.cfm?id=1083592.1083648},
+ acmid = {1083648},
+ publisher = {VLDB Endowment}
+}
+
+@inproceedings{dietz1982maintaining,
+  title={Maintaining order in a linked list},
+  author={Dietz, Paul F},
+  booktitle={Proceedings of the fourteenth annual ACM symposium on Theory of computing},
+  pages={122--127},
+  year={1982},
+  organization={ACM}
+}
+
+@MISC{ ebnf,
+  AUTHOR = "{BSI (British Standards Institution)}",
+  TITLE  = {BS 6154:1981 Method of defining -- syntactic metalanguage},
+  YEAR   = {1981},
+  ISBN   = {ISBN 0-580-12530-0},
+}
+
+@BOOK{ xml:technologie,
+  AUTHOR =    {Jaroslav PokornĂ˝},
+  TITLE =     {XML Technologie -- Principy a aplikace v praxi},
+  PUBLISHER = {Grada Publishing, a.s.},
+  ADDRESS =   {Praha},
+  YEAR =      {2008},
+  ISBN =      {978-80-247-2725-7},
+}
+
+
+@inproceedings{def:2,
+	author={Leonid Libkin},
+	year={2005},
+	isbn={978-3-540-27580-0},
+	booktitle={Automata, Languages and Programming},
+	volume={3580},
+	series={Lecture Notes in Computer Science},
+	editor={Caires, LuĂ­s and Italiano, Giuseppe and Monteiro, LuĂ­s and Palamidessi, Catuscia and Yung, Moti},
+	title={Logics for Unranked Trees: An Overview},
+	publisher={Springer Berlin Heidelberg},
+	pages={35--50},
+}
+
+
+@inproceedings{ def:1,
+	author={Frank Neven},
+	year={2002},
+	isbn={978-3-540-44240-0},
+	booktitle={Computer Science Logic},
+	volume={2471},
+	series={Lecture Notes in Computer Science},
+	editor={Bradfield, Julian},
+	title={Automata, Logic, and XML},
+	publisher={Springer Berlin Heidelberg},
+	pages={2--26},
+}
+
+@MISC{xml:w3c,
+  AUTHOR = {Bray T. Paoli J. Sperberg-McQueen C. et al},
+  TITLE  = {Extensible Markup Language (XML) 1.0},
+  PUBLISHER = { W3C },
+  YEAR   = {Nov 2008},
+  URL    = {http://www.w3.org/XML},
+  URLDATE= {2015-02-05},
+}
+
+@inproceedings{ xml:index:9,
+ author = {Chung, Chin-Wan and Min, Jun-Ki and Shim, Kyuseok},
+ title = {APEX: An Adaptive Path Index for XML Data},
+ booktitle = {Proceedings of the 2002 ACM SIGMOD International Conference on Management of Data},
+ series = {SIGMOD '02},
+ year = {2002},
+ isbn = {1-58113-497-5},
+ location = {Madison, Wisconsin},
+ pages = {121--132},
+ numpages = {12},
+ doi = {10.1145/564691.564706},
+ acmid = {564706},
+ publisher = {ACM},
+ address = {New York, NY, USA}
+} 
+
+@inproceedings{ xml:index:8,
+year={2007},
+isbn={978-3-540-71702-7},
+booktitle={Advances in Databases: Concepts, Systems and Applications},
+volume={4443},
+series={Lecture Notes in Computer Science},
+editor={Kotagiri, Ramamohanarao and Krishna, P. Radha and Mohania, Mukesh and Nantajeewarawat, Ekawit},
+title={AB-Index: An Efficient Adaptive Index for Branching XML Queries},
+url={http://dx.doi.org/10.1007/978-3-540-71703-4_90},
+publisher={Springer Berlin Heidelberg},
+author={Zhang, Bo and Wang, Wei and Wang, Xiaoling and Zhou, Aoying},
+pages={988--993},
+}
+
+@inproceedings{ xml:index:10,
+ author = {Li, Quanzhong and Moon, Bongki},
+ title = {Indexing and Querying XML Data for Regular Path Expressions},
+ booktitle = {Proceedings of the 27th International Conference on Very Large Data Bases},
+ series = {VLDB '01},
+ year = {2001},
+ isbn = {1-55860-804-4},
+ pages = {361--370},
+ numpages = {10},
+ url = {http://dl.acm.org/citation.cfm?id=645927.672035},
+ acmid = {672035},
+ publisher = {Morgan Kaufmann Publishers Inc.},
+ address = {San Francisco, CA, USA}
+} 
+
+@inproceedings{ xml:index:7, 
+author={Rao, P. and Moon, B.}, 
+booktitle={Data Engineering, 2004. Proceedings. 20th International Conference on}, 
+title={PRIX: indexing and querying XML using prufer sequences}, 
+year={2004}, 
+month={March}, 
+pages={288--299}, 
+keywords={XML;database indexing;pattern matching;query processing;sequences;tree data structures;trees (mathematics);B-tree;Prufer sequence;XML database;XML document indexing;false alarm;holistic processing;query processing;refinement phase;root-to-leaf path;twig pattern processing;Computer science;Databases;Indexing;Information representation;Internet;Merging;Moon;Pattern matching;Query processing;XML}, 
+doi={10.1109/ICDE.2004.1320005}, 
+ISSN={1063-6382}
+}
+
+@inproceedings{ xml:index:11,
+ author = {Wang, Haixun and Park, Sanghyun and Fan, Wei and Yu, Philip S.},
+ title = {ViST: A Dynamic Index Method for Querying XML Data by Tree Structures},
+ booktitle = {Proceedings of the 2003 ACM SIGMOD International Conference on Management of Data},
+ series = {SIGMOD '03},
+ year = {2003},
+ isbn = {1-58113-634-X},
+ location = {San Diego, California},
+ pages = {110--121},
+ numpages = {12},
+ doi = {10.1145/872757.872774},
+ acmid = {872774},
+ publisher = {ACM},
+ address = {New York, NY, USA},
+}
+
+@inproceedings{ xml:index:2,
+author = {Qinghua Zou and Shaorong Liu and Wesley W. Chu},
+title = {Ctree: a compact tree for indexing XML data},
+booktitle = {Web Information and Data Management},
+year = {2004},
+pages = {39--46},
+doi = {10.1145/1031453.1031462},
+masid = {1242245}
+}
+
+@inproceedings{ xml:index:1,
+ author = {Pettovello, P. Mark and Fotouhi, Farshad},
+ title = {MTree: An XML XPath Graph Index},
+ booktitle = {Proceedings of the 2006 ACM Symposium on Applied Computing},
+ series = {SAC '06},
+ year = {2006},
+ isbn = {1-59593-108-2},
+ location = {Dijon, France},
+ pages = {474--481},
+ numpages = {8},
+ doi = {10.1145/1141277.1141389},
+ acmid = {1141389},
+ publisher = {ACM},
+ address = {New York, NY, USA},
+ keywords = {XML, XPath, graph, index, threaded paths}
+} 
+
+@inproceedings{ xml:index:5,
+ author = {Kaushik, Raghav and Bohannon, Philip and Naughton, Jeffrey F and Korth, Henry F},
+ title = {Covering Indexes for Branching Path Queries},
+ booktitle = {Proceedings of the 2002 ACM SIGMOD International Conference on Management of Data},
+ series = {SIGMOD '02},
+ year = {2002},
+ isbn = {1-58113-497-5},
+ location = {Madison, Wisconsin},
+ pages = {133--144},
+ numpages = {12},
+ doi = {10.1145/564691.564707},
+ acmid = {564707},
+ publisher = {ACM},
+ address = {New York, NY, USA}
+} 
+
+@inproceedings{ xml:index:3, 
+author={Nan Tang and Yu, J.X. and Ozsu, M.T. and Kam-Fai Wong}, 
+booktitle={Data Engineering, 2008. On ICDE 2008, IEEE 24th International Conference}, 
+title={Hierarchical Indexing Approach to Support XPath Queries}, 
+year={2008}, 
+month={April}, 
+pages={1510--1512}, 
+keywords={XML;indexing;query processing;XML path indexing;XPath queries;hierarchical indexing approach;Books;Database languages;Indexing;Robustness;XML}, 
+doi={10.1109/ICDE.2008.4497606}
+}
+
+@inproceedings{ xml:index:6,
+year={1999},
+isbn={978-3-540-65452-0},
+booktitle={Database Theory -- ICDT’99},
+volume={1540},
+series={Lecture Notes in Computer Science},
+editor={Beeri, Catriel and Buneman, Peter},
+title={Index Structures for Path Expressions},
+url={http://dx.doi.org/10.1007/3-540-49257-7_18},
+publisher={Springer Berlin Heidelberg},
+author={Milo, Tova and Suciu, Dan},
+pages={277--295},
+}
+
+
+@book{DBLP:books/ox/CrochemoreR94,
+  author    = {Maxime Crochemore and
+               Wojciech Rytter},
+  title     = {Text Algorithms},
+  publisher = {Oxford University Press},
+  year      = {1994},
+  isbn      = {0-19-508609-0},
+  ee        = {http://www-igm.univ-mlv.fr/$\sim$mac/REC/B1.html, http://www.mimuw.edu.pl/$\sim$rytter/BOOKS/text-algorithms.pdf},
+  bibsource = {DBLP, http://dblp.uni-trier.de}
+}
+
+@book{crochemore2007algorithms,
+  title={Algorithms on strings},
+  author={Crochemore, Maxime and Hancart, Christophe and Lecroq, Thierry},
+  year={2007},
+  publisher={Cambridge Univ Pr}
+}
+
+
+@MISC{ xpath:w3c,
+  AUTHOR = {Clark, J. and DeRose, S.},
+  TITLE  = {XML Path Language (XPath) Version 1.0},
+  PUBLISHER = { W3C },
+  YEAR   = {Nov 1999},
+  URL    = {http://www.w3.org/TR/xpath},
+  CITEDATE= {2015-02-03},
+  howpublished = {online}
+}
+
+@MISC{ xpointer:w3c,
+  AUTHOR = {DeRose, S.},
+  TITLE  = {XML Pointer Language (XPointer)},
+  PUBLISHER = { W3C },
+  YEAR   = {2002},
+  URL    = {http://www.w3.org/TR/xptr},
+  CITEDATE= {2015-03-04},
+  howpublished = {online}
+}
+
+@MISC{ xlink:w3c,
+  AUTHOR = {DeRose, S.},
+  TITLE  = {XML Linking Language (XLink) Version 1.0},
+  PUBLISHER = { W3C },
+  YEAR   = {2001},
+  URL    = {http://www.w3.org/TR/xlink},
+  URLDATE= {2015-03-04},
+  CITEDATE= {2015-03-04},
+  howpublished = {online}
+}
+
+@MISC{arbology,
+  AUTHOR = {Bořivoj Melichar and Jan Janoušek and Tomáš Flouri},
+  PUBLISHER = {CTU, Faculty of Information Technology},
+  TITLE  = {Introduction to Arbology},
+  URL= {https://edux.fit.cvut.cz/oppa/PI-ARB/prednasky/arbology.pdf},
+  howpublished = {online},
+  citedate = {2015/05/01},
+}
+
+@inproceedings{papakonstantinou1995object,
+  title={Object exchange across heterogeneous information sources},
+  author={Papakonstantinou, Yannis and Garcia-Molina, Hector and Widom, Jennifer},
+  booktitle={Data Engineering, 1995. Proceedings of the Eleventh International Conference on},
+  pages={251--260},
+  year={1995},
+  organization={IEEE}
+}
+
+@article{mchugh1997lore,
+  title={Lore: A database management system for semistructured data},
+  author={McHugh, Jason and Abiteboul, Serge and Goldman, Roy and Quass, Dallan and Widom, Jennifer},
+  journal={SIGMOD record},
+  volume={26},
+  number={3},
+  pages={54--66},
+  year={1997}
+}
+
+@techreport{goldman1997dataguides,
+  title={Dataguides: Enabling query formulation and optimization in semistructured databases},
+  author={Goldman, Roy and Widom, Jennifer},
+  year={1997},
+  institution={Stanford}
+}
+
+@inproceedings{nestorov1997representative,
+  title={Representative objects: Concise representations of semistructured, hierarchical data},
+  author={Nestorov, Svetlozar and Ullman, Jeffrey and Wiener, Janet and Chawathe, Sudarashan},
+  booktitle={Data Engineering, 1997. Proceedings. 13th International Conference on},
+  pages={79--90},
+  year={1997},
+  organization={IEEE}
+}
+
+@article{goldman1999semistructured,
+  title={From semistructured data to XML: Migrating the Lore data model and query language},
+  author={Goldman, Roy and McHugh, Jason and Widom, Jennifer},
+  year={1999}
+}
+
+@article{dasg:1,
+title = {Searching subsequences},
+journal = {Theoretical Computer Science},
+volume = {78},
+number = {2},
+pages = {363--376},
+year = {1991},
+issn = {0304-3975},
+doi = {http://dx.doi.org/10.1016/0304-3975(91)90358-9},
+url = {http://www.sciencedirect.com/science/article/pii/0304397591903589},
+author = {Ricardo A. Baeza-Yates}
+}
+
+@article{dasg:3,
+title = {Directed acyclic subsequence graph -- Overview},
+journal = {Journal of Discrete Algorithms},
+volume = {1},
+number = {3-4},
+pages = {255--280},
+year = {2003},
+issn = {1570-8667},
+url = {http://www.sciencedirect.com/science/article/pii/S1570866703000297},
+author = {Maxime Crochemore and Bořivoj Melichar and Zdeněk Troníček},
+keywords = "Searching subsequences",
+keywords = "Directed acyclic subsequence graph",
+keywords = "Subsequence automation "
+}
+
+@INPROCEEDINGS{dasg:4, 
+author={Hoshino, H. and Shinohara, A. and Takeda, M. and Arikawa, S.}, 
+booktitle={String Processing and Information Retrieval, 2000. SPIRE 2000. Proceedings. Seventh International Symposium on}, 
+title={Online construction of subsequence automata for multiple texts}, 
+year={2000}, 
+month={}, 
+pages={146--152}, 
+keywords={computational complexity;deterministic automata;finite automata;query processing;set theory;text analysis;alphabet;deterministic finite automaton;minimum automaton;multiple texts;online algorithm;online construction;preprocessing;subsequence automata;subsequence automaton;Automata;Computational complexity;Data structures;Gain measurement;Informatics;Machine learning;Machine learning algorithms;Text recognition;Upper bound}, 
+doi={10.1109/SPIRE.2000.878190},}
+
+@incollection{dasg:5,
+year={2002},
+isbn={978-3-540-44158-8},
+booktitle={String Processing and Information Retrieval},
+volume={2476},
+series={Lecture Notes in Computer Science},
+editor={Laender, AlbertoH.F. and Oliveira, ArlindoL.},
+title={On the Size of DASG for Multiple Texts},
+url={http://dx.doi.org/10.1007/3-540-45735-6_6},
+publisher={Springer Berlin Heidelberg},
+author={Crochemore, Maxime and Troníček, Zdeněk},
+pages={58-64},
+}
+
+@misc{dataset:xmark,
+  title = {XMark -- An XML Benchmark Project},
+  author = {Schimdt{, et al}},
+  url = {http://www.xml-benchmark.org/},
+  howpublished = {online},
+  citedate = {2015/04/27}
+}
+
+@misc{saxon,
+  title = {SAXON -- The XSLT and XQuery Processor},
+  author = {{SAXONICA}},
+  url = {http://saxon.sourceforge.net/},
+  howpublished = {online},
+  citedate = {2015/04/28}
+}
+
+@misc{xmlgen,
+  title = {xmlgen -- faq},
+  author = {Florian Waas},
+  url = {http://www.xml-benchmark.org/faq.txt},
+  howpublished = {online},
+  citedate = {2015/04/27}
+}
+
+@article{rabin1959finite,
+  title="Finite automata and their decision problems",
+  author="Michael O Rabin and Dana Scott",
+  journal={IBM journal of research and development},
+  volume={3},
+  number={2},
+  pages={114--125},
+  year={1959},
+  publisher={IBM}
+}
\ No newline at end of file
diff --git a/medium.tex b/medium.tex
new file mode 100644
index 0000000000000000000000000000000000000000..7416a4fad46e18601362f925b915b3489cfe0a5e
--- /dev/null
+++ b/medium.tex
@@ -0,0 +1,12 @@
+\chapter{Obsah přiloženého média}
+
+
+	\dirtree{%
+		.1 readme.txt\DTcomment{stručný popis obsahu média}.
+		.1 exe\DTcomment{adresář se spustitelnou formou implementace}.
+		.1 src.
+		.2 impl\DTcomment{zdrojové kódy implementace}.
+		.2 thesis\DTcomment{zdrojová forma práce ve formátu \LaTeX{}}.
+		.1 text\DTcomment{text práce}.
+		.2 thesis.pdf\DTcomment{text práce ve formátu PDF}.
+	}
diff --git a/text.tex b/text.tex
new file mode 100644
index 0000000000000000000000000000000000000000..e4373179e2da8aefee1e93405344973cef04b3da
--- /dev/null
+++ b/text.tex
@@ -0,0 +1,269 @@
+%---------------------------------------------------------------
+\chapter{Ut enim ad minim veniam}
+%---------------------------------------------------------------
+\setcounter{page}{1}
+
+\hfill\begin{minipage}{\dimexpr\textwidth-0.5cm}
+\textit{\lipsum[1]}
+\end{minipage}
+\vskip 0.5cm
+\noindent
+\lipsum[2][1-4]{} [1]
+
+\lipsum[4]
+
+%---------------------------------------------------------------
+\section{Ut enim ad minim veniam}
+%---------------------------------------------------------------
+
+\lipsum[6-7]
+
+\begin{figure}
+\centering
+%\includegraphics[scale=0.4]{pic/index}
+\resizebox{\textwidth}{!}{
+\begin{tikzpicture}[level/.style={sibling distance=60mm/#1}]
+\node [circle,draw] (z){$n$}
+  child {node [circle,draw] (a) {$\frac{n}{2}$}
+    child {node [circle,draw] (b) {$\frac{n}{2^2}$}
+      child {node {$\vdots$}
+        child {node [circle,draw] (d) {$\frac{n}{2^k}$}}
+        child {node [circle,draw] (e) {$\frac{n}{2^k}$}}
+      } 
+      child {node {$\vdots$}}
+    }
+    child {node [circle,draw] (g) {$\frac{n}{2^2}$}
+      child {node {$\vdots$}}
+      child {node {$\vdots$}}
+    }
+  }
+  child {node [circle,draw] (j) {$\frac{n}{2}$}
+    child {node [circle,draw] (k) {$\frac{n}{2^2}$}
+      child {node {$\vdots$}}
+      child {node {$\vdots$}}
+    }
+  child {node [circle,draw] (l) {$\frac{n}{2^2}$}
+    child {node {$\vdots$}}
+    child {node (c){$\vdots$}
+      child {node [circle,draw] (o) {$\frac{n}{2^k}$}}
+      child {node [circle,draw] (p) {$\frac{n}{2^k}$}
+        child [grow=right] {node (q) {$=$} edge from parent[draw=none]
+          child [grow=right] {node (q) {$O_{k = \lg n}(n)$} edge from parent[draw=none]
+            child [grow=up] {node (r) {$\vdots$} edge from parent[draw=none]
+              child [grow=up] {node (s) {$O_2(n)$} edge from parent[draw=none]
+                child [grow=up] {node (t) {$O_1(n)$} edge from parent[draw=none]
+                  child [grow=up] {node (u) {$O_0(n)$} edge from parent[draw=none]}
+                }
+              }
+            }
+            child [grow=down] {node (v) {$O(n \cdot \lg n)$}edge from parent[draw=none]}
+          }
+        }
+      }
+    }
+  }
+};
+\path (a) -- (j) node [midway] {+};
+\path (b) -- (g) node [midway] {+};
+\path (k) -- (l) node [midway] {+};
+\path (k) -- (g) node [midway] {+};
+\path (d) -- (e) node [midway] {+};
+\path (o) -- (p) node [midway] {+};
+\path (o) -- (e) node (x) [midway] {$\cdots$}
+  child [grow=down] {
+    node (y) {$O\left(\displaystyle\sum_{i = 0}^k 2^i \cdot \frac{n}{2^i}\right)$}
+    edge from parent[draw=none]
+  };
+\path (q) -- (r) node [midway] {+};
+\path (s) -- (r) node [midway] {+};
+\path (s) -- (t) node [midway] {+};
+\path (s) -- (l) node [midway] {=};
+\path (t) -- (u) node [midway] {+};
+\path (z) -- (u) node [midway] {=};
+\path (j) -- (t) node [midway] {=};
+\path (y) -- (x) node [midway] {$\Downarrow$};
+\path (v) -- (y)
+  node (w) [midway] {$O\left(\displaystyle\sum_{i = 0}^k n\right) = O(k \cdot n)$};
+\path (q) -- (v) node [midway] {=};
+\path (e) -- (x) node [midway] {+};
+\path (o) -- (x) node [midway] {+};
+\path (y) -- (w) node [midway] {$=$};
+\path (v) -- (w) node [midway] {$\Leftrightarrow$};
+\path (r) -- (c) node [midway] {$\cdots$};
+\end{tikzpicture}}
+\caption{~Lorem ipsum dolor sit amet}\label{img:index}
+\end{figure}
+
+%---------------------------------------------------------------
+\section{Ut enim ad minim veniam}
+%---------------------------------------------------------------
+
+\lipsum[2-4]
+
+%---------------------------------------------------------------
+\subsection{Ut enim ad minim veniam}
+%---------------------------------------------------------------
+
+Curabitur ligula sapien, pulvinar a vestibulum quis, facilisis vel sapien. Duis condimentum augue id magna semper rutrum. Aliquam ornare wisi eu metus. Fusce aliquam vestibulum ipsum. Vivamus ac leo pretium faucibus\ref{img:index}.
+
+\begin{itemize}
+    \item Ut enim ad minim veniam, quis nostrud
+    \item Ut enim ad minim 
+    \item Ut enim ad minim veniam, quis 
+    \begin{itemize}
+        \item Ut enim ad
+        \item Ut enim ad
+        \begin{itemize}
+            \item Ut enim 
+            \item Ut enim 
+            \begin{itemize}
+            \item Ut enim 
+            \item Ut enim 
+        \end{itemize}
+        \end{itemize}
+    \end{itemize}
+\end{itemize}
+
+\section{Class aptent taciti}
+
+\lipsum[2]
+
+\subsection{Class aptent taciti}
+
+\lipsum[6-7]
+
+\begin{enumerate}
+    \item Ut enim ad minim veniam, quis nostrud
+    \item Ut enim ad minim 
+    \item Ut enim ad minim veniam, quis 
+    \begin{enumerate}
+        \item Ut enim ad
+        \item Ut enim ad
+        \begin{enumerate}
+            \item Ut enim 
+            \item Ut enim 
+            \begin{enumerate}
+            \item Ut enim 
+            \item Ut enim 
+        \end{enumerate}
+        \end{enumerate}
+    \end{enumerate}
+\end{enumerate}
+
+
+%---------------------------------------------------------------
+\section{Ut enim ad minim veniam, quis nostrud}
+%---------------------------------------------------------------
+
+Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Nulla non arcu lacinia neque faucibus fringilla. Vestibulum erat nulla, ullamcorper nec, rutrum non, nonummy ac, erat. Aliquam erat volutpat. Proin pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo.\footnote{Ut enim ad minim veniam, quis nostrud exercitation.} Etiam dictum tincidunt diam. In laoreet, magna id viverra tincidunt, sem odio bibendum justo, vel imperdiet sapien wisi sed libero. Nulla est. Maecenas fermentum, sem in pharetra pellentesque, velit turpis volutpat ante, in pharetra metus odio a lectus. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. 
+
+\begin{lstlisting}[caption={~ZbyteÄŤnĂ˝ kĂłd},label=list:8-6,captionpos=t,float,abovecaptionskip=-\medskipamount,belowcaptionskip=\medskipamount,language=C]
+    #include<stdio.h>
+    #include<iostream>
+    // A comment
+    int main(void)
+    {
+        printf("Hello World\n");
+        return 0;
+    }
+\end{lstlisting}
+
+Nullam feugiat, turpis at pulvinar vulputate, erat libero tristique tellus, nec bibendum odio risus sit amet ante. Aenean id metus id velit ullamcorper pulvinar. Fusce wisi. Integer lacinia. Aliquam id dolor. Pellentesque pretium lectus id turpis. Suspendisse sagittis ultrices augue. In laoreet, magna id viverra tincidunt, sem odio bibendum justo, vel imperdiet sapien wisi sed libero. Sed ac dolor sit amet purus malesuada congue. \cite{Crochemore2002}
+
+Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci. Duis viverra diam non justo. Curabitur ligula sapien, pulvinar a vestibulum quis, facilisis vel sapien. Duis condimentum augue id magna semper rutrum. Aliquam ornare wisi eu metus. Fusce aliquam vestibulum ipsum. Vivamus ac leo pretium faucibus. \cite{Motwani2014}
+
+%---------------------------------------------------------------
+\subsection{Ut enim ad minim veniam, quis nostrud}
+%---------------------------------------------------------------
+
+Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Nulla non arcu lacinia neque faucibus fringilla. Vestibulum erat nulla, ullamcorper nec, rutrum non, nonummy ac, erat. Aliquam erat volutpat. Proin pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo. Etiam dictum tincidunt diam. In laoreet, magna id viverra tincidunt, sem odio bibendum justo. \cite{Sestakova2018} 
+
+\begin{table}\centering
+\caption[Příklad tabulky]{~Zadávání matematiky}\label{tab:matematika}
+\begin{tabular}{l|l|c|c}
+	Typ		& Prostředí		& \LaTeX{}ovská zkratka	& \TeX{}ovská zkratka	\tabularnewline \hline 
+ 	Text		& \verb|math|		& \verb|\(...\)|	& \verb|$...$|	\tabularnewline \hline
+ 	Displayed	& \verb|displaymath|	& \verb|\[...\]|	& \verb|$$...$$|	\tabularnewline 
+\end{tabular}
+\end{table}
+
+
+Nulla est. Maecenas fermentum, sem in pharetra pellentesque, velit turpis volutpat ante, in pharetra metus odio a lectus. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Nullam feugiat, turpis at pulvinar vulputate, erat libero tristique tellus, nec bibendum odio risus sit amet ante. Aenean id metus id velit ullamcorper pulvinar. 
+
+\subsubsection{Class aptent taciti}
+
+\begin{definition}%[Class aptent]
+Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
+\end{definition}
+
+\begin{example}%[Class aptent]
+Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
+\end{example}
+
+\begin{theorem}%[Class aptent]
+Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
+\end{theorem}
+
+\begin{proof}
+Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
+\end{proof}
+
+\begin{corollary}%[Class aptent]
+Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
+\end{corollary}
+
+\begin{proposition}%[Class aptent]
+Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
+\end{proposition}
+
+\begin{note}%[Class aptent]
+Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
+\end{note}
+
+\begin{remark}%[Class aptent]
+Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
+\end{remark}
+
+\begin{lemma}%[Class aptent]
+Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Fusce suscipit libero eget elit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Aliquam id dolor. Curabitur bibendum justo non orci.
+\end{lemma}
+
+\lipsum[1-2]
+
+\subsection{Class aptent taciti sociosqu}
+
+\lipsum[4-5]
+
+%---------------------------------------------------------------
+\chapter{Lorem ipsum}
+%---------------------------------------------------------------
+
+\hfill\begin{minipage}{\dimexpr\textwidth-0.5cm}
+\textit{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sagittis hendrerit ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Sed vel lectus. Donec odio tempus molestie, porttitor ut, iaculis quis, sem. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Sed vel lectus. }
+\end{minipage}
+\vskip 0.5cm
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sagittis hendrerit ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Sed vel lectus. Donec odio tempus molestie, porttitor ut, iaculis quis, sem. Suspendisse sagittis ultrices augue. Donec ipsum massa, ullamcorper in, auctor et, scelerisque sed, est. In sem justo, commodo ut, suscipit at, pharetra vitae, orci. Pellentesque pretium lectus id turpis. \cite{Kopka2004}
+
+\section{Donec odio tempus molestie}
+
+\lipsum[2] \cite{def:1, def:2}
+
+\subsection{Class aptent taciti}
+
+\lipsum[2-3]
+
+\begin{description}
+\item[Kapitola 1] Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sagittis hendrerit ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Cras pede libero, dapibus nec, pretium sit amet, tempor quis.
+
+\item[Kapitola 2] Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sagittis hendrerit ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Cras pede libero, dapibus nec, pretium sit amet, tempor quis.
+
+\item[Kapitola 3] Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sagittis hendrerit ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Cras pede libero, dapibus nec, pretium sit amet, tempor quis.
+
+\item[Kapitola 4] Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sagittis hendrerit ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Cras pede libero, dapibus nec, pretium sit amet, tempor quis.
+\end{description}
+
+\lipsum[2]
+
+\section{Lorem ipsum dolor sit amet}
+
+\lipsum[3-5]
\ No newline at end of file
diff --git a/thesis.tex b/thesis.tex
new file mode 100644
index 0000000000000000000000000000000000000000..a7b8620815ec630e1b0edfb2dc5325c1edb93b06
--- /dev/null
+++ b/thesis.tex
@@ -0,0 +1,533 @@
+% Template for theses recommended at Czech Technical University, Faculty of Information Technology
+% inspired by lipics-v2019 documentclass
+% Questions and help: <ondrej.guth@fit.cvut.cz>
+% 2021: work in progress
+
+\documentclass[a4paper,czech,unicode,twoside]{book}[2019/12/20]
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% FILL IN THIS INFORMATION
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand{\thesistitle}{Název této příkladné závěrečné práce}
+\newcommand{\thesistype}{Bakalářská práce}
+\newcommand{\thesisauthor}{Jiří Nebozíz}
+\newcommand{\supervisor}{doc.\,Ing.\,Damien Zlo,\,Ph.D.}
+\newcommand{\department}{Katedra teoretické informatiky}
+\newcommand{\yearofdefence}{2021}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% END FILL IN
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% TEMPLATE SETTINGS
+% no need to modify anything within this section
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\title{\thesistitle}
+\author{\thesisauthor}
+\RequirePackage{babel}[2020/07/13] %localization
+\RequirePackage{iftex}[2020/03/06]
+\iftutex
+    \RequirePackage{ellipsis}[2020/05/22] %ellipsis workaround for XeLaTeX
+\else
+    \RequirePackage[utf8]{inputenc}[2018/08/11] %this file encoding
+    \RequirePackage{lmodern}[2009/10/30]
+\fi
+\RequirePackage[bottom=4cm,footskip=4em]{geometry}[2020/01/02] %page layout
+\RequirePackage{setspace}[2011/12/19] %line spacing in title page
+\RequirePackage{listings}[2020/03/24]
+\RequirePackage{xcolor}[2016/05/11]
+\RequirePackage{multicol}[2019/12/09]
+\RequirePackage{titlesec}[2019/10/16]
+\RequirePackage{mathtools}[2020/03/24]
+\RequirePackage{amssymb}[2013/01/14]
+\RequirePackage[pdfpagelayout=TwoPageRight]{hyperref}[2020-05-15] % optional package
+\RequirePackage{pdfpages}[2020/01/28]
+\RequirePackage{fancyhdr}[2019/01/31]
+\RequirePackage[labelsep=space,singlelinecheck=false,font={up,small},labelfont={sf,bf}]{caption}[2020/05/30]
+\RequirePackage{amsthm}[2020/05/29]
+\RequirePackage{emptypage}[2010/05/30]
+
+%%% modra
+ \definecolor{decoration}{RGB}{0, 122, 195} %CTU blue
+ \definecolor{heading}{RGB}{0, 122, 195}
+ \definecolor{headbackgroundgray}{RGB}{199, 219, 241} %light blue
+ \definecolor{backgroundgray}{RGB}{199, 219, 241} %CTU light blue
+ \definecolor{headgray}{rgb}{0.50,0.50,0.51}
+ \definecolor{enumgray}{RGB}{0, 122, 195} %CTU blue
+
+\bibliographystyle{plainurl}% the mandatory bibstyle
+
+\setcounter{secnumdepth}{4}% numbering sections; 4: subsubsection
+
+% code listing settings
+\renewcommand\lstlistingname{Výpis kódu}
+\renewcommand\lstlistlistingname{Seznam výpisů kódu}
+\lstset{basicstyle=\small\ttfamily,keywordstyle=\bfseries,%
+        backgroundcolor=\color{backgroundgray},%
+        frame=single,framerule=0pt,xleftmargin=\fboxsep,xrightmargin=\fboxsep}
+% code listing setting end
+
+% captions settings
+\makeatletter
+\@ifpackagelater{hyperref}{2009/12/09}
+  {\captionsetup{compatibility=false}}%cf. http://groups.google.de/group/comp.text.tex/browse_thread/thread/db9310eb540fbbd8/42e30f3b7b3aa17a?lnk=raot
+  {}
+\makeatother
+\DeclareCaptionLabelFormat{boxed}{%0.61,0.61,0.61
+  \kern0.05em{\color{decoration}\rule{0.73em}{0.73em}}%
+  \hspace*{0.67em}\bothIfFirst{#1}{~}#2}
+\captionsetup{labelformat=boxed}
+\captionsetup[table]{position=top}
+% captions settings end
+
+% lists settings
+\setlength\leftmargini  \parindent
+\setlength\leftmarginii {1.2em}
+\setlength\leftmarginiii{1.2em}
+\setlength\leftmarginiv {1.2em}
+\setlength\leftmarginv  {1.2em}
+\setlength\leftmarginvi {1.2em}
+\renewcommand\labelenumi{%
+  \textcolor{enumgray}{\headfont\bfseries\upshape\mathversion{bold}\theenumi.}}
+\renewcommand\labelenumii{%
+  \textcolor{enumgray}{\headfont\bfseries\upshape\mathversion{bold}\theenumii.}}
+\renewcommand\labelenumiii{%
+  \textcolor{enumgray}{\headfont\bfseries\upshape\mathversion{bold}\theenumiii.}}
+\renewcommand\labelenumiv{%
+  \textcolor{enumgray}{\headfont\bfseries\upshape\mathversion{bold}\theenumiv.}}
+\makeatletter
+\renewcommand\labelitemi{%
+  \textcolor{enumgray}{\ifnum\@listdepth=\@ne
+                                  \rule{0.67em}{0.33em}%
+                                \else
+                                  \rule{0.45em}{0.225em}%
+                                \fi}}
+\makeatother
+\renewcommand\labelitemii{%
+  \textcolor{enumgray}{\rule{0.45em}{0.225em}}}
+\renewcommand\labelitemiii{%
+  \textcolor{enumgray}{\headfont\bfseries\textasteriskcentered}}
+\renewcommand\labelitemiv{%
+  \textcolor{enumgray}{\headfont\bfseries\textperiodcentered}}
+\renewcommand*\descriptionlabel[1]{%
+  \hspace\labelsep\textcolor{enumgray}{\headfont\bfseries\mathversion{bold}#1}}
+% lists settings end
+
+\def\headfont{\rmfamily} %font for headings (chapter, section, etc.)
+
+% frontmatter headings
+\def\frontchapterfont{\Large \bfseries}
+\def\frontsectionfont{\large\bfseries}
+\def\frontsubsectionfont{\large}
+\def\frontsubsubsectionfont{\bfseries}
+% frontmatter headings end
+
+% frontmatter pseudochapters: named part without printing actual chapter heading
+\makeatletter
+\newcommand{\frontchapternotprinted}[1]{%
+  \begingroup
+  \let\@makechapterhead\@gobble % make \@makechapterhead do nothing
+  \let\cleardoublepage\clearpage
+  \chapter{#1}
+  \endgroup
+}
+\makeatother
+% frontmatter pseudochapters end
+
+% theorems, proofs, definitions, etc. end
+\makeatletter
+\thm@headfont{%
+  \textcolor{decoration}{$\blacktriangleright$}\nobreakspace\headfont\bfseries}
+\def\th@remark{%
+  \thm@headfont{%
+    \textcolor{decoration}{$\blacktriangleright$}\nobreakspace\headfont}%
+  \normalfont % body font
+  \thm@preskip\topsep \divide\thm@preskip\tw@
+  \thm@postskip\thm@preskip
+}
+\def\@endtheorem{\endtrivlist}%\@endpefalse
+\renewcommand\qedsymbol{\textcolor{decoration}{\ensuremath{\blacktriangleleft}}}
+\renewenvironment{proof}[1][\proofname]{\par
+  \pushQED{\qed}%
+  \normalfont \topsep6\p@\@plus6\p@\relax
+  \trivlist
+  \item[\hskip\labelsep
+        \color{black}\headfont\bfseries
+    #1\@addpunct{.}]\ignorespaces
+}{%
+  \popQED\endtrivlist%\@endpefalse
+}
+\makeatother
+\theoremstyle{plain}
+\newtheorem{theorem}{Věta}
+\newtheorem{lemma}[theorem]{Pomocné tvrzení}
+\newtheorem{corollary}[theorem]{DĹŻsledek}
+\newtheorem{proposition}[theorem]{Návrh}
+\newtheorem{definition}[theorem]{Definice}
+\theoremstyle{definition}
+\newtheorem{example}[theorem]{Příklad}
+\theoremstyle{remark}
+\newtheorem{note}[theorem]{Poznámka}
+\newtheorem*{note*}{Poznámka}
+\newtheorem{remark}[theorem]{Pozorování}
+\newtheorem*{remark*}{Pozorování}
+\numberwithin{theorem}{chapter}
+% theorems, proofs, definitions, etc. end
+
+% table of contents colored chapters
+\makeatletter
+\let\stdl@chapter\l@chapter
+\renewcommand*{\l@chapter}[2]{%
+  \stdl@chapter{\textcolor{heading}{#1}}{\textcolor{heading}{#2}}}
+\makeatother
+% table of contents colored chapters end
+
+% headers and footers
+\makeatletter
+\def\ps@plain{%chapter beginning
+    \let\@evenhead\@empty%
+    \let\@oddhead\@empty%
+    \def\@evenfoot{\bfseries\color{headgray}\hfill\thepage\hfill}%
+    \def\@oddfoot{\bfseries\color{headgray}\hfill\thepage\hfill}}
+\makeatother
+\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
+\renewcommand{\sectionmark}[1]{\markright{#1}}
+\pagestyle{fancy}
+\fancyhf{}
+\fancyhead[LE]{\leavevmode\smash{\llap{\color{headgray} \bfseries \thepage \hspace*{4em}}}}
+\fancyhead[RE]{\color{headgray}\bfseries\nouppercase{\leftmark}}
+\fancyhead[RO]{\leavevmode\smash{\rlap{\hspace*{4em}\color{headgray}\bfseries\thepage}}}
+\fancyhead[LO]{\color{headgray}\bfseries\nouppercase{\rightmark}}
+\renewcommand{\headrulewidth}{0pt}
+% headers and footers end
+
+% title page
+\renewcommand{\maketitle}{\begin{titlepage}%
+\newgeometry{left=67mm,top=80mm,right=40mm}%\thispagestyle{empty}%
+\noindent{\large\headfont\noindent\thesistype}
+\vskip 3mm
+\noindent{\noindent\huge\headfont\bfseries\color{black}\begin{onehalfspace}\MakeUppercase{\thesistitle}\end{onehalfspace}}
+\vskip 35mm
+\noindent{\large \headfont \bfseries \thesisauthor}
+
+\vfill
+
+\noindent{\headfont Fakulta informaÄŤnĂ­ch technologiĂ­ ÄŚVUT v Praze\\
+\department\\
+VedoucĂ­: \supervisor\\
+\today}\end{titlepage}
+\restoregeometry
+}
+%title page end
+
+\newenvironment{abstrakt}{%
+  \vspace*{18mm}
+  \noindent
+  {{\frontchapterfont\begin{flushleft}{\color{heading}Abstrakt}\end{flushleft}}}%
+  \bigskip
+  \noindent\ignorespaces}
+
+\newenvironment{abstract}{%
+  \vskip\bigskipamount
+  \noindent
+  {{\frontchapterfont\begin{flushleft}{\color{heading}Abstract}\end{flushleft}}}%
+  \bigskip
+  \noindent\ignorespaces}
+  
+\newenvironment{prohlaseni}{
+  {{\frontchapterfont\begin{flushright}{\color{heading}Prohlášení}\end{flushright}}}%
+  \bigskip
+  \noindent\ignorespaces}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% TEMPLATE SETTINGS END
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+%%%%%%%%%%%%%%%%%%%%%%
+% DEMO CONTENTS SETTINGS
+% You may choose to modify this part.
+%%%%%%%%%%%%%%%%%%%%%%
+\usepackage{dirtree}
+\usepackage{lipsum,tikz}
+%%%%%%%%%%%%%%%%%%%%%%
+% DEMO CONTENTS SETTINGS END
+%%%%%%%%%%%%%%%%%%%%%%
+
+\begin{document}
+\frontmatter
+%%%%%%%%%%%%%%
+% FRONTMATTER SETTINGS
+% no need to modify this part
+%%%%%%%%%%%%%%
+\titleformat
+{\chapter} % command
+% [display] % shape
+{} % format
+{} % label
+{} % sep
+{\color{heading}\frontchapterfont \raggedleft} % before-code
+[\vskip -2em] % after-code
+
+\titleformat
+{\section}
+{\frontsectionfont\color{heading}}
+{}
+{}
+{}
+  
+% \titleformat{\subsection}
+%   {\frontsubsectionfont\color{heading}}{{{\color{black}\thesubsection}}}{1em}{}[\vskip -1em]
+  
+% \titleformat{\subsubsection}
+%   {\frontsubsubsectionfont\color{heading}}{{{\color{black}\thesubsubsection}}}{1em}{}[\vskip -1em]
+
+\makeatletter
+\@openrightfalse
+\makeatother
+%%%%%%%%%%%%%%
+% FRONTMATTER SETTINGS END
+%%%%%%%%%%%%%%
+
+
+\includepdf{assignment-include.pdf}
+
+\thispagestyle{empty}
+\cleardoublepage
+
+\maketitle
+% \clearpage
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% PREPRINT
+% no need to modify
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+	\clearpage
+	\thispagestyle{empty}
+	
+
+		~
+	\vfill
+	
+	{\small
+			\noindent České vysoké učení technické v Praze \\
+		\noindent Fakulta informaÄŤnĂ­ch technologiĂ­ \\
+	\noindent \textcopyright{} \yearofdefence{} \thesisauthor. Všechna práva vyhrazena.\\
+		\noindent \textit{Tato práce vznikla jako školní dílo na Českém vysokém učení technickém v Praze, Fakultě informačních technologií. Práce je chráněna právními předpisy a mezinárodními úmluvami o právu autorském a právech souvisejících s právem autorským. K jejímu užití, s výjimkou bez uplatněných zákonných licencí nad rámec oprávnění uvedených v Prohlášení, je nezbytný souhlas autora.}
+	
+	\vspace{1em}
+	
+	\noindent Odkaz na tuto práci: \thesisauthor. \textit{\thesistitle}. \thesistype. České vysoké učení technické v Praze, Fakulta informačních technologií, \yearofdefence.
+}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% PREPRINT END
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\tableofcontents
+\listoffigures
+\begingroup
+\let\clearpage\relax
+\listoftables
+\lstlistoflistings
+\endgroup
+
+%%%%%%%%%%%%%%%%%%%
+% ACKNOWLEDGMENT
+% FILL IN / MODIFY
+%%%%%%%%%%%%%%%%%%%
+\frontchapternotprinted{Poděkování}
+~
+\vfill
+\hskip 0cm \begin{minipage}{0.7\textwidth}
+\textit{Chtěl bych poděkovat především sit amet, consectetuer adipiscing elit. Curabitur sagittis hendrerit ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Sed vel lectus. Donec odio tempus molestie, porttitor ut, iaculis quis, sem. Suspendisse sagittis ultrices augue.}
+\end{minipage}
+
+\vfill
+
+\vfill
+%%%%%%%%%%%%%%%%%%%
+% ACKNOWLEDGMENT END
+%%%%%%%%%%%%%%%%%%%
+
+
+
+%%%%%%%%%%%%%%%%%%%
+% ACKNOWLEDGMENT
+% FILL IN / MODIFY
+%%%%%%%%%%%%%%%%%%%
+\frontchapternotprinted{Prohlášení}
+~
+\vfill
+% INSTRUCTIONS
+% ENG: choose one of approved texts of the declaration. DO NOT CREATE YOUR OWN. Find the approved texts at https://courses.fit.cvut.cz/SFE/download/index.html#_documents (document Declaration for FT in English)
+% CZE/SLO: Vyberte jedno z fakultou schvalenych prohlaseni. NEVKLADEJTE VLASTNI TEXT. Schvalena prohlaseni najdete zde: https://courses.fit.cvut.cz/SZZ/dokumenty/index.html#_dokumenty (prohlášení do ZP)
+\begin{prohlaseni}
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sagittis hendrerit ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Sed vel lectus. Donec odio tempus molestie, porttitor ut, iaculis quis, sem. Suspendisse sagittis ultrices augue. Donec ipsum massa, ullamcorper in, auctor et, scelerisque sed, est. In sem justo, commodo ut, suscipit at, pharetra vitae, orci. Pellentesque pretium lectus id turpis.
+
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sagittis hendrerit ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Sed vel lectus. Donec odio tempus molestie, porttitor ut, iaculis quis, sem. Suspendisse sagittis ultrices augue. Donec ipsum massa, ullamcorper in, auctor et, scelerisque sed, est. In sem justo, commodo ut, suscipit at, pharetra vitae, orci. Pellentesque pretium lectus id turpis.
+\vskip 1cm
+\noindent
+V Praze dne 10.\;května 2020 \hspace{.3\textwidth} \dotfill
+\end{prohlaseni}
+%%%%%%%%%%%%%%%%%%%
+% DECLARATION END
+%%%%%%%%%%%%%%%%%%%
+
+
+
+%%%%%%%%%%%%%%%%%%%
+% ABSTRACT
+% FILL IN / MODIFY
+%%%%%%%%%%%%%%%%%%%
+\frontchapternotprinted{Abstrakt}
+\begin{abstrakt}% Enter abstract in CZECH.
+\lipsum[1]
+\end{abstrakt}
+
+\vskip 0.5cm
+
+{\noindent\color{heading}\bfseries\headfont Klíčová slova\hspace{1em}}{lorem, ipsum dolor, sit amet}
+
+\vskip 1cm
+
+\begin{abstract}% Enter abstract in ENGLISH.
+\lipsum[2]  
+\end{abstract}
+
+\vskip 0.5cm
+
+{\noindent\color{heading}\bfseries\headfont Keywords\hspace{1em}}{lorem, ipsum dolor, sit amet}
+%%%%%%%%%%%%%%%%%%%
+% ABSTRACT END
+%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%
+% SUMMARY
+% FILL IN / MODIFY
+% OR REMOVE ENTIRELY (upon agreement with your supervisor)
+% (apropriate to remove in most theses)
+%%%%%%%%%%%%%%%%%%%
+\chapter{ShrnutĂ­}
+\setlength{\columnsep}{1cm}
+\begin{multicols}{2}
+{\small
+
+\section*{Motivace}
+
+\lipsum[1][1-8]
+
+\section*{Cíl práce}
+
+\lipsum[2][1-6]
+
+\section*{Postup}
+
+\lipsum[3]
+
+\section*{Výsledky práce}
+
+\lipsum[2]
+
+\section*{Závěr}
+
+\lipsum[1][1-8] Lorem lorem lorem.
+}
+\end{multicols}
+%%%%%%%%%%%%%%%%%%%
+% SUMMARY END
+%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%
+% ABBREVIATIONS
+% FILL IN / MODIFY
+% OR REMOVE ENTIRELY
+%%%%%%%%%%%%%%%%%%%
+\chapter{Seznam zkratek}
+	
+\begin{tabular}{rl}
+DFA & Deterministic Finite Automaton\\
+FA & Finite Automaton\\
+LPS & Labelled PrĂĽfer Sequence\\
+NFA & Nondeterministic Finite Automaton\\
+NPS & Numberef PrĂĽfer Sequence\\
+TPA & Tree Paths Automaton\\
+TSPA & Tree String Paths Subsequences Automaton\\
+XML & Extensible Markup Language\\
+XPath & XML Path Language\\
+XSLT & eXtensible Stylesheet Language Transformations\\
+W3C & World Wide Web Consortium
+\end{tabular}
+%%%%%%%%%%%%%%%%%%%
+% ABBREVIATIONS END
+%%%%%%%%%%%%%%%%%%%
+
+\mainmatter
+
+%%%%%%%%%%%%%%%%%%%%
+% MAINMATTER SETTINGS
+% no need to modify this part
+%%%%%%%%%%%%%%%%%%%%
+\makeatletter
+\@openrighttrue
+\makeatother
+
+\titleformat
+{\chapter} % command
+[display] % shape
+{\headfont \LARGE \bfseries \raggedleft} % format
+{ \textcolor{headbackgroundgray}{{\titlerule*[1pc]{\rule{0.25em}{0.25em}}}} \hspace{0.5ex} \color{black} Kapitola \thechapter } % label
+{-0.3cm} % sep
+{\color{heading} \Huge \vskip 0.5cm} % before-code
+[\vskip 1cm] % after-code
+
+%vzhled nadpisĹŻ sekcĂ­
+\titleformat{\section}
+  {\headfont\Large\bfseries\color{heading}}{\colorbox{headbackgroundgray}{{\color{black}\thesection}}}{1em}{}%[\vskip -1em]
+  
+\titleformat{\subsection}
+  {\headfont\Large\bfseries\color{heading}}{{{\color{black}\thesubsection}}}{1em}{}%[\vskip -1em]
+  
+\titleformat{\subsubsection}
+  {\headfont\large\bfseries\color{heading}}{{{\color{black}\thesubsubsection}}}{1em}{}%[\vskip -1em]
+
+%%%%%%%%%%%%%%%%%%%%
+% MAINMATTER SETTINGS END
+%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%
+% THE THESIS
+% MODIFY ANYTHING BELOW THIS LINE
+%%%%%%%%%%%%%%%%%%%
+\include{text}
+
+\appendix
+
+%%%%%%%%%%%%%%%%%%%%
+% APPENDIX SETTINGS
+% no need to modify this part
+%%%%%%%%%%%%%%%%%%%%
+\titleformat
+{\chapter} % command
+[display] % shape
+{\headfont \LARGE \bfseries \raggedleft} % format
+{ \textcolor{headbackgroundgray}{{\titlerule*[1pc]{\rule{0.25em}{0.25em}}}} \hspace{0.5ex} \color{black} Příloha \thechapter } % label
+{-0.3cm} % sep
+{\color{heading} \Huge \vskip 0.5cm} % before-code
+[\vskip 1cm] % after-code
+
+%%%%%%%%%%%%%%%%%%%%
+% MAINMATTER SETTINGS END
+%%%%%%%%%%%%%%%%%%%%
+
+
+\include{appendix}
+
+\backmatter
+
+\bibliography{bib-database}
+
+\include{medium}
+
+
+\end{document}