FITthesis.cls 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. \NeedsTeXFormat{LaTeX2e}
  2. \ProvidesClass{FITthesis}[2019/12/23 CTU FIT standard class for theses]
  3. % created by Ondrej Guth <ondrej.guth@fit.cvut.cz>
  4. % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
  5. % options
  6. % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
  7. \newif\if@thesistypedefined
  8. \DeclareOption{thesis=B}{\gdef\@thesistype{B}\@thesistypedefinedtrue}
  9. \DeclareOption{thesis=M}{\gdef\@thesistype{M}\@thesistypedefinedtrue}
  10. \DeclareOption{czech}{
  11. \AtBeginDocument{\selectlanguage{czech}}
  12. \PassOptionsToPackage{english,main=czech}{babel}
  13. \def\@lang{1}
  14. }
  15. \DeclareOption{english}{
  16. \AtBeginDocument{\selectlanguage{english}}
  17. \PassOptionsToPackage{czech,main=english}{babel}
  18. \def\@lang{0}
  19. }
  20. \DeclareOption{slovak}{
  21. \AtBeginDocument{\selectlanguage{slovak}}
  22. \PassOptionsToPackage{english,main=slovak}{babel}
  23. \def\@lang{2}
  24. }
  25. \DeclareOption{10pt}{\PassOptionsToClass{\CurrentOption}{memoir}}
  26. \DeclareOption{11pt}{\PassOptionsToClass{\CurrentOption}{memoir}}
  27. \DeclareOption{12pt}{\PassOptionsToClass{\CurrentOption}{memoir}}
  28. \ExecuteOptions{11pt}
  29. \ProcessOptions
  30. \ifx\@lang\undefined
  31. \ClassError{FITthesis}{Language not specified}{Add option czech for Czech language or option english for English language or option slovak for Slovak language.}
  32. \fi
  33. \LoadClass[a4paper,twoside]{memoir}[2016/05/16]
  34. \RequirePackage{babel}[2017/05/19]
  35. \RequirePackage[unicode,pdfusetitle]{hyperref}[2017/03/14]
  36. % line breaks in URL
  37. \def\UrlBreaks{\do\/\do\-\do\_}
  38. \RequirePackage{ellipsis}[2004/9/28]
  39. \RequirePackage{chngcntr}[2008/07/23]
  40. \counterwithout*{footnote}{chapter}
  41. \RequirePackage{lmodern}[2009/10/30]
  42. \RequirePackage{graphicx}[2014/10/28]
  43. \RequirePackage{etoolbox}[2017/01/02]
  44. \AtEndEnvironment{table}{\gdef\there@is@a@table{}}
  45. \AtEndDocument{\ifdefined\there@is@a@table\label{tab:was:used:in:doc}\fi}
  46. \DeclareRobustCommand{\listoftablescond}{\@ifundefined{r@tab:was:used:in:doc}{}{\listoftables*}}
  47. % heading numbering (memoir-style settings)
  48. \setsecnumdepth{subsubsection}
  49. % table of contents depth (memoir-style settings)
  50. \settocdepth{subsubsection}
  51. % chapter head design (memoir-style settings)
  52. \chapterstyle{madsen}
  53. % layout of the page (memoir-style settings)
  54. \setlrmargins{4cm}{*}{*}\checkandfixthelayout
  55. % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
  56. % general commands
  57. % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
  58. \DeclareRobustCommand{\chapterstyletitle}[1]{
  59. \@makechapterhead{#1}
  60. \noindent
  61. }
  62. \newenvironment{introduction}{
  63. \setsecnumdepth{part}
  64. \if\@lang1\chapter{{\' U}vod}\else\if\@lang2\chapter{{\' U}vod}\else\chapter{Introduction}\fi\fi
  65. }{
  66. \setsecnumdepth{subsubsection}
  67. }
  68. \newenvironment{conclusion}{
  69. \setsecnumdepth{part}
  70. \if\@lang1\chapter{Z{\' a}v{\v e}r}\else\if\@lang2\chapter{Z{\' a}ver}\else\chapter{Conclusion}\fi\fi
  71. }{
  72. \setsecnumdepth{subsubsection}
  73. }
  74. % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
  75. % template
  76. % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
  77. \newif\if@supervisordefined
  78. \DeclareRobustCommand{\supervisor}[1]{
  79. \def\thesupervisor{#1}
  80. \@supervisordefinedtrue
  81. }
  82. \newif\if@departmentdefined
  83. \DeclareRobustCommand{\department}[1]{
  84. \def\thedepartment{#1}
  85. \@departmentdefinedtrue
  86. }
  87. \newif \if@websitedefined
  88. \DeclareRobustCommand {\website}[1] {
  89. \def\thewebsite{#1}
  90. \@websitedefinedtrue
  91. }
  92. \newif\if@acknowledgementsdefined
  93. \DeclareRobustCommand{\acknowledgements}[1]{
  94. \def\theacknowledgements{#1}
  95. \@acknowledgementsdefinedtrue
  96. }
  97. \newif\if@abstractcsdefined
  98. \DeclareRobustCommand{\abstractCS}[1]{
  99. \def\theabstractcs{\iflanguage{english}{\begin{otherlanguage}{czech}#1\end{otherlanguage}}{#1}}
  100. \@abstractcsdefinedtrue
  101. }
  102. \newif\if@abstractendefined
  103. \DeclareRobustCommand{\abstractEN}[1]{
  104. \def\theabstracten{\iflanguage{english}{#1}{\begin{otherlanguage}{english}#1\end{otherlanguage}}}
  105. \@abstractendefinedtrue
  106. }
  107. % \newif\if@declarationofauthenticitydefined
  108. % \DeclareRobustCommand{\declarationOfAuthenticity}[1]{
  109. % \def\thedeclarationofauthenticity{#1}
  110. % \@declarationofauthenticitydefinedtrue
  111. % }
  112. \newif\if@cityfordeclarationdefined
  113. \DeclareRobustCommand{\placeForDeclarationOfAuthenticity}[1]{
  114. \def\thecityfordeclaration{#1}
  115. \@cityfordeclarationdefinedtrue
  116. }
  117. \newif\if@keywordscsdefined
  118. \DeclareRobustCommand{\keywordsCS}[1]{
  119. \def\thekeywordscs{\iflanguage{english}{\begin{otherlanguage}{czech}#1\end{otherlanguage}}{#1}}
  120. \@keywordscsdefinedtrue
  121. }
  122. \newif\if@keywordsendefined
  123. \DeclareRobustCommand{\keywordsEN}[1]{
  124. \def\thekeywordsen{\iflanguage{english}{#1}{\begin{otherlanguage}{english}#1\end{otherlanguage}}}
  125. \@keywordsendefinedtrue
  126. }
  127. \newif\if@authorwithdegreesdefined
  128. \DeclareRobustCommand{\authorWithDegrees}[1]{
  129. \def\theauthorwithdegrees{#1}
  130. \@authorwithdegreesdefinedtrue
  131. }
  132. \newif\if@authorGNdefined
  133. \DeclareRobustCommand{\authorGN}[1]{
  134. \def\theauthorGN{#1}
  135. \@authorGNdefinedtrue
  136. }
  137. \newif\if@authorFNdefined
  138. \DeclareRobustCommand{\authorFN}[1]{
  139. \def\theauthorFN{#1}
  140. \@authorFNdefinedtrue
  141. }
  142. \DeclareRobustCommand{\thesistype}{\if@thesistypedefined\if\@thesistype B\if\@lang1{Bakal{\' a}{\v r}sk{\' a} pr{\' a}ce}\else\if\@lang2{Bakal{\' a}rska pr{\' a}ca}\else{Bachelor's thesis}\fi\fi\else\if\@thesistype M\if\@lang1{Diplomov{\' a} pr{\' a}ce}\else\if\@lang2{Diplomov{\' a} pr{\' a}ca}\else{Master's thesis}\fi\fi\else\ClassError{FITthesis}{Thesis type not specified}{Add option thesis=B for bachelor's thesis or option thesis=M for master's thesis.}\fi\fi\else\ClassError{FITthesis}{Thesis type not specified}{Add option thesis=B for bachelor's thesis or option thesis=M for master's thesis.}\fi}
  143. \newif\if@declarationOptionSelected
  144. \DeclareRobustCommand{\declarationOfAuthenticityOption}[1]{
  145. \ifx1#1 \DeclareRobustCommand{\thedeclarationofauthenticity}{\if\@lang1{%
  146. \input{prohlaseni1.tex.txt}
  147. }\else\if\@lang2{%
  148. Prehlasujem, \v ze som predlo\v zen\'u pr\'acu vypracoval(a) samostatne a \v ze som uviedol(uviedla) v\v setky informa\v cn\'e zdroje v~s\'ulade s~Metodick\'ym pokynom o~etickej pr\'iprave vysoko\v skolsk\'ych z\'avere\v cn\'ych pr\'ac.
  149. Beriem na vedomie, \v ze sa na moju pr\'acu vz\v tahuj\'u pr\'ava a povinnosti vypl\'yvaj\'uce zo~z\'akona \v c.~121/2000~Sb., autorsk\'eho z\'akona, v znen\'\i\ neskor\v s\'\i ch predpisov, a~skuto\v cnos\v t, \v ze \v Cesk\'e vysok\'e u\v cen\'\i{} technick\'e v~Praze m\'a pr\'avo na uzavrenie licen\v cnej zmluvy o~pou\v zit\'\i\ tejto pr\'ace ako \v skolsk\'eho diela pod\v la \S{}~60 odst.~1 autorsk\'eho z\'akona.
  150. }\else{%
  151. I hereby declare that the presented thesis is my own work and that I have cited all sources of information in accordance with the Guideline for adhering to ethical principles when elaborating an academic final thesis.
  152. I acknowledge that my thesis is subject to the rights and obligations stipulated by the Act No.\,121/2000~Coll., the Copyright Act, as amended, in particular that the Czech Technical University in Prague has the right to conclude a license agreement on the utilization of this thesis as a school work under the provisions of Article~60~(1) of the Act.
  153. }\fi\fi
  154. }\@declarationOptionSelectedtrue\fi
  155. \ifx2#1 \DeclareRobustCommand{\thedeclarationofauthenticity}{\if\@lang1{%
  156. \input{prohlaseni2.tex.txt}
  157. }\else\if\@lang2{%
  158. Prehlasujem, \v ze som predlo\v zen\'u pr\'acu vypracoval(a) samostatne a \v ze som uviedol(uviedla) v\v setky informa\v cn\'e zdroje v~s\'ulade s~Metodick\'ym pokynom o~etickej pr\'iprave vysoko\v skolsk\'ych z\'avere\v cn\'ych pr\'ac.
  159. Beriem na vedomie, \v ze sa na moju pr\'acu vz\v tahuj\'u pr\'ava a povinnosti vypl\'yvaj\'uce zo z\'akona \v c.~121/2000~Sb, autorsk\'eho z\'akona, v znen\'\i\ neskor\v s\'\i ch predpisov. V s\'ulade s ustanoven\'\i m \S{}~46 odst.~6 tohoto z\'akona t\'ymto ude\v lujem bezv\'yhradn\'e opr\'avnenie (licenciu) k~pou\v z\'\i vaniu tejto mojej pr\'ace, a to vr\'atane v\v setk\'ych po\v c\'\i ta\v cov\'ych programov ktor\'e s\'u jej s\'u\v cas\v tou alebo pr\'\i lohou a tie\v z v\v setkej ich dokument\'acie (\v dalej len \uv{Dielo}), a to v\v setk\'ym osob\'am, ktor\'e si praj\'u Dielo pou\v z\'iva\v t. Tieto osoby s\'u opr\'avnen\'e Dielo pou\v z\'\i va\v t ak\'ymko\v lvek
  160. sp\^ osobom, ktor\'y nezni\v zuje hodnotu Diela, ale len pre~nez\'arobkov\'e \'u\v cely. Toto opr\'avnenie je \v casovo, \'uzemne a mno\v zstevne ne\-ob\-me\-dze\-n\'e.
  161. }\else{%
  162. I hereby declare that the presented thesis is my own work and that I have cited all sources of information in accordance with the Guideline for adhering to ethical principles when elaborating an academic final thesis.
  163. I acknowledge that my thesis is subject to the rights and obligations stipulated by the Act No.\,121/2000~Coll., the Copyright Act, as amended. In accordance with Article~46~(6) of the Act, I hereby grant a nonexclusive authorization (license) to utilize this thesis, including any and all computer programs incorporated therein or attached thereto and all corresponding documentation (hereinafter collectively referred to as the ``Work''), to any and all persons that wish to utilize the Work. Such persons are entitled to use the Work for non-profit purposes only, in any way that does not detract from its value. This authorization is not limited in terms of time, location and quantity.
  164. }\fi\fi
  165. }\@declarationOptionSelectedtrue\fi
  166. \ifx3#1 \DeclareRobustCommand{\thedeclarationofauthenticity}{\if\@lang1{%
  167. \input{prohlaseni3.tex.txt}
  168. }\else\if\@lang2{%
  169. Prehlasujem, \v ze som predlo\v zen\'u pr\'acu vypracoval(a) samostatne a \v ze som uviedol(uviedla) v\v setky informa\v cn\'e zdroje v~s\'ulade s~Metodick\'ym pokynom o~etickej pr\'iprave vysoko\v skolsk\'ych z\'avere\v cn\'ych pr\'ac.
  170. Beriem na vedomie, \v ze sa na moju pr\'acu vz\v tahuj\'u pr\'ava a povinnosti vypl\'yvaj\'uce zo z\'akona \v c.~121/2000~Sb., autorsk\'eho z\'akona, v znen\'\i\ neskor\v s\'\i ch predpisov. \v Dalej prehlasujem, \v ze som s~\v Cesk\'ym vysok\'ym u\v cen\'\i m technick\'ym uzavrel licen\v cn\'u zmluvu o~pou\v zit\'\i\ tejto pr\'ace ako \v skolsk\'eho diela pod\v la \S{}~60 odst.~1 autorsk\'eho z\'akona. T\'ato skuto\v cnos\v t nem\'a vplyv na ust. \S{}~47b z\'akona \v c.~111/1998~Sb. o~vysok\'ych \v skol\'ach.
  171. }\else{%
  172. I hereby declare that the presented thesis is my own work and that I have cited all sources of information in accordance with the Guideline for adhering to ethical principles when elaborating an academic final thesis.
  173. I acknowledge that my thesis is subject to the rights and obligations stipulated by the Act No.\,121/2000~Coll., the Copyright Act, as amended. I further declare that I have concluded a license agreement with the Czech Technical University in Prague on the utilization of this thesis as a school work under the provisions of Article~60~(1) of the Act. This fact shall not affect the provisions of Article~47b of the Act No.\,111/1998~Coll., the Higher Education Act, as amended.
  174. }\fi\fi
  175. }\@declarationOptionSelectedtrue\fi
  176. \ifx4#1 \DeclareRobustCommand{\thedeclarationofauthenticity}{\if\@lang1{%
  177. \input{prohlaseni4.tex.txt}
  178. }\else\if\@lang2{%
  179. Prehlasujem, \v ze som predlo\v zen\'u pr\'acu vypracoval(a) samostatne a \v ze som uviedol(uviedla) v\v setky informa\v cn\'e zdroje v~s\'ulade s~Metodick\'ym pokynom o~etickej pr\'iprave vysoko\v skolsk\'ych z\'avere\v cn\'ych pr\'ac.
  180. Beriem na vedomie, \v ze sa na moju pr\'acu vz\v tahuj\'u pr\'ava a povinnosti vypl\'yvaj\'uce zo z\'akona \v c.~121/2000~Sb., autorsk\'eho z\'akona, v znen\'\i\ neskor\v s\'\i ch predpisov. V~s\'ulade s ustanoven\'\i m \S{}~46 odst.~6 tohoto z\'akona t\'ymto ude\v lujem bezv\'yhradn\'e opr\'avnenie (licenciu) k~u\v z\'\i vaniu tejto mojej pr\'ace, a to vr\'atane v\v setk\'ych po\v c\'\i ta\v cov\'ych programov ktor\'e s\'u jej s\'u\v cas\v tou alebo pr\'\i lohou a tie\v z v\v setkej ich dokument\'acie (\v dalej len \uv{Dielo}), a to v\v setk\'ym osob\'am, ktor\'e si praj\'u Dielo u\v z\'iva\v t.
  181. Tieto osoby s\'u opr\'avnen\'e Dielo pou\v z\'\i va\v t ak\'ymko\v lvek
  182. sp\^ osobom, ktor\'y nezni\v zuje hodnotu Diela, a za ak\'ymko\v lvek \'u\v celom (vr\'atane komer\v cn\'eho vyu\v zitia). Toto opr\'avnenie je \v casovo, \'uzemne a mno\v zstevne neobmedzen\'e.
  183. Ka\v zd\'a osoba, ktor\'a vyu\v zije vy\v s\v sie uveden\'u licenciu, sa v\v sak zav\"azuje priradi\v t ka\v zd\'emu dielu, ktor\'e vznikne (\v co i len \v ciasto\v cne) na z\'aklade Diela, \'upravou
  184. Diela, spojen\'\i m Diela s~in\'ym dielom, zaraden\'\i m Diela do diela s\'uborn\'eho \v ci zpracovan\'\i m Diela (vr\'atane prekladu), licenciu aspo\v n vo vy\v s\v sie uvedenom rozsahu
  185. a~z\'arove\v n sa zav\"azuje spr\'\i stupni\v t zdrojov\'y k\'od tak\'eho diela aspo\v n zrovnate\v ln\'ym sp\^osobom a v~zrovnate\v lnom rozsahu ako je zpr\'\i stupnen\'y zdrojov\'y k\'od Diela.
  186. }\else{%
  187. I hereby declare that the presented thesis is my own work and that I have cited all sources of information in accordance with the Guideline for adhering to ethical principles when elaborating an academic final thesis.
  188. I acknowledge that my thesis is subject to the rights and obligations stipulated by the Act No.\,121/2000~Coll., the Copyright Act, as amended. In accordance with Article~46~(6) of the Act, I hereby grant a nonexclusive authorization (license) to utilize this thesis, including any and all computer programs incorporated therein or attached thereto and all corresponding documentation (hereinafter collectively referred to as the ``Work''), to any and all persons that wish to utilize the Work. Such persons are entitled to use the Work in any way (including for-profit purposes) that does not detract from its value. This authorization is not limited in terms of time, location and quantity. However, all persons that makes use of the above license shall be obliged to grant a license at least in the same scope as defined above with respect to each and every work that is created (wholly or in part) based on the Work, by modifying the Work, by combining the Work with another work, by including the Work in a collection of works or by adapting the Work (including translation), and at the same time make available the source code of such work at least in a way and scope that are comparable to the way and scope in which the source code of the Work is made available.
  189. }\fi\fi
  190. }\@declarationOptionSelectedtrue\fi
  191. \ifx5#1 \DeclareRobustCommand{\thedeclarationofauthenticity}{\if\@lang1{%
  192. \input{prohlaseni5.tex.txt}
  193. }\else\if\@lang2{%
  194. Prehlasujem, \v ze som predlo\v zen\'u pr\'acu vypracoval(a) samostatne a \v ze som uviedol(uviedla) v\v setky informa\v cn\'e zdroje v~s\'ulade s~Metodick\'ym pokynom o~etickej pr\'iprave vysoko\v skolsk\'ych z\'avere\v cn\'ych pr\'ac.
  195. Beriem na vedomie, \v ze sa na moju pr\'acu vz\v tahuj\'u pr\'ava a povinnosti vypl\'yvaj\'uce zo z\'akona \v c.~121/2000~Sb., autorsk\'eho z\'akona, v znen\'\i\ neskor\v s\'\i ch predpisov. V~s\'ulade s ustanoven\'\i m \S{}~46 odst.~6 tohoto z\'akona t\'ymto ude\v lujem bezv\'yhradn\'e opr\'avnenie (licenciu) k~u\v z\'\i vaniu tejto mojej pr\'ace, a to vr\'atane v\v setk\'ych po\v c\'\i ta\v cov\'ych programov ktor\'e s\'u jej s\'u\v cas\v tou alebo pr\'\i lohou a tie\v z v\v setkej ich dokument\'acie (\v dalej len \uv{Dielo}), a to v\v setk\'ym osob\'am, ktor\'e si praj\'u Dielo u\v z\'iva\v t. Tieto osoby s\'u opr\'avnen\'e Dielo pou\v z\'\i va\v t ak\'ymko\v lvek
  196. sp\^ osobom, ktor\'y nezni\v zuje hodnotu Diela (vr\'atane komer\v cn\'eho vyu\v zitia). Toto opr\'avnenie je \v casovo, \'uzemne a~mno\v zstevne neobmedzen\'e.
  197. }\else{
  198. I hereby declare that the presented thesis is my own work and that I have cited all sources of information in accordance with the Guideline for adhering to ethical principles when elaborating an academic final thesis.
  199. I acknowledge that my thesis is subject to the rights and obligations stipulated by the Act No.\,121/2000~Coll., the Copyright Act, as amended. In accordance with Article~46~(6) of the Act, I hereby grant a nonexclusive authorization (license) to utilize this thesis, including any and all computer programs incorporated therein or attached thereto and all corresponding documentation (hereinafter collectively referred to as the ``Work''), to any and all persons that wish to utilize the Work. Such persons are entitled to use the Work in any way (including for-profit purposes) that does not detract from its value. This authorization is not limited in terms of time, location and quantity.
  200. }\fi\fi
  201. }\@declarationOptionSelectedtrue\fi
  202. \ifx6#1 \DeclareRobustCommand{\thedeclarationofauthenticity}{\if\@lang1{%
  203. \input{prohlaseni6.tex.txt}
  204. }\else\if\@lang2{%
  205. Prehlasujem, \v ze som predlo\v zen\'u pr\'acu vypracoval(a) samostatne a \v ze som uviedol(uviedla) v\v setky informa\v cn\'e zdroje v~s\'ulade s~Metodick\'ym pokynom o~etickej pr\'iprave vysoko\v skolsk\'ych z\'avere\v cn\'ych pr\'ac.
  206. Beriem na vedomie, \v ze sa na moju pr\'acu vz\v tahuj\'u pr\'ava a povinnosti vypl\'yvaj\'uce zo z\'akona \v c.~121/2000~Sb., autorsk\'eho z\'akona, v znen\'\i\ neskor\v s\'\i ch predpisov. \v Dalej prehlasujem, \v ze som s~\v CVUT uzavrel dohodu, na z\'aklade ktorej sa \v CVUT vzdalo pr\'ava na uzavrenie licen\v cnej zmluvy o~pou\v z\'\i van\'\i\ tejto pr\'ace ako \v skolsk\'eho diela pod\v la \S{}~60 odst.~1 autorsk\'eho z\'akona. T\'ato skuto\v cnos\v t nem\'a vplyv na ust. \S{}~47b z\'akona \v c.~111/1998~Sb. o~vysok\'ych \v skol\'ach.
  207. }\else{
  208. I hereby declare that the presented thesis is my own work and that I have cited all sources of information in accordance with the Guideline for adhering to ethical principles when elaborating an academic final thesis.
  209. I acknowledge that my thesis is subject to the rights and obligations stipulated by the Act No.\,121/2000~Coll., the Copyright Act, as amended. I further declare that I have concluded an agreement with the Czech Technical University in Prague, on the basis of which the Czech Technical University in Prague has waived its right to conclude a license agreement on the utilization of this thesis as a school work under the provisions of Article~60~(1) of the Act. This fact shall not affect the provisions of Article~47b of the Act No.\,111/1998~Coll., the Higher Education Act, as amended.
  210. }\fi\fi
  211. }\@declarationOptionSelectedtrue\fi
  212. }
  213. % \DeclareRobustCommand{\titlepage}{
  214. % \begin{titlingpage}
  215. % \begin{center}
  216. % \noindent\begin{tabular*}{\textwidth}{m{.77\textwidth}m{.165\textwidth}}
  217. % {\large\scshape \if\@lang1{
  218. % {\v C}esk{\' e} vysok{\' e} u{\v c}en{\' i} technick{\' e} v~Praze
  219. % }\else\if\@lang2{
  220. % {\v C}esk{\' e} vysok{\' e} u{\v c}en{\' i} technick{\' e} v~Praze
  221. % }\else{
  222. % Czech Technical University in Prague
  223. % }\fi\fi
  224. %
  225. % \vspace{3mm}
  226. %
  227. % \if\@lang1{
  228. % Fakulta informa{\v c}n{\' i}ch technologi{\' i}
  229. % }\else\if\@lang2{
  230. % Fakulta informa{\v c}n{\' i}ch technologi{\' i}
  231. % }\else{
  232. % Faculty of Information Technology
  233. % }\fi\fi
  234. %
  235. % \vspace{4mm}
  236. %
  237. % \if@departmentdefined
  238. % \thedepartment
  239. % \else
  240. % \ClassError{FITthesis}{Department unspecified}{Specify the department using the \department command.}
  241. % \fi
  242. % } & \hfill\includegraphics[width=.16\textwidth]{cvut-logo-bw}
  243. % \end{tabular*}
  244. % \end{center}
  245. %
  246. %
  247. % \vfill
  248. %
  249. % {\Large
  250. % \noindent\thesistype
  251. % }
  252. % \vspace{1cm}
  253. %
  254. % \if\thetitle\empty
  255. % \ClassError{FITthesis}{Thesis' title unspecified}{Specify title of this thesis using the \protect\title\space command.}
  256. % \else
  257. % \noindent\textbf{\LARGE \begin{flushleft}\thetitle\end{flushleft}}
  258. % \fi
  259. %
  260. % \vspace{4mm}
  261. %
  262. % \if@authorwithdegreesdefined
  263. % \noindent\textbf{\Large \textit{\theauthorwithdegrees}}
  264. % \else
  265. % \ClassError{FITthesis}{Thesis' author with degrees unspecified}{Specify author of this thesis (i.e. your name \& degrees) using the \protect\theauthorwithdegrees\space command.}
  266. % \fi
  267. %
  268. % \vfill
  269. %
  270. % \noindent\if\@lang1{Vedouc{\' i} pr{\' a}ce:}\else\if\@lang2{Ved\'uci pr{\' a}ce:}\else{Supervisor:}\fi\fi
  271. % \if@supervisordefined%
  272. % ~\thesupervisor
  273. % \else
  274. % \ClassError{FITthesis}{Thesis' supervisor unspecified}{Specify the supervisor of this thesis using the \protect\thesupervisor\space command.}
  275. % \fi
  276. %
  277. % \vspace{1cm}
  278. %
  279. % \noindent\today
  280. % \end{titlingpage}
  281. % }
  282. \DeclareRobustCommand{\titlepage}{
  283. \begin{titlingpage}
  284. \noindent
  285. \if\@lang1{\includegraphics[width=0.5\textwidth]{cvut-logo-bw}}\else\if\@lang2{\includegraphics[width=0.5\textwidth]{cvut-logo-bw}}\else{\includegraphics[width=0.5\textwidth]{cvut-logo-bw-en}}\fi\fi
  286. \vfill
  287. {\Large\noindent\thesistype}
  288. \vspace{1cm}
  289. \if\thetitle\empty
  290. \ClassError{FITthesis}{Thesis' title unspecified}{Specify title of this thesis using the \protect\title\space command.}
  291. \else
  292. \noindent\textbf{\LARGE \begin{flushleft}\thetitle\end{flushleft}}
  293. \fi
  294. \vspace{4mm}
  295. \if@authorwithdegreesdefined
  296. \noindent\textbf{\Large \textit{\theauthorwithdegrees}}
  297. \else
  298. \ClassError{FITthesis}{Thesis' author with degrees unspecified}{Specify author of this thesis (i.e. your name \& degrees) using the \protect\theauthorwithdegrees\space command.}
  299. \fi
  300. \vfill
  301. \if@departmentdefined
  302. \noindent \thedepartment
  303. \else
  304. \ClassError{FITthesis}{Department unspecified}{Specify the department using the \department command.}
  305. \fi
  306. \vspace{0.1cm}
  307. \noindent\if\@lang1{Vedouc{\' i} pr{\' a}ce:}\else\if\@lang2{Ved\'uci pr{\' a}ce:}\else{Supervisor:}\fi\fi
  308. \if@supervisordefined%
  309. ~\thesupervisor
  310. \else
  311. \ClassError{FITthesis}{Thesis' supervisor unspecified}{Specify the supervisor of this thesis using the \protect\thesupervisor\space command.}
  312. \fi
  313. \vspace{1cm}
  314. \noindent\today
  315. \end{titlingpage}
  316. }
  317. \DeclareRobustCommand{\acknowledgementspage}{
  318. \if@acknowledgementsdefined
  319. \cleardoublepage
  320. \thispagestyle{empty}
  321. ~
  322. \vfill
  323. \if\@lang1\chapterstyletitle{Pod{\v e}kov{\' a}n{\' i}}\else\if\@lang2\chapterstyletitle{Po\v dakovanie}\else\chapterstyletitle{Acknowledgements}\fi\fi\theacknowledgements
  324. \fi
  325. }
  326. \DeclareRobustCommand{\declarationofauthenticitypage}{
  327. \cleardoublepage
  328. \thispagestyle{empty}
  329. ~
  330. \vfill
  331. \if@declarationOptionSelected
  332. \if\@lang1\chapterstyletitle{Prohl{\' a}{\v s}en{\' i}}\else\if\@lang2\chapterstyletitle{Prehl{\' a}senie}\else\chapterstyletitle{Declaration}\fi\fi\thedeclarationofauthenticity{}
  333. \vspace{2cm}
  334. \noindent
  335. \if@cityfordeclarationdefined
  336. \if\@lang1{}\else\if\@lang2{}\else{In }\fi\fi\thecityfordeclaration{} \if\@lang1{dne}\else\if\@lang2{}\else{on}\fi\fi~\today \hfill \dots\dots\dots\dots\dots\dots\dots
  337. \else
  338. \ClassError{FITthesis}{M{\' i}sto prohl{\' a}{\v s}en{\' i} nebylo zad{\' a}no}{Nastavte m{\' i}sto, kde bylo podeps{\' a}no prohl{\' a}{\v s}en{\' i}, v{\v c}etn{\v e} p{\v r}edlo{\v z}ky (nap{\v r}. V~Praze) pomoc{\' i} p{\v r}{\' i}kazu \placeForDeclaration.}
  339. \fi
  340. \else
  341. \ClassError{FITthesis}{Declaration of authenticity unspecified}{Select the declaration of authenticity using the \declarationOfAuthenticityOption command.}
  342. \fi
  343. }
  344. \DeclareRobustCommand{\imprintpage}{
  345. \clearpage
  346. \thispagestyle{empty}
  347. ~
  348. \vfill
  349. \if\@lang1{
  350. \noindent {\v C}esk{\' e} vysok{\' e} u{\v c}en{\' i} technick{\' e} v~Praze
  351. \noindent Fakulta informa{\v c}n{\' i}ch technologi{\' i}}\else\if\@lang2{
  352. \noindent {\v C}esk{\' e} vysok{\' e} u{\v c}en{\' i} technick{\' e} v~Praze
  353. \noindent Fakulta informa{\v c}n{\' i}ch technologi{\' i}}\else{
  354. \noindent Czech Technical University in Prague
  355. \noindent Faculty of Information Technology
  356. }\fi\fi
  357. \noindent \textcopyright{} \the\year{} \theauthorGN{} \theauthorFN{}. \if\@lang1{V{\v s}echna pr{\' a}va vyhrazena.}\else\if\@lang2{V{\v s}etky pr{\' a}va vyhraden\'e.}\else{All rights reserved.}\fi\fi
  358. \if\@lang1{
  359. \noindent \textit{Tato pr{\' a}ce vznikla jako {\v s}koln{\' i} d{\' i}lo na {\v C}esk{\' e}m vysok{\' e}m u{\v c}en{\' i} technick{\' e}m v~Praze, Fakult{\v e} informa{\v c}n{\' i}ch technologi{\' i}. Pr{\' a}ce je chr{\' a}n{\v e}na pr{\' a}vn{\' i}mi p{\v r}edpisy a mezin{\' a}rodn{\' i}mi {\' u}mluvami o~pr{\' a}vu autorsk{\' e}m a pr{\' a}vech souvisej{\' i}c{\' i}ch s~pr{\' a}vem autorsk{\' y}m. K~jej\'\i{}mu u\v zit\'\i{}, s~v\'yjimkou bez\'uplatn\'ych z\'akonn\'ych licenc\'\i{} a nad r\'amec opr\'avn\v en\'\i{} uveden\'ych v~Prohl\'a\v sen\'\i{} na p\v redchoz\'\i{} stran\v e, je nezbytn\'y souhlas autora.}}\else\if\@lang2{
  360. \noindent \textit{T\'ato pr\'aca vznikla ako \v skolsk\'e dielo na FIT \v CVUT v Prahe. Pr\'aca je chr\'anen\'a medzin\'arodn\'ymi predpismi a zmluvami o autorskom pr\'ave a pr\'avach s\'uvisiacich s autorsk\'ym pr\'avom. Na jej vyu\v zitie, s~v\'ynimkou bezplatn\'ych z\'akonn\'ych licenci\'\i, je nutn\'y s\'uhlas autora.}}\else{
  361. \noindent \textit{This thesis is school work as defined by Copyright Act of the Czech Republic. It has been submitted at Czech Technical University in Prague, Faculty of Information Technology. The thesis is protected by the Copyright Act and its usage without author's permission is prohibited (with exceptions defined by the Copyright Act).}
  362. }\fi\fi
  363. \if\@lang1{\subsection*{Odkaz na tuto pr{\' a}ci} \theauthorFN{}, \theauthorGN{}. \textit{\thetitle{}}. \thesistype{}. Praha: {\v C}esk\'e vysok\'e u\v cen\'\i{} technick\'e v~Praze, Fakulta informa{\v c}n{\' i}ch technologi{\' i}, \the\year.\if@websitedefined{ Dostupn\'y tak\'e z~WWW: $\langle$\url{\thewebsite}$\rangle$.}\fi}\else\if\@lang2{\subsection*{Odkaz na t\'uto pr{\' a}cu} \theauthorFN{}, \theauthorGN{}. \textit{\thetitle{}}. \thesistype{}. Praha: {\v C}esk\'e vysok\'e u\v cen\'\i{} technick\'e v~Praze, Fakulta informa{\v c}n{\' i}ch technologi{\' i}, \the\year.\if@websitedefined{ Dostupn\'y aj z~WWW: $\langle$\url{\thewebsite}$\rangle$.}\fi}\else{\subsection*{Citation of this thesis} \theauthorFN{}, \theauthorGN{}. \textit{\thetitle{}}. \thesistype{}. Czech Technical University in Prague, Faculty of Information Technology, \the\year.\if@websitedefined{ Also available from: $\langle$\url{\thewebsite}$\rangle$.}\fi}\fi\fi
  364. }
  365. \DeclareRobustCommand{\abstractpage}{
  366. \chapter*{Abstrakt}
  367. \if@abstractcsdefined
  368. \theabstractcs
  369. \else
  370. \ClassError{FITthesis}{Abstract in Czech unspecified}{Specify abstract in Czech language using the \abstractCS command.}
  371. \fi
  372. \if@keywordscsdefined
  373. \paragraph*{Kl{\' i}{\v c}ov{\' a} slova} \thekeywordscs{}
  374. \else
  375. \ClassError{FITthesis}{Czech keywords unspecified}{Specify the keywords in Czech of your thesis using \keywordsCS command.}
  376. \fi
  377. \vfil
  378. \if@abstractendefined
  379. \chapterstyletitle{Abstract}\theabstracten
  380. \else
  381. \ClassError{FITthesis}{Abstract in English unspecified}{Specify abstract in English using the \abstractEN command.}
  382. \fi
  383. \if@keywordsendefined
  384. \paragraph*{Keywords} \thekeywordsen{}
  385. \else
  386. \ClassError{FITthesis}{English keywords unspecified}{Specify the keywords in English of your thesis using \keywordsEN command.}
  387. \fi
  388. }
  389. \AfterEndPreamble{
  390. % fix the memoir bug generating structured numbers (e.g., a figure number) without dot
  391. \renewcommand{\counterwithin}{\@ifstar{\@csinstar}{\@csin}}
  392. \thispagestyle{empty}
  393. \if\@lang1{Sem vlo{\v z}te zad{\' a}n{\' i} Va{\v s}{\' i} pr{\' a}ce.}\else\if\@lang2{Sem vlo{\v z}te zadanie Va{\v s}ej pr{\' a}ce.}\else{Insert here your thesis' task.}\fi\fi
  394. \frontmatter
  395. \pagestyle{plain}
  396. \cleardoublepage
  397. % \setcounter{page}{3}
  398. \titlepage
  399. \setcounter{page}{3}
  400. \acknowledgementspage
  401. \declarationofauthenticitypage
  402. \imprintpage
  403. \abstractpage
  404. \cleardoublepage
  405. \tableofcontents*
  406. \cleardoublepage
  407. \listoffigures*
  408. \cleardoublepage
  409. \listoftablescond
  410. \pagestyle{ruled}
  411. \mainmatter
  412. }