Advertisement
Guest User

Untitled

a guest
Jan 9th, 2017
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.14 KB | None | 0 0
  1. %%
  2. %% This is file `diploma.cls',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% VersionInfo.dtx
  8. %% Introduction.dtx
  9. %% UserManual.dtx
  10. %% ImplementationBeginning.dtx
  11. %% Constants.dtx
  12. %% VariablesDeclaration.dtx
  13. %% BaseClassAndPackages.dtx
  14. %% OptionsDeclaration.dtx
  15. %% PublicMacros.dtx
  16. %% InternalMacros.dtx
  17. %% SourceCodeListings.dtx
  18. %% ImplementationFinale.dtx
  19. %%
  20. %% IMPORTANT NOTICE:
  21. %%
  22. %% For the copyright see the source file.
  23. %%
  24. %% Any modified versions of this file must be renamed
  25. %% with new filenames distinct from diploma.cls.
  26. %%
  27. %% For distribution of the original source see the terms
  28. %% for copying and modification in the file VersionInfo.dtx Introduction.dtx UserManual.dtx ImplementationBeginning.dtx Constants.dtx VariablesDeclaration.dtx BaseClassAndPackages.dtx OptionsDeclaration.dtx PublicMacros.dtx InternalMacros.dtx SourceCodeListings.dtx ImplementationFinale.dtx.
  29. %%
  30. %% This generated file may be distributed as long as the
  31. %% original source files, as listed above, are part of the
  32. %% same distribution. (The sources need not necessarily be
  33. %% in the same archive or directory.)
  34. \def\fileversion{3.935}
  35. \def\filedate{2016/04/25}
  36. \def\docdate{25. dubna 2016}
  37. \NeedsTeXFormat{LaTeX2e}
  38. \ProvidesClass{diploma}[\filedate\space \fileversion\space diploma LaTeX document class]
  39. \RequirePackage[utf8]{inputenc}
  40. \RequirePackage{ifthen}
  41. \newcommand{\Dipl@BachelorThesis}{0}
  42. \newcommand{\Dipl@BachelorPractice}{1}
  43. \newcommand{\Dipl@MasterThesis}{2}
  44. \newcommand{\Dipl@PhDThesis}{3}
  45. \newcommand{\Dipl@CzechLanguage}{0}
  46. \newcommand{\Dipl@EnglishLanguage}{1}
  47. \newcommand{\Dipl@SlovakLanguage}{2}
  48. \newtoks\Dipl@UniversityName
  49. \Dipl@UniversityName={No university name is given}
  50. \newtoks\Dipl@FacultyName
  51. \Dipl@FacultyName={No faculty name is given}
  52. \newtoks\Dipl@DepartmentName
  53. \Dipl@DepartmentName={No department name is given}
  54. \newtoks\Dipl@ThesisAuthor
  55. \Dipl@ThesisAuthor={No author name is given}
  56. \newtoks\Dipl@CzechThesisTitle
  57. \Dipl@CzechThesisTitle={No Czech or Slovak thesis title is given}
  58. \newtoks\Dipl@EnglishThesisTitle
  59. \Dipl@EnglishThesisTitle={No English thesis title is given}
  60. \newtoks\Dipl@SubmissionDate
  61. \Dipl@SubmissionDate={No submission date is given}
  62. \newtoks\Dipl@ThesisAssignmentImagePath
  63. \Dipl@ThesisAssignmentImagePath={}
  64. \newtoks\Dipl@AuthorDeclaration
  65. \Dipl@AuthorDeclaration={}
  66. \newtoks\Dipl@AuthorDeclarationImageFile
  67. \Dipl@AuthorDeclarationImageFile={}
  68. \newtoks\Dipl@CooperatingPersonsDeclaration
  69. \Dipl@CooperatingPersonsDeclaration={}
  70. \newtoks\Dipl@ThesisAccessRestriction
  71. \Dipl@ThesisAccessRestriction={}
  72. \newtoks\Dipl@CooperatingPersonsDeclarationImageFile
  73. \Dipl@CooperatingPersonsDeclarationImageFile={}
  74. \newtoks\Dipl@Thanks
  75. \Dipl@Thanks={}
  76. \newtoks\Dipl@CzechAbstract
  77. \Dipl@CzechAbstract={No Czech or Slovak abstract is given}
  78. \newtoks\Dipl@CzechKeywords
  79. \Dipl@CzechKeywords={No Czech or Slovak keywords are given}
  80. \newtoks\Dipl@EnglishAbstract
  81. \Dipl@EnglishAbstract={No English abstract is given}
  82. \newtoks\Dipl@EnglishKeywords
  83. \Dipl@EnglishKeywords={No English keywords are given}
  84. \newtoks\Dipl@Acronyms
  85. \Dipl@Acronyms={}
  86. \newtoks\Dipl@DefaultSourceCodeLanguage
  87. \Dipl@DefaultSourceCodeLanguage={java}
  88. \newboolean{Dipl@IsPublicPart}
  89. \setboolean{Dipl@IsPublicPart}{true}
  90. \newboolean{Dipl@AuthorIsMale}
  91. \setboolean{Dipl@AuthorIsMale}{true}
  92. \newboolean{Dipl@PrintCooperatingPersonsDeclaration}
  93. \setboolean{Dipl@PrintCooperatingPersonsDeclaration}{false}
  94. \newboolean{Dipl@IsAppendix}
  95. \setboolean{Dipl@IsAppendix}{false}
  96. \newcounter{Dipl@CurrentThesisType}
  97. \setcounter{Dipl@CurrentThesisType}{\Dipl@MasterThesis}
  98. \newcounter{Dipl@CurrentThesisLanguage}
  99. \setcounter{Dipl@CurrentThesisLanguage}{\Dipl@CzechLanguage}
  100. \newcounter{Dipl@ThesisAssignmentImageCounter}
  101. \LoadClass[11pt]{article}
  102. \RequirePackage[czech,english,slovak]{babel}
  103. \RequirePackage[T1]{fontenc}
  104. \RequirePackage{lmodern}
  105. \RequirePackage[a4paper,includefoot,nohead,marginparwidth=0mm,marginparsep=0mm,left=30mm,right=20mm,top=30mm,bottom=30mm]{geometry}
  106. \RequirePackage{booktabs}
  107. \RequirePackage{graphicx}
  108. \RequirePackage[final]{listings}
  109. \RequirePackage{longtable}
  110. \RequirePackage{rotating}
  111. \RequirePackage{setspace}
  112. \RequirePackage{theorem}
  113. \RequirePackage{titlesec}
  114. \RequirePackage[nottoc,notindex,section]{tocbibind}
  115. \RequirePackage{totcount}
  116. \RequirePackage{xcolor}
  117. \RequirePackage[a-1b]{pdfx}
  118. \DeclareOption{czech}
  119. {
  120. \setcounter{Dipl@CurrentThesisLanguage}{\Dipl@CzechLanguage}
  121. \Dipl@UniversityName={VŠB -- Technická univerzita Ostrava}
  122. \Dipl@FacultyName={Fakulta elektrotechniky a informatiky}
  123. }
  124. \DeclareOption{english}
  125. {
  126. \setcounter{Dipl@CurrentThesisLanguage}{\Dipl@EnglishLanguage}
  127. \Dipl@UniversityName={VŠB -- Technical University of Ostrava}
  128. \Dipl@FacultyName={Faculty of Electrical Engineering and Computer Science}
  129. }
  130. \DeclareOption{slovak}
  131. {
  132. \setcounter{Dipl@CurrentThesisLanguage}{\Dipl@SlovakLanguage}
  133. \Dipl@UniversityName={VŠB -- Technická univerzita Ostrava}
  134. \Dipl@FacultyName={Fakulta elektrotechniky a informatiky}
  135. }
  136. \DeclareOption{bachelor}
  137. {
  138. \setcounter{Dipl@CurrentThesisType}{\Dipl@BachelorThesis}
  139. \Dipl@CooperatingPersonsDeclaration={\Dipl@IfEnglish{I hereby agree to the publishing of the bachelor's thesis as per s. 26, ss. 9 of the Study and Examination Regulations for Bachelor's Degree Programmes at VŠB -- Technical University of Ostrava.}{Souhlasím se zveřejněním této bakalářské práce dle požadavků čl.\ 26, odst.\ 9 Studijního a~zkušebního řádu pro studium v bakalářských programech VŠB-TU Ostrava.}}
  140. }
  141. \DeclareOption{bachelorpractice}
  142. {
  143. \setcounter{Dipl@CurrentThesisType}{\Dipl@BachelorPractice}
  144. \Dipl@CzechThesisTitle={Absolvování individuální odborné praxe}
  145. \Dipl@EnglishThesisTitle={Individual Professional Practice in the Company}
  146. \Dipl@CooperatingPersonsDeclaration={\Dipl@IfEnglish{I hereby agree to the publishing of the bachelor's thesis as per s. 26, ss. 9 of the Study and Examination Regulations for Bachelor's Degree Programmes at VŠB -- Technical University of Ostrava.}{Souhlasím se zveřejněním této bakalářské práce dle požadavků čl.\ 26, odst.\ 9 Studijního a~zkušebního řádu pro studium v bakalářských programech VŠB-TU Ostrava.}}
  147. }
  148. \DeclareOption{master}
  149. {
  150. \setcounter{Dipl@CurrentThesisType}{\Dipl@MasterThesis}
  151. \Dipl@CooperatingPersonsDeclaration={\Dipl@IfEnglish{I hereby agree to the publishing of the master's thesis as per s. 26, ss. 9 of the Study and Examination Regulations for Master's Degree Programmes at VŠB -- Technical University of Ostrava.}{Souhlasím se zveřejněním této diplomové práce dle požadavků čl.\ 26, odst.\ 9 Studijního a~zkušebního řádu pro studium v magisterských programech VŠB-TU Ostrava.}}
  152. }
  153. \DeclareOption{phd}{\setcounter{Dipl@CurrentThesisType}{\Dipl@PhDThesis}}
  154. \DeclareOption{public}{\setboolean{Dipl@IsPublicPart}{true}}
  155. \DeclareOption{nonpublic}{\setboolean{Dipl@IsPublicPart}{false}}
  156. \DeclareOption{cpdeclaration}{\setboolean{Dipl@PrintCooperatingPersonsDeclaration}{true}}
  157. \DeclareOption{dept410}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Electrical Power Engineering}{Katedra elektroenergetiky}}}
  158. \DeclareOption{dept420}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Electrical Engineering}{Katedra elektrotechniky}}}
  159. \DeclareOption{dept430}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Electronics}{Katedra elektroniky}}}
  160. \DeclareOption{dept440}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Telecommunications}{Katedra telekomunikační techniky}}}
  161. \DeclareOption{dept450}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Cybernetics and Biomedical Engineering}{Katedra kybernetiky a biomedicínského inženýrství}}}
  162. \DeclareOption{dept460}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Computer Science}{Katedra informatiky}}}
  163. \DeclareOption{dept470}{\Dipl@DepartmentName={\Dipl@IfEnglish{Department of Applied Mathematics}{Katedra aplikované matematiky}}}
  164. \DeclareOption{male}
  165. {
  166. \setboolean{Dipl@AuthorIsMale}{true}
  167. \ifthenelse{\(\value{Dipl@CurrentThesisType}=\Dipl@BachelorThesis\) \or \(\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice\)}
  168. {
  169. \Dipl@AuthorDeclaration={\Dipl@IfEnglish{I hereby declare that this bachelor's thesis was written by myself. I have quoted all the references I have drawn upon.}{Prohlašuji, že jsem tuto bakalářskou práci vypracoval samostatně. Uvedl jsem všechny literární prameny a publikace, ze kterých jsem čerpal.}}
  170. }
  171. {\relax}
  172. \ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@MasterThesis}
  173. {
  174.  
  175. \Dipl@AuthorDeclaration={\Dipl@IfEnglish{I hereby declare that this master's thesis was written by myself. I have quoted all the references I have drawn upon.}{Prohlašuji, že jsem tuto diplomovou práci vypracoval samostatně. Uvedl jsem všechny literární prameny a publikace, ze kterých jsem čerpal.}}
  176. }
  177. {\relax}
  178. }
  179. \DeclareOption{female}
  180. {
  181. \setboolean{Dipl@AuthorIsMale}{false}
  182. \ifthenelse{\(\value{Dipl@CurrentThesisType}=\Dipl@BachelorThesis\) \or \(\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice\)}
  183. {
  184. \Dipl@AuthorDeclaration={\Dipl@IfEnglish{I hereby declare that this bachelor's thesis was written by myself. I have quoted all the references I have drawn upon.}{Prohlašuji, že jsem tuto bakalářskou práci vypracovala samostatně. Uvedla jsem všechny literární prameny a publikace, ze kterých jsem čerpala.}}
  185. }
  186. {\relax}
  187. \ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@MasterThesis}
  188. {
  189. \Dipl@AuthorDeclaration={\Dipl@IfEnglish{I hereby declare that this master's thesis was written by myself. I have quoted all the references I have drawn upon.}{Prohlašuji, že jsem tuto diplomovou práci vypracovala samostatně. Uvedla jsem všechny literární prameny a publikace, ze kterých jsem čerpala.}}
  190. }
  191. {\relax}
  192. }
  193. \DeclareOption{ansic}{\Dipl@DefaultSourceCodeLanguage={ansic}}
  194. \DeclareOption{bash}{\Dipl@DefaultSourceCodeLanguage={bash}}
  195. \DeclareOption{cil}{\Dipl@DefaultSourceCodeLanguage={cil}}
  196. \DeclareOption{cpp}{\Dipl@DefaultSourceCodeLanguage={cpp}}
  197. \DeclareOption{csharp}{\Dipl@DefaultSourceCodeLanguage={csharp}}
  198. \DeclareOption{delphi}{\Dipl@DefaultSourceCodeLanguage={delphi}}
  199. \DeclareOption{gnuplot}{\Dipl@DefaultSourceCodeLanguage={gnuplot}}
  200. \DeclareOption{html}{\Dipl@DefaultSourceCodeLanguage={html}}
  201. \DeclareOption{java}{\Dipl@DefaultSourceCodeLanguage={java}}
  202. \DeclareOption{latex}{\Dipl@DefaultSourceCodeLanguage={latex}}
  203. \DeclareOption{lisp}{\Dipl@DefaultSourceCodeLanguage={lisp}}
  204. \DeclareOption{lua}{\Dipl@DefaultSourceCodeLanguage={lua}}
  205. \DeclareOption{make}{\Dipl@DefaultSourceCodeLanguage={make}}
  206. \DeclareOption{mathematica}{\Dipl@DefaultSourceCodeLanguage={mathematica}}
  207. \DeclareOption{matlab}{\Dipl@DefaultSourceCodeLanguage={matlab}}
  208. \DeclareOption{octave}{\Dipl@DefaultSourceCodeLanguage={octave}}
  209. \DeclareOption{pascal}{\Dipl@DefaultSourceCodeLanguage={pascal}}
  210. \DeclareOption{perl}{\Dipl@DefaultSourceCodeLanguage={perl}}
  211. \DeclareOption{php}{\Dipl@DefaultSourceCodeLanguage={php}}
  212. \DeclareOption{pov}{\Dipl@DefaultSourceCodeLanguage={pov}}
  213. \DeclareOption{prolog}{\Dipl@DefaultSourceCodeLanguage={prolog}}
  214. \DeclareOption{python}{\Dipl@DefaultSourceCodeLanguage={python}}
  215. \DeclareOption{ruby}{\Dipl@DefaultSourceCodeLanguage={ruby}}
  216. \DeclareOption{r}{\Dipl@DefaultSourceCodeLanguage={r}}
  217. \DeclareOption{sh}{\Dipl@DefaultSourceCodeLanguage={sh}}
  218. \DeclareOption{sql}{\Dipl@DefaultSourceCodeLanguage={sql}}
  219. \DeclareOption{tcltk}{\Dipl@DefaultSourceCodeLanguage={tcltk}}
  220. \DeclareOption{vb}{\Dipl@DefaultSourceCodeLanguage={vb}}
  221. \DeclareOption{vhdl}{\Dipl@DefaultSourceCodeLanguage={vhdl}}
  222. \DeclareOption{xml}{\Dipl@DefaultSourceCodeLanguage={xml}}
  223. \DeclareOption{xslt}{\Dipl@DefaultSourceCodeLanguage={xslt}}
  224. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
  225. \ProcessOptions
  226. \newcommand{\ThesisAuthor}[1]{\Dipl@ThesisAuthor={#1}}
  227. \newcommand{\CzechThesisTitle}[1]{\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice}{\relax}{\Dipl@CzechThesisTitle={#1}}}
  228. \newcommand{\EnglishThesisTitle}[1]{\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice}{\relax}{\Dipl@EnglishThesisTitle={#1}}}
  229. \newcommand{\SubmissionDate}[1]{\Dipl@SubmissionDate={#1}}
  230. \newcommand{\ThesisAssignmentImagePath}[1]{\Dipl@ThesisAssignmentImagePath={#1}}
  231. \newcommand{\AuthorDeclarationImageFile}[1]{\Dipl@AuthorDeclarationImageFile={#1}}
  232. \newcommand{\ThesisAccessRestriction}[1]{\Dipl@ThesisAccessRestriction={#1}}
  233. \newcommand{\CooperatingPersonsDeclarationImageFile}[1]{\Dipl@CooperatingPersonsDeclarationImageFile={#1}}
  234. \newcommand{\Thanks}[1]{\Dipl@Thanks={#1}}
  235. \newcommand{\CzechAbstract}[1]{\Dipl@CzechAbstract={#1}}
  236. \newcommand{\CzechKeywords}[1]{\Dipl@CzechKeywords={#1}}
  237. \newcommand{\EnglishAbstract}[1]{\Dipl@EnglishAbstract={#1}}
  238. \newcommand{\EnglishKeywords}[1]{\Dipl@EnglishKeywords={#1}}
  239. \newcommand{\AddAcronym}[2]{\Dipl@AddTokens{\Dipl@Acronyms}{#1&--&#2\\}}
  240. \newcommand{\MakeTitlePages}
  241. {
  242. \pagestyle{empty}
  243. \Dipl@TitlePage
  244. \Dipl@ThesisAssignmentPage
  245. \Dipl@AuthorDeclarationPage
  246. \Dipl@CooperatingPersonsDeclarationPage
  247. \Dipl@WriteThanksPage
  248. \Dipl@AbstractsKeywordsPage
  249. \pagestyle{plain}
  250. \tableofcontents\cleardoublepage
  251. \Dipl@WriteAcronymsPage
  252. \ifthenelse{\totvalue{figure}>0}{\listoffigures\cleardoublepage}{\relax}
  253. \ifthenelse{\totvalue{table}>0}{\listoftables\cleardoublepage}{\relax}
  254. }
  255. {\theorembodyfont{\itshape}\newtheorem{definition}{\Dipl@IfEnglish{Definition}{Definice}}}
  256. {\theorembodyfont{\itshape}\newtheorem{theorem}{\Dipl@IfEnglish{Theorem}{Věta}}}
  257. \newenvironment{proof}
  258. {\par\noindent\textbf{\Dipl@IfEnglish{Proof.}{Důkaz.}}}
  259. {\mbox{}\hspace*{5pt}\hfill\hbox{\vrule height5pt depth0pt width5pt}\par\medskip}
  260. {\theorembodyfont{\rmfamily}\newtheorem{remark}{\Dipl@IfEnglish{Remark}{Poznámka}}}
  261. {\theoremstyle{break}\theorembodyfont{\rmfamily}\newtheorem{Dipl@examplebody}{\Dipl@IfEnglish{Example}{Příklad}}}
  262. \newenvironment{example}
  263. {\begin{Dipl@examplebody}}
  264. {
  265. \nopagebreak\mbox{}\hspace*{5pt}\hfill\hbox{\vrule height5pt depth0pt width5pt}
  266. \end{Dipl@examplebody}
  267. }
  268. \newcommand{\InsertFigure}[4]
  269. {
  270. \begin{figure}
  271. \centering
  272. \includegraphics[width=#2]{#1}
  273. \caption{#3}
  274. \label{#4}
  275. \end{figure}
  276. }
  277. \newcommand{\Dipl@TitlePage}
  278. {
  279. \begin{center}
  280. \sffamily
  281. {\Large\the\Dipl@UniversityName\par
  282. \the\Dipl@FacultyName\par
  283. \the\Dipl@DepartmentName\par}
  284. \vspace{26mm}
  285. {\Huge\bfseries\Dipl@IfEnglish{\the\Dipl@EnglishThesisTitle}{\the\Dipl@CzechThesisTitle}\par}
  286. \bigskip
  287. {\Huge\bfseries\Dipl@IfEnglish{\the\Dipl@CzechThesisTitle}{\the\Dipl@EnglishThesisTitle}\par}
  288. \ifthenelse{\boolean{Dipl@IsPublicPart}}{\relax}
  289. {
  290. \bigskip
  291. \bigskip
  292. {\huge\Dipl@IfEnglish{Non-public part/Neveřejná část}{Neveřejná část/Non-public part}\par}
  293. }
  294. \end{center}
  295. \vfill
  296. {\sffamily\Large\number\year\hfill\the\Dipl@ThesisAuthor}
  297. \cleardoublepage
  298. }
  299. \newcommand{\Dipl@ThesisAssignmentPage}
  300. {
  301. \ifthenelse{\equal{\the\Dipl@ThesisAssignmentImagePath}{\empty}}
  302. {
  303. \begin{center}
  304. \Large\sffamily\bfseries
  305. \Dipl@IfEnglish{This page will be replaced by official thesis assignment in printed and electronic version of the submitted thesis.}%
  306. {Tuto stránku nahradíte v tištěné verzi práce oficiálním zadáním Vaší diplomové či bakalářské práce.}
  307. \end{center}
  308. }
  309. {
  310. \setcounter{Dipl@ThesisAssignmentImageCounter}{1}
  311. \whiledo{\value{Dipl@ThesisAssignmentImageCounter}>0}
  312. {
  313. \IfFileExists{\the\Dipl@ThesisAssignmentImagePath\theDipl@ThesisAssignmentImageCounter.jpg}
  314. {
  315. \Dipl@InsertFullPageImage{\the\Dipl@ThesisAssignmentImagePath\theDipl@ThesisAssignmentImageCounter.jpg}
  316. \addtocounter{Dipl@ThesisAssignmentImageCounter}{1}
  317. }
  318. {
  319. \setcounter{Dipl@ThesisAssignmentImageCounter}{-1}
  320. }
  321. }
  322. }
  323. \cleardoublepage
  324. }
  325. \newcommand{\Dipl@AuthorDeclarationPage}
  326. {
  327. \ifthenelse{\equal{\the\Dipl@AuthorDeclarationImageFile}{\empty}}
  328. {
  329. \mbox{}
  330. \vfill
  331. \noindent
  332. \the\Dipl@AuthorDeclaration
  333. \par
  334. \vspace{15mm}
  335. \noindent\Dipl@IfEnglish{Ostrava,}{V Ostravě}~\the\Dipl@SubmissionDate\hfill\hbox to50mm{\dotfill}
  336. }
  337. {
  338. \Dipl@InsertFullPageImage{\the\Dipl@AuthorDeclarationImageFile}
  339. }
  340. \cleardoublepage
  341. }
  342. \newcommand{\Dipl@CooperatingPersonsDeclarationPage}
  343. {
  344. \ifthenelse{\boolean{Dipl@PrintCooperatingPersonsDeclaration}}
  345. {
  346. \ifthenelse{\equal{\the\Dipl@CooperatingPersonsDeclarationImageFile}{\empty}}
  347. {
  348. \mbox{}
  349. \vfill
  350. \ifthenelse{\equal{\the\Dipl@ThesisAccessRestriction}{\empty}}
  351. {\relax}
  352. {\noindent\the\Dipl@ThesisAccessRestriction\par\bigskip}
  353. \noindent
  354. \the\Dipl@CooperatingPersonsDeclaration
  355. \par
  356. \vspace{15mm}
  357. \noindent\Dipl@IfEnglish{Ostrava,}{V Ostravě}~\the\Dipl@SubmissionDate\hfill\hbox to50mm{\dotfill}
  358. }
  359. {
  360. \Dipl@InsertFullPageImage{\the\Dipl@CooperatingPersonsDeclarationImageFile}
  361. }
  362. \cleardoublepage
  363. }
  364. {\relax}
  365. }
  366. \newcommand{\Dipl@WriteThanksPage}
  367. {
  368. \ifthenelse{\equal{\the\Dipl@Thanks}{\empty}}
  369. {\relax}
  370. {
  371. \mbox{}
  372. \vfill
  373. \noindent\the\Dipl@Thanks
  374. \cleardoublepage
  375. }
  376. }
  377. \newcommand{\Dipl@AbstractsKeywordsPage}
  378. {
  379. \vspace*{20mm plus 0mm minus 25mm}
  380. \ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@SlovakLanguage}
  381. {
  382. \begin{otherlanguage}{slovak}
  383. \noindent\textbf{Abstrakt}
  384. \medbreak
  385. \noindent\the\Dipl@CzechAbstract
  386. \bigbreak
  387. \noindent\textbf{Kľúčové slová}:~\the\Dipl@CzechKeywords\par
  388. \end{otherlanguage}
  389. }
  390. {
  391. \begin{otherlanguage}{czech}
  392. \noindent\textbf{Abstrakt}
  393. \medbreak
  394. \noindent\the\Dipl@CzechAbstract
  395. \bigbreak
  396. \noindent\textbf{Klíčová slova}:~\the\Dipl@CzechKeywords\par
  397.  
  398. \end{otherlanguage}
  399. }
  400. \vspace{30mm plus 0mm minus 30mm}
  401. \begin{otherlanguage}{english}
  402. \noindent\textbf{Abstract}
  403. \medbreak
  404. \noindent\the\Dipl@EnglishAbstract
  405. \bigbreak
  406. \noindent\textbf{Key Words}:~\the\Dipl@EnglishKeywords\par
  407. \end{otherlanguage}
  408. \cleardoublepage
  409. }
  410. \newcommand{\Dipl@WriteAcronymsPage}
  411. {
  412. \ifthenelse{\equal{\the\Dipl@Acronyms}{\empty}}
  413. {\relax}
  414. {
  415. \section*{\Dipl@IfEnglish{List of symbols and abbreviations}{Seznam použitých zkratek a symbolů}}
  416. \ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@EnglishLanguage}
  417. {
  418. \addcontentsline{toc}{section}{List of symbols and abbreviations}
  419. }
  420. {
  421. \addcontentsline{toc}{section}{Seznam použitých zkratek a symbolů}
  422. }
  423. \begin{longtable*}[l]{p{0.2\textwidth}cp{0.7\textwidth}}
  424. \the\Dipl@Acronyms
  425. \end{longtable*}
  426. \cleardoublepage
  427. }
  428. }
  429. \newcommand{\Dipl@PrintRestriction}
  430. {
  431. \noindent\the\Dipl@PublicationAgreement\par
  432. \ifthenelse{\equal{\the\Dipl@AccessRestriction}{\empty}}
  433. {\relax}
  434. {\bigskip\noindent\the\Dipl@AccessRestriction\par}
  435. \vspace{15mm}
  436. \noindent\Dipl@IfEnglish{Ostrava,}{V Ostravě}~\the\Dipl@SubmissionDate\hfill\hbox to50mm{\dotfill}\par
  437. \vspace{15mm}
  438. }
  439. \newcommand{\sectionbreak}
  440. {
  441. \cleardoublepage
  442. \ifthenelse{\boolean{Dipl@IsAppendix}}{\relax}{\suppressfloats}
  443. }
  444. \let\Dipl@OldAppendix\appendix
  445. \renewcommand{\appendix}
  446. {
  447. \Dipl@OldAppendix
  448. \addcontentsline{toc}{section}{\appendixname}%
  449. }
  450. \newcommand{\Dipl@IfEnglish}[2]{\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@EnglishLanguage}{#1}{#2}}
  451. \newcommand{\Dipl@AddTokens}[2]{\expandafter \global#1\expandafter{\the#1#2}}
  452. \newcommand{\Dipl@InsertFullPageImage}[1]
  453. {
  454. \newgeometry{margin=1pt,nohead,nofoot,nomarginpar,centering}
  455. \thispagestyle{empty}
  456. \begin{center}
  457. \includegraphics[width=0.99\textwidth,height=0.99\textheight]{#1}
  458. \end{center}
  459. \cleardoublepage
  460. \restoregeometry
  461. }
  462. \newcommand{\Dipl@SetDefaultLanguage}
  463. {
  464. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{ansic}}{\lstset{language=[ANSI]C}}{}
  465. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{bash}}{\lstset{language=bash}}{}
  466. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{cil}}{\lstset{language=CIL}}{}
  467. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{cpp}}{\lstset{language=C++}}{}
  468. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{csharp}}{\lstset{language=[Sharp]C}}{}
  469. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{delphi}}{\lstset{language=Delphi}}{}
  470. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{gnuplot}}{\lstset{language=Gnuplot}}{}
  471. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{html}}{\lstset{language=HTML}}{}
  472. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{java}}{\lstset{language=Java}}{}
  473. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{latex}}{\lstset{language=[LaTeX]TeX}}{}
  474. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{lisp}}{\lstset{language=Lisp}}{}
  475. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{lua}}{\lstset{language=Lua}}{}
  476. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{make}}{\lstset{language=make}}{}
  477. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{mathematica}}{\lstset{language=Mathematica}}{}
  478. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{matlab}}{\lstset{language=Matlab}}{}
  479. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{octave}}{\lstset{language=Octave}}{}
  480. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{pascal}}{\lstset{language=Pascal}}{}
  481. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{perl}}{\lstset{language=Perl}}{}
  482. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{php}}{\lstset{language=PHP}}{}
  483. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{pov}}{\lstset{language=POV}}{}
  484. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{prolog}}{\lstset{language=Prolog}}{}
  485. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{python}}{\lstset{language=Python}}{}
  486. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{ruby}}{\lstset{language=Ruby}}{}
  487. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{r}}{\lstset{language=R}}{}
  488. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{sh}}{\lstset{language=sh}}{}
  489. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{sql}}{\lstset{language=SQL}}{}
  490. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{tcltk}}{\lstset{language=[tk]tcl}}{}
  491. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{vb}}{\lstset{language=[Visual]Basic}}{}
  492. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{vhdl}}{\lstset{language=VHDL}}{}
  493. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{xml}}{\lstset{language=XML}}{}
  494. \ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{xslt}}{\lstset{language=XSLT}}{}
  495. }
  496. \lstset
  497. {
  498. basicstyle=\ttfamily,
  499. keywordstyle=\color{blue},
  500. identifierstyle=\color[RGB]{43,145,175},
  501. commentstyle=\slshape\color[RGB]{0,128,0},
  502. stringstyle=\color[RGB]{163,21,21},
  503. breaklines=true,
  504. tabsize=3,
  505. columns=flexible,
  506. showstringspaces=false,
  507. frame=lines,
  508. captionpos=b
  509. }
  510. \onehalfspacing
  511. \setcounter{tocdepth}{2}
  512. \setcounter{secnumdepth}{5}
  513. \widowpenalty=9000
  514. \clubpenalty=9000
  515. \regtotcounter{figure}
  516. \regtotcounter{table}
  517. \addto{\captionsczech}{\renewcommand{\refname}{Literatura}}
  518. \addto{\captionsslovak}{\renewcommand{\refname}{Literatura}}
  519. \addto{\captionsczech}{\renewcommand{\appendixname}{Přílohy}}
  520. \addto{\captionsslovak}{\renewcommand{\appendixname}{Přílohy}}
  521. \AtBeginDocument%
  522. {
  523. \ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@CzechLanguage}
  524. {
  525. \selectlanguage{czech}
  526. \def\lstlistlistingname{Seznam výpisů zdrojového kódu}
  527. \def\lstlistingname{Výpis}
  528. }{}
  529. \ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@EnglishLanguage}
  530. {
  531. \selectlanguage{english}
  532. }{}
  533. \ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@SlovakLanguage}
  534. {
  535. \selectlanguage{slovak}
  536. \def\lstlistlistingname{Seznam výpisů zdrojového kódu}
  537. \def\lstlistingname{Výpis}
  538. }{}
  539. \Dipl@SetDefaultLanguage
  540. }
  541. \endinput
  542. %%
  543. %% End of file `diploma.cls'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement