%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sablona pro psani diplomovych praci                                     %%
%%                                                                         %%
%% Autor: Petr Sysel,                                                      %%
%%        Pavel Rajmic,                                                    %%
%%        Jiri Mekyska,                                                    %%
%%                                                                         %%
%% FEKT, VUT v Brne                                                        %%
%% latex@feec.vutbr.cz                                                     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Zaklad stylu byl prevzat ze stylu pro elektronizaci ucebnich textu      %%
%%                                                                         %%
%% Sablona pro elektronicka skripta                                        %%
%% Verze: 1.0 (beta)                                                       %%
%% Autor: Jakub Hrabec												                             %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\fileversion{2.52}
\def\filedate{2011/04/07}
\def\filename{thesis.sty}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Vstupni nastaveni balicku %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NeedsTeXFormat{LaTeX2e}[1995/12/01]


\ProvidesClass{thesis}%
  [\filedate  v\fileversion  LaTeX document class]
\typeout{}
\typeout{Styl '\filename' pro psani studenstkych praci v(\fileversion) na VUT v Brne} 
\typeout{}

%% Zpracovani volby typu prace
\DeclareOption{semestral}%sazba semestralniho projektu
  {%
    \ifx\akt@type\undefined
      \global\let\akt@type=\type@semestral
    \else
      \@latex@warning@no@line{Typ prace je jiz nastaven na hodnotu '\akt@type'}%
    \fi
  }%
\DeclareOption{bachelor}%sazba bakalarske prace
  {%
    \ifx\akt@type\undefined
      \global\let\akt@type=\type@bachelor
    \else
      \@latex@warning@no@line{Typ prace je jiz nastaven na hodnotu '\akt@type'}%
    \fi
  }%
\DeclareOption{diploma}%sazba diplomove prace
  {%
    \ifx\akt@type\undefined
      \global\let\akt@type=\type@diploma
    \else
      \@latex@warning@no@line{Typ prace je jiz nastaven na hodnotu '\akt@type'}%
    \fi
  }%
\DeclareOption{phd}%sazba doktorske prace
  {%
    \ifx\akt@type\undefined
      \global\let\akt@type=\type@phd
    \else
      \@latex@warning@no@line{Typ prace je jiz nastaven na hodnotu '\akt@type'}%
    \fi
  }%

%% Zpracovani volby jazyka
\DeclareOption{english}% originalnim jazykem je anglictina, preklad bude v cestine
  {\def\orig@lang{englishvut}\def\tran@lang{czechvut}}
\DeclareOption{czech}% originalnim jazykem je cestina, preklad bude v anglictine
  {\def\orig@lang{czechvut}\def\tran@lang{englishvut}}

%% Zpracovani volby zarovnani rovnic a popisku plovoucich objektu
\DeclareOption{left}% zarovnani rovnic a plovoucich objektu vlevo
  {\let\akt@center=\center@vlevo}
\DeclareOption{center}% zarovnani rovnic a plovoucich objektu na stred
  {\let\akt@center=\center@nastred}
\DeclareOption{vlevo}% zarovnani rovnic a plovoucich objektu vlevo (zachovano z duvodu zp. kompatibility)
  {\let\akt@center=\center@vlevo}
\DeclareOption{centrovat}% zarovnani rovnic a plovoucich objektu na stred (zachovano z duvodu zp. kompatibility)
  {\let\akt@center=\center@nastred}

%% Zpracovani volby vystupniho ovladace
\DeclareOption{dvipdfm}% prevod bude proveden pomoci dvipdfm
  {%
    \ifx\akt@driver\undefined
      \global\let\akt@driver=\driver@dvipdfm
    \else
      \@latex@warning@no@line{Vystupni driver byl jiz nastaven na hodnotu '\akt@driver'}%
    \fi
  }%
\DeclareOption{pdftex} % prevod bude proveden pomoci pdftex
  {%
    \ifx\akt@driver\undefined
      \global\let\akt@driver=\driver@pdftex
    \else
      \@latex@warning@no@line{Vystupni driver byl jiz nastaven na hodnotu '\akt@driver'}%
    \fi
  }%
\DeclareOption{dvips}  % prevod bude proveden pomoci dvips
  {%
    \ifx\akt@driver\undefined
      \global\let\akt@driver=\driver@dvips
    \else
      \@latex@warning@no@line{Vystupni driver byl jiz nastaven na hodnotu '\akt@driver'}%
    \fi
  }%

%% Zpracovani volby stylu titulnich stran
\DeclareOption{vutstyle}% titulni stranky podle smernice rektora
  {\PackageError{'thesis'}{Od verze 2.20 je provadena sazba pouze ve VUT stylu a volba 'vutstyle' je zrusena}}

%% Vnitrni prikazy pro typ prace
\def\type@phd{phd}
\def\type@diploma{diploma}
\def\type@bachelor{bachelor}
\def\type@semestral{semestral}

%% Vnitrni prikazy pro vystupni ovladac
\def\driver@pdftex{pdftex}
\def\driver@dvips{dvips}
\def\driver@dvipdfm{dvipdfm}

%% Vnitrni prikazy pro zarovnani rovnic a popisku plovoucich objektu
\def\center@vlevo{vlevo}
\def\center@nastred{nastred}

%% Zpracovani voleb
\ProcessOptions

%% Nastaveni vychozich hodnot
%% Vychozi nastaveni vystupniho ovladace
\ifx\akt@driver\undefined
  \let\akt@driver=\driver@pdftex
\fi

%% Vychozi nastaveni zarovnani rovnic a popisku plovoucich objektu
\ifx\akt@center\undefined
  \let\akt@center=\center@nastred
\fi

%% Vychozi nastaveni sazby typu prace
\ifx\akt@type\undefined
  \global\let\akt@type=\type@diploma
\fi

%% Vychozi nastaveni jazyka prace
\ifx\orig@lang\undefined
  \def\orig@lang{czechvut}
\fi
\ifx\tran@lang\undefined
  \def\tran@lang{englishvut}
\fi

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Nove prikazy pro symboly a jednotky                                      
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Deklarace Eulerova cisla
\DeclareMathSymbol{\E}{\mathord}{operators}{`e}
\DeclareMathSymbol{\eul}{\mathord}{operators}{`e}
%% Deklarace imaginarni jednotky
\DeclareMathSymbol{\I}{\mathord}{operators}{`i}
\DeclareMathSymbol{\imag}{\mathord}{operators}{`i}
\DeclareMathSymbol{\J}{\mathord}{operators}{`j}
\DeclareMathSymbol{\jmag}{\mathord}{operators}{`j}
%% Deklarace diferencialniho d
\DeclareMathSymbol{\dif}{\mathord}{operators}{`d}
%% Definice funkce sinc
\def\sinc{\mathop{\operator@font sinc}\nolimits}
%% Definice symbolu "mikro"
\def\mikro{\mbox{\textmu}}

%% Definice prikazu pro sazbu konstantnich velicin
\DeclareMathAlphabet{\konst}{\encodingdefault}{\familydefault}{m}{n}
%% Definice prikazu pro sazbu promennych velicin
\DeclareMathAlphabet{\prom}{\encodingdefault}{\familydefault}{m}{it}
%% Definice prikazu pro sazbu komplexnich velicin
\DeclareMathAlphabet{\komplex}{\encodingdefault}{\familydefault}{bx}{it}
%% Definice prikazu pro sazbu matic %! podle normy CSN ISO 31-11 by mela byt matice tucne kurzivou
\DeclareMathAlphabet{\matice}{\encodingdefault}{\familydefault}{bx}{n}
%% Definice prikazu pro sazbu vektoru %! podle normy CSN ISO 31-11 by mel byt vektor tucne kurzivou
\DeclareMathAlphabet{\vekt}{\encodingdefault}{\familydefault}{bx}{n}
%% Definice prikazu pro sazbu jednotek
\DeclareMathAlphabet{\jednotka}{\encodingdefault}{\familydefault}{m}{n}
%% Definice prikazu pro sazbu "textoveho" indexu
\DeclareMathAlphabet{\textind}{\encodingdefault}{\familydefault}{m}{n}
%% Definice prikazu pro sazbu jednotky (mat. i text. mod)
\def\jedn#1{% 
\ifmmode%
	\jednotka{#1}%
\else%
	#1%
\fi%
}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Prikazy pro zmenu informaci o dokumentu                                 %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Prikaz pro zadani jmena autora, parametry ve tvaru [tituly pred]{Jmeno}{Prijmeni}[tituly za]
\newcommand\autor{\def\osoba@{autor}\futurelet\nextchar\rozbor@jmena}

%% Prikaz pro zadani jmena vedouciho, parametry ve tvaru [tituly pred]{Jmeno}{Prijmeni}[tituly za]
\newcommand\vedouci{\def\osoba@{vedouci}\futurelet\nextchar\rozbor@jmena}
\let\garant=\vedouci% z duvodu kompatibility se starsi verzi

%% Prikaz pro zadani nazvu: prvni parametr predstavuje nazev v originalnim jazyce, druhy v anglictine nebo cestine
\newcommand\nazev[2]{\expandafter\gdef\csname nazev@\orig@lang\endcsname{#1}\expandafter\gdef\csname nazev@\tran@lang\endcsname{#2}}

%% Prikaz pro zadani textu abstraktu: prvni parametr je text v originalnim jazyce, druhy v anglictine nebo cestine
\newcommand\abstrakt[2]{\expandafter\gdef\csname abstrakt@\orig@lang\endcsname{#1}\expandafter\gdef\csname abstrakt@\tran@lang\endcsname{#2}}

%% Prikaz pro zadani klicovych slov: prvni parametr jsou klicova slova v originalnim jazyce, druhy v anglictine nebo cestine
\newcommand\klicovaslova[2]{\expandafter\gdef\csname keywords@\orig@lang\endcsname{#1}\expandafter\gdef\csname keywords@\tran@lang\endcsname{#2}}

%% Prikaz pro zadani roku obhajoby
\newcommand\rok[1]{\gdef\@rok{#1}}

%% Prikaz pro zadani mista obhajoby
\newcommand\misto[1]{\gdef\@misto{#1}}

%% Prikaz pro zadani oboru: prvni parametr je nazev oboru v originalnim jazyce, druhy v anglictine nebo v cestine
\newcommand\oborstudia[2]{\expandafter\gdef\csname oborstudia@\orig@lang\endcsname{#1}\expandafter\gdef\csname oborstudia@\tran@lang\endcsname{#2}}

%% Prikaz pro zadani ustavu: prvni parametr je nazev ustavu v originalnim jazyce, druhy v anglictine nebo cestine
\newcommand\ustav[2]{\expandafter\gdef\csname ustav@\orig@lang\endcsname{#1}\expandafter\gdef\csname ustav@\tran@lang\endcsname{#2}}

%% Prikaz pro zadani nazvu skoly: prvni parametr je nazev skoly v originalnim jazyce, druhy v anglictine nebo cestine
\newcommand\skola[2]{%
  \expandafter\gdef\csname skola@\orig@lang\endcsname{#1}%
  \expandafter\gdef\csname skola@\tran@lang\endcsname{#2}%
}%
%% Prikaz pro zadani loga skoly: parametr je odkaz na obrazovy soubor s logem skoly
\newcommand\logoskola[1]{%
  \def\logo@skola{#1}%
}%

%% Prikaz pro zadani nazvu fakulty: prvni parametr je nazev fakulty v originalnim jazyce, druhy v anglictine nebo cestine
\newcommand\fakulta[2]{%
  \expandafter\gdef\csname fakulta@\orig@lang\endcsname{#1}%
  \expandafter\gdef\csname fakulta@\tran@lang\endcsname{#2}%
}%
%% Prikaz pro zadani loga fakulty: parametr je odkaz na obrazovy soubor s logem fakulty
\newcommand\logofakulta[1]{%
  \def\logo@fakulta{#1}%
}%

%% Prikaz pro nastaveni vlastnosti pdf dokumentu
\newcommand{\nastavenipdf}{%
  \hypersetup{%% Nastaven\'{\i} pol\'{\i} PDF dokumentu
     pdftitle={\csname nazev@\orig@lang\endcsname},           % Pole 'Document Title'
     pdfauthor={\autor@jmeno\ \autor@prijmeni},               % Pole 'Author'
     pdfsubject={\csname oznaceniprace@\orig@lang\endcsname}, % Pole 'Subject'
     pdfkeywords={\csname keywords@\orig@lang\endcsname}      % Pole 'Keywords'
  }%%
}%




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Obsah, seznam obrazku, tabulek, literatury, zkratek, priloh %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Vysazeni obsahu
\newcommand{\obsah}%
  {{% prostredi kvuli \pagestyle
    \pagestyle{empty}
    \cleardoublepage
    \tableofcontents
    \newpage
	
    \if@twoside
      \pagestyle{empty}
      \cleardoublepage
    \fi
  }}%


%% Vysazeni seznamu obrazku
\newcommand{\seznamobrazku}%
  {{% prostredi kvuli \pagestyle
    \pagestyle{empty}
    \cleardoublepage
    \listoffigures
    \newpage
	
    \if@twoside
      \pagestyle{empty}
      \cleardoublepage
    \fi
  }}%


%% Vysazeni seznamu tabulek
\newcommand{\seznamtabulek}%
  {{% prostredi kvuli \pagestyle
    \pagestyle{empty}
    \cleardoublepage
    \listoftables
    \newpage

    \if@twoside
      \pagestyle{empty}
      \cleardoublepage
    \fi
  }}%


%% Vysazeni seznamu literatury
\newenvironment{literatura}[1]%
  {\cleardoublepage \begin{thebibliography}{#1}}%
  {\end{thebibliography} \newpage}


%% Vysazeni seznamu zkratek a symbolu
\newenvironment{seznamzkratek}[1]%
  {%
    \cleardoublepage
    \chapter*{\listofabbrevname}
    \phantomsection
    \addcontentsline{toc}{chapter}{\listofabbrevname}
    \begin{acronym}[#1]
  }{%
    \end{acronym}
    \newpage

    \if@twoside
      \pagestyle{empty}
      \cleardoublepage
    \fi
  }%

%% Prikaz pro definici nove zkratky nebo symbolu
%% prvni parametr je nazev zkratky pro odkazovani
%% druhy parametr je zkracena verze zkratky nebo symbol
%% treti parametr je rozepsana zkratka nebo popis symbolu
\newcommand{\novazkratka}[3]%
  {\acro{#1}[#2]{#3}}
	
%% Vysazeni zkratky zkracene verze zkratky/symbolu a v zavorce rozepsane zkratky/popis symbolu
%% parametr je nazev zkratky
\newcommand{\zkratka}[1]%
  {\ac{#1}}
	
%% Vysazeni kratke verze zkratky
%% parametr je nazev zkratky
\newcommand{\zk}[1]%
  {\acs{#1}}
	
%% Vysazeni dlouhe verze zkratky
%% parametr je nazev zkratky
\newcommand{\zkratkatext}[1]%
  {\acl{#1}}


%% Zahajeni sazby priloh
\newcommand\prilohy\start@prilohy

%% Vysazeni seznamu priloh
\newcommand\seznampriloh
  {%
    \chapter*{\listofappendicesname\@mkboth{\MakeUppercase\listofappendicesname}{\MakeUppercase\listofappendicesname}}
    \phantomsection
    \addcontentsline{toc}{chapter}{\listofappendicesname}
    \@starttoc{loa}
  }%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Definice vychozich textu pro oznaceni skoly, fakulty, ...                           
%% pro ruzne jazyky
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%% Vychozi nazvy studijnich programu v pouzitych jazycich
\ifx\akt@type\type@phd
  \newcommand\oznaceniprogramu@czechvut{Doktorsk\'{y} studijn\'{\i} obor}
  \newcommand\oznaceniprogramu@englishvut{Doctoral Study Programme}
\fi
\ifx\akt@type\type@diploma
  \newcommand\oznaceniprogramu@czechvut{Magistersk\'{y} studijn\'{\i} obor}
  \newcommand\oznaceniprogramu@englishvut{Master Study Programme}
\fi
\ifx\akt@type\type@bachelor
  \newcommand\oznaceniprogramu@czechvut{Bakal\'{a}\v{r}sk\'{y} studijn\'{\i} obor}
  \newcommand\oznaceniprogramu@englishvut{Bachelor Study Programme}
\fi
\ifx\akt@type\type@semestral
  \newcommand\oznaceniprogramu@czechvut{Bakal\'{a}\v{r}sk\'{y} studijn\'{\i} obor}
  \newcommand\oznaceniprogramu@englishvut{Bachelor Study Programme}
\fi

%% Vychozi oznaceni typu prace v pouzitych jazycich
\ifx\akt@type\type@phd
  \newcommand\oznaceniprace@czechvut{Doktorsk\'{a} pr\'{a}ce}
  \newcommand\oznaceniprace@englishvut{Doctoral thesis}
\fi
\ifx\akt@type\type@diploma
  \newcommand\oznaceniprace@czechvut{Diplomov\'{a} pr\'{a}ce}
  \newcommand\oznaceniprace@englishvut{Master's Thesis}
\fi
\ifx\akt@type\type@bachelor
  \newcommand\oznaceniprace@czechvut{Bakal\'{a}\v{r}sk\'{a} pr\'{a}ce}
  \newcommand\oznaceniprace@englishvut{Bachelor's Thesis}
\fi
\ifx\akt@type\type@semestral
  \newcommand\oznaceniprace@czechvut{Semestr\'{a}ln\'{\i} projekt}
  \newcommand\oznaceniprace@englishvut{Semestral Project}
\fi

%% Vychozi oznaceni autora prace v pouzitych jazycich
\newcommand\autortext@czechvut{Autor pr\'{a}ce}
\newcommand\autortext@englishvut{Author}

%% Vychozi oznaceni vedouciho v pouzitych jazycich
\newcommand\vedoucitext@czechvut{Vedouc\'{\i} pr\'{a}ce}
\newcommand\vedoucitext@englishvut{Supervisor}

%% Vychozi oznaceni abstraktu v pouzitych jazycich
\newcommand\oznaceniabstrakt@czechvut{Abstrakt}
\newcommand\oznaceniabstrakt@englishvut{Abstract}

%% Vychozi oznaceni klicovych slov v pouzitych jazycich
\newcommand\oznacenislov@czechvut{Kl\'{\i}\v{c}ov\'{a} slova}
\newcommand\oznacenislov@englishvut{Keywords}

%% Vychozi oznaceni oboru studia v pouzitych jazycich
\newcommand\oborstudiatext@czechvut{Obor}
\newcommand\oborstudiatext@englishvut{Specialization of Study}

%% Vychozi oznaceni prohlaseni v pouzitych jazycich
\newcommand\oznaceniprohlaseni@czechvut{Prohl\'{a}\v{s}en\'{\i}}
\newcommand\oznaceniprohlaseni@englishvut{Declaration}

%% Vychozi oznaceni mista obhajoby v prohlaseni
\newcommand\mistoprohlaseni@czechvut{\@misto}
\newcommand\mistoprohlaseni@englishvut{\@misto}

%% Vychozi oznaceni podpisu autora
\newcommand\oznacenipodpisu@czechvut{(podpis autora)}
\newcommand\oznacenipodpisu@englishvut{(author's signature)}

%% Vychozi text prohlaseni v pouzitych jazycich
\newcommand\prohlasenitext@czechvut%
{%
  \par\hspace{2ex}
  Prohla\v{s}uji, \v{z}e 
  \ifx\akt@type\type@semestral
    sv\r{u}j semestr\'{a}ln\'{\i} projekt
  \fi
  \ifx\akt@type\type@bachelor
    svou bakal\'{a}\v{r}skou pr\'{a}ci
  \fi
  \ifx\akt@type\type@diploma
    svou diplomovou pr\'{a}ci
  \fi
  \ifx\akt@type\type@phd
    svou doktorskou pr\'{a}ci
  \fi
  na t\'{e}ma \uv{\nazev@czechvut} jsem vypracoval samostatn\v{e} pod veden\'{\i}m vedouc\'{\i}ho 
  \ifx\akt@type\type@semestral
    semestr\'{a}ln\'{\i}ho projektu
  \fi
  \ifx\akt@type\type@bachelor
    bakal\'{a}\v{r}sk\'{e} pr\'{a}ce
  \fi
  \ifx\akt@type\type@diploma
    diplomov\'{e} pr\'{a}ce
  \fi
  \ifx\akt@type\type@phd
    doktorsk\'{e} pr\'{a}ce
  \fi
    a s~pou\v{z}it\'{\i}m odborn\'{e} literatury a dal\v{s}\'{\i}ch informa\v{c}n\'{\i}ch zdroj\r{u}, kter\'{e} jsou v\v{s}echny citov\'{a}ny v~pr\'{a}ci a uvedeny v~seznamu literatury na konci pr\'{a}ce.

  \par\hspace{2ex}
  Jako autor
  \ifx\akt@type\type@semestral
    uveden\'{e}ho semestr\'{a}ln\'{\i}ho projektu
  \fi
  \ifx\akt@type\type@bachelor
    uveden\'{e} bakal\'{a}\v{r}sk\'{e} pr\'{a}ce
  \fi
  \ifx\akt@type\type@diploma
    uveden\'{e} diplomov\'{e} pr\'{a}ce
  \fi
  \ifx\akt@type\type@phd
    uveden\'{e} doktorsk\'{e} pr\'{a}ce
  \fi
    d\'{a}le prohla\v{s}uji, \v{z}e v~souvislosti s~vytvo\v{r}en\'{\i}m
  \ifx\akt@type\type@semestral
    tohoto semestr\'{a}ln\'{\i}ho projektu
  \fi
  \ifx\akt@type\type@bachelor
    t\'{e}to bakal\'{a}\v{r}sk\'{e} pr\'{a}ce
  \fi
  \ifx\akt@type\type@diploma
    t\'{e}to diplomov\'{e} pr\'{a}ce
  \fi
  \ifx\akt@type\type@phd
    t\'{e}to doktorsk\'{e} pr\'{a}ce
  \fi
  jsem neporu\v{s}il autorsk\'{a} pr\'{a}va t\v{r}et\'{\i}ch osob, zejm\'{e}na jsem nezas\'{a}hl nedovolen\'{y}m zp\r{u}sobem do ciz\'{\i}ch autorsk\'{y}ch pr\'{a}v osobnostn\'{\i}ch a jsem si pln\v{e} v\v{e}dom n\'{a}sledk\r{u} poru\v{s}en\'{\i} ustanoven\'{\i} $\S$\,11 a n\'{a}sleduj\'{\i}c\'{\i}ch autorsk\'{e}ho z\'{a}kona \v{c}.~121/2000\,Sb., v\v{c}etn\v{e} mo\v{z}n\'{y}ch trestn\v{e}pr\'{a}vn\'{\i}ch d\r{u}sledk\r{u} vypl\'{y}vaj\'{\i}c\'{\i}ch z~ustanoven\'{\i} $\S$\,152 trestn\'{\i}ho z\'{a}kona \v{c}.~140/1961\,Sb.
}%
\newcommand\prohlasenitext@englishvut%
{
  \par\hspace{2ex}
  I declare that I have elaborated
  \ifx\akt@type\type@semestral
    my semestral project 
  \fi
  \ifx\akt@type\type@bachelor
    my bachelor's thesis
  \fi
  \ifx\akt@type\type@diploma
    my master's thesis
  \fi
  \ifx\akt@type\type@phd
    my doctoral thesis
  \fi
    on the theme of ``\nazev@englishvut'' independently, under the supervision of the
  \ifx\akt@type\type@semestral
    semestral project
  \fi
  \ifx\akt@type\type@bachelor
    bachelor's thesis
  \fi
  \ifx\akt@type\type@diploma
    master's thesis
  \fi
  \ifx\akt@type\type@phd
    doctoral thesis
  \fi
    supervisor and with the use of technical literature and other sources of information  which are all quoted in the
  \ifx\akt@type\type@semestral
    project
  \fi
  \ifx\akt@type\type@bachelor
    thesis
  \fi
  \ifx\akt@type\type@diploma
    thesis
  \fi
  \ifx\akt@type\type@phd
    thesis
  \fi
    and detailed in the list of literature at the end of the
  \ifx\akt@type\type@semestral
    project.
  \fi
  \ifx\akt@type\type@bachelor
    thesis.
  \fi
  \ifx\akt@type\type@diploma
    thesis.
  \fi
  \ifx\akt@type\type@phd
    thesis.
  \fi
  
  \par\hspace{2ex}
    As the author of the 
  \ifx\akt@type\type@semestral
    semestral project
  \fi
  \ifx\akt@type\type@bachelor
    bachelor's thesis
  \fi
  \ifx\akt@type\type@diploma
    master's thesis
  \fi
  \ifx\akt@type\type@phd
    doctoral thesis
  \fi
    I furthermore declare that, concerning the creation of this 
  \ifx\akt@type\type@semestral
    semestral project,
  \fi
  \ifx\akt@type\type@bachelor
    bachelor's thesis,
  \fi
  \ifx\akt@type\type@diploma
    master's thesis,
    master's thesis,
  \fi
  \ifx\akt@type\type@phd
    doctoral thesis,
  \fi
  I have not infringed any copyright. In particular, I have not unlawfully encroached on anyone's personal copyright and I am fully aware of the consequences in the case of breaking Regulation $\S$\,11 and the following of the Copyright Act No 121/2000 Vol., including the possible consequences of criminal law resulted from Regulation $\S$\,152 of Criminal Act No 140/1961 Vol.
}%

%% Vychozi oznaceni vedouciho v citaci
\newcommand\citace@vedouci@czechvut{Vedouc\'{\i} pr\'{a}ce byl \@vedouci}
\newcommand\citace@vedouci@englishvut{Supervised by \@vedouci}

%% Vychozi oznaceni poctu stran
\newcommand\citace@stran@czechvut{s}
\newcommand\citace@stran@englishvut{p}

%% Vychozi nazev skoly v pouzitych jazycich
\newcommand\skola@czechvut{Vysok\'{e} u\v{c}en\'{\i} technick\'{e} v~Brn\v{e}}
\newcommand\skola@englishvut{Brno University of Technology}
%% Vychozi obrazovy soubor s logem skoly
\def\dvipdfm@logo@skola{loga/RE-spec-color.eps}
\def\pdftex@logo@skola{loga/RE-spec-color.pdf}
\def\dvips@logo@skola{loga/RE-spec-color.eps}
%
\edef\logo@skola{\csname\akt@driver @logo@skola\endcsname}

%% Vychozi nazev fakulty v pouzitych jazycich
\newcommand\fakulta@czechvut{Fakulta elektrotechniky a~komunika\v{c}n\'{\i}ch technologi\'{\i}}
\newcommand\fakulta@englishvut{Faculty of Electrical Engineering and Communication}
%% Vychozi obrazovy soubor s logem fakulty
\def\dvipdfm@logo@fakulta{loga/FEKT-spec-color.eps}
\def\pdftex@logo@fakulta{loga/FEKT-spec-color.pdf}
\def\dvips@logo@fakulta{loga/FEKT-spec-color.eps}
%
\edef\logo@fakulta{\csname\akt@driver @logo@fakulta\endcsname}

%% Vychozi nastaveni nazvu prace v puvodnim jazyce a preklad
\def\nazev@czechvut{\@latex@warning@no@line{Nezadan nazev prace \noexpand\nazev}}
\def\nazev@englishvut{\@latex@warning@no@line{Nezadan nazev prace \noexpand\nazev}}

%% Vychozi nastaveni abstraktu prace v puvodnim jazyce a preklad
\def\abstrakt@czechvut{\@latex@warning@no@line{Nezadan abstrakt \noexpand\abstrakt} v ceskem jazyce}
\def\abstrakt@englishvut{\@latex@warning@no@line{Nezadan abstrakt \noexpand\abstrakt} v anglickem jazyce}

%% Vychozi nastaveni klicovych slov v puvodnim jazyce a preklad
\def\keywords@czechvut{\@latex@warning@no@line{Nezadany klicova slova \noexpand\klicovaslova v ceskem jazyce}}
\def\keywords@englishvut{\@latex@warning@no@line{Nezadany klicova slova \noexpand\klicovaslova v anglickem jazyce}}

%% Vychozi nastaveni roku obhajoby
\def\@rok{\@latex@warning@no@line{Nezadan rok \noexpand\rok}}

%% Vychozi nastaveni mista obhajoby
\def\@misto{\@latex@warning@no@line{Nezadano misto vydani \noexpand\misto}}

%% Vychozi nastaveni oboru studia
\def\oborstudia@czechvut{\@latex@warning@no@line{Nezadan studijni program \noexpand\oborstudia}}
\def\oborstudia@englishvut{\@latex@warning@no@line{Nezadan studijni program \noexpand\oborstudia}}

%% Vychozi nastaveni ustavu
\def\ustav@czechvut{\@latex@warning@no@line{Nezadan ustav \noexpand\ustav}}
\def\ustav@englishvut{\@latex@warning@no@line{Nezadan ustav \noexpand\ustav}}

%% Vychozi sazba jmena autora
\def\@autor
  {%
    \ifx\autor@pred\relax\else
      \autor@pred~%
    \fi
    \ifx\autor@jmeno\relax
      \@latex@warning@no@line{Nezadano jmeno autor textu \noexpand\autor}%
    \fi
    \autor@jmeno{}
    \autor@prijmeni
    \ifx\autor@za\relax\else
      ,~\autor@za
    \fi
  }%
%% Vychozi sazba jmena autora velkymi pismeny
\def\@Autor
  {%
    \ifx\autor@pred\relax\else
      \autor@pred~%
    \fi
    \ifx\autor@jmeno\relax
      \@latex@warning@no@line{Nezadano jmeno autor textu \noexpand\autor}%
    \fi
    \MakeUppercase{\autor@jmeno}
    \MakeUppercase{\autor@prijmeni}%
    \ifx\autor@za\relax\else
      ,~\autor@za
    \fi
  }%

%% Vychozi sazba jmena vedouciho
\def\@vedouci
  {%
    \ifx\vedouci@pred\relax\else
      \vedouci@pred~%
    \fi
    \ifx\vedouci@jmeno\relax
      \@latex@warning@no@line{Nezadano jmeno vedouciho textu \noexpand\vedouci}%
    \fi
    \vedouci@jmeno{}
    \vedouci@prijmeni
    \ifx\vedouci@za\relax\else
      ,~\vedouci@za
    \fi
  }%
%% Vychozi sazba jmena vedouciho velkymi pismeny
\def\@Vedouci
  {%
    \ifx\vedouci@pred\relax\else
      \vedouci@pred~%
    \fi
    \ifx\vedouci@jmeno\relax
      \@latex@warning@no@line{Nezadano jmeno vedouciho textu \noexpand\vedouci}%
    \fi
    \MakeUppercase{\vedouci@jmeno}
    \MakeUppercase{\vedouci@prijmeni}%
    \ifx\vedouci@za\relax\else
      ,~\vedouci@za
    \fi
  }%






%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Definice zbyvajicich nazvu a prepnuti jazykovych verzi %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\def\captionsenglish@vut{%
  \def\listtablename{List of Tables}%
  \def\contentsname{Contents}%
  \def\listfigurename{List of Figures}%
  \def\listofabbrevname{List of symbols, physical constants and abbreviations}%
  \def\listofappendicesname{List of appendices}%
  \def\figurename{Fig.}%
  \def\tablename{Tab.}%
  \def\refname{Bibliography}%
}%

\def\captionsczech@vut{%
  \def\listtablename{Seznam tabulek}%
  \def\contentsname{Obsah}%
  \def\listfigurename{Seznam obr\'{a}zk\r{u}}%
  \def\listofabbrevname{Seznam symbol\r{u}, veli\v{c}in a zkratek}
  \def\listofappendicesname{Seznam p\v{r}\'{\i}loh}
  \def\figurename{Obr.}
  \def\tablename{Tab.}
  \def\refname{Literatura}
}%

\def\set@lang@vut#1{%
  \ifcase #1\relax
    \captionsenglish@vut\or  % USenglish
    \relax \or               % german
    \relax \or               % austria
    \relax \or               % french
    \captionsenglish@vut \or % english
    \captionsczech@vut       % czech
    \relax                   % slovak
  \fi
}%


\newcount\USenglishvut \USenglishvut=0
\newcount\germanvut    \germanvut=1
\newcount\austriavut   \austriavut=2
\newcount\frenchvut    \frenchvut=3
\newcount\englishvut   \englishvut=4
\newcount\czechvut     \czechvut=5
\newcount\slovakvut    \slovakvut=6

\AtBeginDocument{\expandafter\set@lang@vut\csname\orig@lang\endcsname}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Typograficke vlastnosti %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Parametry stranky
%% Okraje 3.0 cm nahore a dole
%% Okraje 2.5 cm vlevo a vpravo
%% Okraje 1 cm u hrbetu
\hoffset -1.54cm
\voffset -0.04pt
\evensidemargin 1.5cm
\oddsidemargin 2.5cm
\topmargin -1.6cm
%% Vyska textu 237 mm
%% Sirka textu 150 mm
\textheight 237mm
\textwidth 150mm
%% Zahlavi
\headheight 1cm
\headsep 1cm
\footskip 1.5cm
%% Poznamky u okraje
\marginparwidth 5em
\marginparsep 5pt
%% Radkovani 1.2
\renewcommand\baselinestretch{1.2}
%% Nastaveni penalt pro sirotky a vdovy
\widowpenalty1000
\clubpenalty1000
%% Nastaveni penalty za rozdeleni slova na dve stranky
\brokenpenalty1000

%% Velikost pisma a mezery mezi vzorci
\def\@normalsize
  {%
    \@setsize\normalsize{12pt}\xpt\@xpt
    \abovedisplayskip=3mm plus6pt minus 4pt
    \belowdisplayskip=3mm plus6pt minus 4pt
    \abovedisplayshortskip=0mm plus6pt minus 2pt
    \belowdisplayshortskip=0mm plus4pt minus 4pt
    \let\@listi\@listI
  }%

%% Popis obrazku a tabulek
\def\fnum@table{\tablename\,\,\thetable}
\def\fnum@figure{\figurename\,\,\thefigure}
\setlength{\belowcaptionskip}{6pt}

%% Cislovani od ctvrte urovne nadpisu
\renewcommand\thesubsubsection{\@alph\c@subsubsection)}
\renewcommand\theparagraph    {\alph{subsubsection}.\@arabic\c@paragraph)}
\renewcommand\thesubparagraph {\alph{subsubsection}.\arabic{paragraph}.\@arabic\c@subparagraph)}

%% Sazba nadpisu kapitoly
\renewcommand\chapter
  {%
    \cleardoublepage\@startsection{chapter}{0}{\z@}%
    {-3.5ex \@plus -1ex \@minus -.2ex}%
    {2.3ex \@plus.2ex}%   %puvodne2.3ex
    {\normalfont\Large\bfseries\MakeUppercase}%
  }%

%% Formatovani kratke verze zkratky
\renewcommand*{\acsfont}[1]{%
  \fontfamily{\familydefault}%
  \fontseries{\mddefault}%
  \fontshape{\updefault}\selectfont #1%
}%

%% Formatovani dlouhe verze zkratky pri plnem vypisovani \acf
\renewcommand*{\acffont}[1]{%
  \fontfamily{\familydefault}%
  \fontseries{\mddefault}%
  \fontshape{\updefault}\selectfont #1%
}%

%% Formatovani kratke verze zkratky pri plnem vypisovani \acf
\renewcommand*{\acfsfont}[1]{%
  \fontfamily{\familydefault}%
  \fontseries{\mddefault}%
  \fontshape{\updefault}\selectfont #1%
}%
	
%% Zarovnani rovnic a titulku plovoucich objektu vlevo
\ifx\akt@center\center@vlevo
  % zarovnani rovnic vlevo
  \input{fleqn.clo}   
  % zarovnani popisku obrazku a tabulek
  \long\def\@makecaption#1#2%
    {%
      \vskip\abovecaptionskip
      \sbox\@tempboxa{#1:\,\,#2}%
      \ifdim \wd\@tempboxa >\hsize
        \settowidth{\leftskip}{#1:\,\,}%
        \setlength{\parindent}{-\leftskip}%
          #1:\,\,#2\par
      \else
        \global \@minipagefalse
        \hb@xt@\hsize{\box\@tempboxa\hfil}%
      \fi
      \vskip\belowcaptionskip
    }%
\fi

%% Definice prechodu na novou lichou stranku u oboustranne sazby
\def\cleardoublepage
  {%
    \clearpage
    \if@twoside
      \ifodd
        \c@page
      \else
        \hbox{}
        \thispagestyle{empty}
        \newpage
        \if@twocolumn
          \hbox{}
          \newpage
        \fi
      \fi
    \fi
  }%




%%%%%%%%%%%%%%%%%%%%%
%% Pomocne prikazy %%
%%%%%%%%%%%%%%%%%%%%%



%% Literatura bez zahlavi
\renewenvironment{thebibliography}[1]
  {%
    \chapter*{\refname}%
    \phantomsection
    \addcontentsline{toc}{chapter}{\refname}
    \list{\@biblabel{\@arabic\c@enumiv}}{%%
      \settowidth\labelwidth{\@biblabel{#1}}%
      \leftmargin\labelwidth
      \advance\leftmargin\labelsep
      \@openbib@code
      \usecounter{enumiv}%
      \let\p@enumiv\@empty
      \renewcommand\theenumiv{\@arabic\c@enumiv}%
    }%%
    \sloppy
    \clubpenalty4000
    \@clubpenalty \clubpenalty
    \widowpenalty4000%
    \sfcode`\.\@m
  }{%
    \def\@noitemerr
    {\@latex@warning{Nezadana zadna literatura}}%
    \endlist
  }%


%% Zahajeni sazby priloh
\newcommand{\start@prilohy}{%
  \par
  \setcounter{chapter}{0}%
  \setcounter{section}{0}%
  % prepnuti na cislovani pismeny
  \gdef\@chapapp{\appendixname}%
  \gdef\thechapter{\@Alph\c@chapter}%
  %% Zmena souboru pro seznam kapitol
  \gdef\@chapter[##1]##2{%%
    \ifnum \c@secnumdepth >\m@ne
      \refstepcounter{chapter}%
      \typeout{\@chapapp\space\thechapter.}%
      \addcontentsline{toc}{chapter}%
        {\protect\numberline{\thechapter}##1}%
      \addcontentsline{loa}{chapter}%
        {\protect\numberline{\thechapter}##1}%
    \else
      \addcontentsline{toc}{chapter}{##1}%
      \addcontentsline{loa}{chapter}{##1}%
    \fi
    \chaptermark{##1}%
    \addtocontents{lof}{\protect\addvspace{10\p@}}%
    \addtocontents{lot}{\protect\addvspace{10\p@}}%
    \if@twocolumn
      \@topnewpage[\@makechapterhead{##2}]%
    \else
      \@makechapterhead{##2}%
      \@afterheading
    \fi
  }%%
  %% Zmena souboru pro seznam nadpisu casti
  \gdef\@sect##1##2##3##4##5##6[##7]##8{%%
    \ifnum ##2>\c@secnumdepth
      \let\@svsec\@empty
    \else
      \refstepcounter{##1}%
      \protected@edef\@svsec{\@seccntformat{##1}\relax}%
    \fi
    \@tempskipa ##5\relax
    \ifdim \@tempskipa>\z@
      \begingroup
        ##6{%%%
          \@hangfrom{\hskip ##3\relax\@svsec}%
          \interlinepenalty \@M ##8\@@par
        }%%%
      \endgroup
      \csname ##1mark\endcsname{##7}%
      \addcontentsline{toc}{##1}{%%%
        \ifnum ##2>\c@secnumdepth \else
          \protect\numberline{\csname the##1\endcsname}%
        \fi
        ##7
      }%%%
      \addcontentsline{loa}{##1}{%%%
        \ifnum ##2>\c@secnumdepth \else
          \protect\numberline{\csname the##1\endcsname}%
        \fi
        ##7
      }%%%
    \else
      \def\@svsechd{%%%
        ##6{%%%
         \hskip ##3\relax
         \@svsec ##8
        }%%%%
        \csname ##1mark\endcsname{##7}%
        \addcontentsline{toc}{##1}{%%%%
          \ifnum ##2>\c@secnumdepth \else
             \protect\numberline{\csname the##1\endcsname}%
          \fi
          ##7
        }%%%%
        \addcontentsline{loa}{##1}{%%%%
          \ifnum ##2>\c@secnumdepth \else
            \protect\numberline{\csname the##1\endcsname}%
          \fi
          ##7
        }%%%%
      }%%%
    \fi
    \@xsect{##5}%
  }%%
}%


%% Pomocne funkce pro parsovani jmena autora a vedouciho
% jednotlive casti jmena autora
\let\autor@pred=\relax
\let\autor@jmeno=\relax
\let\autor@prijmeni=\relax
\let\autor@za=\relax
% jednotlive casti jmena vedouciho
\let\vedouci@pred=\relax
\let\vedouci@jmeno=\relax
\let\vedouci@prijmeni=\relax
\let\vedouci@za=\relax
% prikazy pro nastaveni jednotlivych casti jmen
\def\nastav@tituly@pred[#1]{\expandafter\gdef\csname \osoba@ @pred\endcsname{#1}\futurelet\nextchar\nastav@jmeno}
\def\nastav@jmeno#1{\expandafter\gdef\csname \osoba@ @jmeno\endcsname{#1}\futurelet\nextchar\test@prijmeni}
\def\nastav@prijmeni#1{\expandafter\gdef\csname \osoba@ @prijmeni\endcsname{#1}\futurelet\nextchar\test@tituly@za}
\def\nastav@tituly@za[#1]{\expandafter\gdef\csname \osoba@ @za\endcsname{#1}}
% zacatek rozdelovani jmena, testovani titulu pred jmenem
\def\rozbor@jmena{%
  \ifx [\nextchar
    \let\next=\nastav@tituly@pred
  \else
    \let\next=\nastav@jmeno
  \fi
  \next
}%
% testovani, zda jmeno a prijmeni bylo rozdeleno do dvou parametru
\def\test@prijmeni{%
  \ifx\bgroup\nextchar
    \let\next=\nastav@prijmeni
  \else
    \let\next=\test@tituly@za
  \fi
  \next
}%
% testovani titulu za jmenem
\def\test@tituly@za{%
  \ifx [\nextchar
    \let\next=\nastav@tituly@za
  \else
    \let\next=\relax
  \fi
  \next
}%

%% Pocitani stran
\ifx\pocet@stran\undefined
  \def\pocet@stran{??}
\fi
\def\spocti@strany{%
  \addtocounter{page}{-1}
  \immediate\write\@auxout{\string\gdef\string\pocet@stran{\thepage}}
}%

\AtEndDocument{\spocti@strany}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Zruseni standardnich prikazu pro autora, sazbu obalky atd. %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\global\let\maketitle\relax
\global\let\@maketitle\relax
\global\let\thanks\relax
\global\let\@thanks\@empty
\global\let\author\relax
\global\let\@author\@empty
\global\let\date\relax
\global\let\@date\@empty
\global\let\and\relax



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Pomocne delkove registry                              %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newlength{\thesis@tmp}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sazba titulnich stranek s obsahem zarovnanym svisle   %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\stranka}[3]{%
  % prvni parametr bude zarovnan na hornim okraji stranky
  % druhy parametr bude svisle vycentrovan na strance
  % treti parametr bude zarovnan na spodni okraj stranky
  \newpage
  \thispagestyle{empty}%
  \noindent
  \makebox[0pt][l]{%%
    \vspace{\stretch{1}}%
		
    \parbox[c][0pt][c]{\textwidth}{#2}%
	 	
    \vspace{\stretch{1}}%
  }%%
  \parbox[c][\textheight][c]{\textwidth}{%%
    \parbox[t][][t]{\textwidth}{#1}%
		
    \vspace{\stretch{1}}%
				
    \parbox[b][][b]{\textwidth}{#3}%
  }%%
  \newpage

  \if@twoside
    \thispagestyle{empty}%
    \cleardoublepage
  \fi
}%




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sazba komletniho prebalu prace prikazem \vytvorobalku %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand\vytvorobalku{\par  
  \begingroup
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
    \long\def\@makefntext##1{%%
      \parindent 1em\noindent
      \hb@xt@1.8em{%%%
        \hss\@textsuperscript{\normalfont\@thefnmark}%
      }%%%
      ##1%
    }%%
    \if@twocolumn
      \ifnum \col@number=\@ne
       	\@vytvorobalku@vut
      \else
        \twocolumn[\@vytvorobalku@vut]%
      \fi
    \else
      \newpage
      \global\@topnum\z@   % Prevents figures from going at top of page.
      \@vytvorobalku@vut
    \fi
  \endgroup

  %% Tady zrusime prikazy
  \global\let\vytvorobalku\relax
  \global\let\@vytvorobalku@vut\relax
}%


\def\@vytvorobalku@vut{%
  \renewcommand{\baselinestretch}{1.0}%
  \newpage
  \thispagestyle{empty}%
  \noindent
  \raisebox{5mm}[8mm][0mm]{%%
    \begin{minipage}[t][247mm]{\linewidth}%
      \noindent
      \parbox[t][26mm][t]{\linewidth}{%%%
        \raggedright
        \sffamily \huge 
        \MakeUppercase{\csname skola@\orig@lang\endcsname} \\
        \normalsize
        \MakeUppercase{\csname skola@\tran@lang\endcsname}%
      }%%%

      \noindent
      \parbox[t][16mm][t]{\linewidth}{%%%
        \raggedright
        \sffamily \large
        \MakeUppercase{\csname fakulta@\orig@lang\endcsname} \\
        \MakeUppercase{\csname ustav@\orig@lang\endcsname}%
      }%%%

      \noindent
      \parbox[t][16mm][t]{\linewidth}{%%%
        \raggedright
        \sffamily \normalsize
        \MakeUppercase{\csname fakulta@\tran@lang\endcsname} \\
        \MakeUppercase{\csname ustav@\tran@lang\endcsname}%
      }%%%

      \noindent
      \parbox[t][94mm][c]{\linewidth}{%%%
        \raggedright
        \sffamily \Large \MakeUppercase{\csname nazev@\orig@lang\endcsname}%
      }%%%

      \vfill
      \noindent
      \parbox[t][17mm][t]{\linewidth}{%%%
        \raggedright
        \sffamily \large \MakeUppercase{\csname oznaceniprace@\orig@lang\endcsname} \\
        \sffamily \normalsize \MakeUppercase{\csname oznaceniprace@\tran@lang\endcsname}%
      }%%%

      \noindent
      \parbox[t][32mm][t]{\linewidth}{%%%
        \raggedright
        \sffamily \large
        \makebox[62mm][l]{\MakeUppercase{\csname autortext@\orig@lang\endcsname}}%
        \mbox{\@Autor}\\
        \sffamily \normalsize
        \MakeUppercase{\csname autortext@\tran@lang\endcsname}%
      }%%%
    \end{minipage}%
  }%%

  \newpage
	
  \if@twoside
    \thispagestyle{empty}%
    \cleardoublepage
  \fi

  \setcounter{page}{1}      %% Obalka se do poctu stran nepocita
}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sazba komletni uvodni stranky prikazem \vytvortitulku %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand\vytvortitulku{\par  
  \begingroup
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
      \hb@xt@1.8em{%%%
        \hss\@textsuperscript{\normalfont\@thefnmark}%
      }%%%
      ##1%
    }%%%
    \if@twocolumn
      \ifnum \col@number=\@ne
        \@vytvortitulku@vut
      \else
        \twocolumn[\@vytvortitulku@vut]%
      \fi
    \else
      \newpage
      \global\@topnum\z@   % Prevents figures from going at top of page.
      \@vytvortitulku@vut
    \fi
  \endgroup
  
  %% Po vysazeni zrusime prikazy
  \global\let\vytvortitulku\relax
  \global\let\@vytvortitulku@vut\relax
}%


\def\@vytvortitulku@vut{%
  \renewcommand\baselinestretch{1.0}%
  \newpage
  \thispagestyle{empty}%
  \noindent
  \raisebox{5mm}[42mm][0mm]{%%
    \begin{minipage}[t][247mm]{\linewidth}%
      \noindent
      \parbox[b][42mm][t]{37mm}{%%%
        \includegraphics{\logo@skola}%
      }%%%
      \setlength{\thesis@tmp}{\linewidth}%
      \addtolength{\thesis@tmp}{-37mm}%
      \parbox[b][42mm][t]{\thesis@tmp}{%%%
        \raggedright
        \sffamily \Large
        \MakeUppercase{\csname skola@\orig@lang\endcsname}\\
        \normalsize
        \MakeUppercase{\csname skola@\tran@lang\endcsname}%
      }%%%

      \noindent
      \parbox[b][42mm][t]{37mm}{%%%
        \includegraphics{\logo@fakulta}%
      }%%%
      \setlength{\thesis@tmp}{\linewidth}%
      \addtolength{\thesis@tmp}{-37mm}%
      \parbox[b][42mm][t]{\thesis@tmp}{%%%
        \parbox[t][21mm][t]{\thesis@tmp}{%%%%
          \raggedright
          \sffamily \large
          \MakeUppercase{\csname fakulta@\orig@lang\endcsname}\\
          \MakeUppercase{\csname ustav@\orig@lang\endcsname}%
        }%%%%

        \noindent
        \parbox[t][21mm][t]{\thesis@tmp}{%%%%
          \raggedright
          \sffamily \normalsize
          \MakeUppercase{\csname fakulta@\tran@lang\endcsname} \\
          \MakeUppercase{\csname ustav@\tran@lang\endcsname}%
        }%%%%
      }%%%

      \noindent
      \parbox[t][75mm][c]{\linewidth}{%%%
        \raggedright
        \sffamily \Large \MakeUppercase{\csname nazev@\orig@lang\endcsname}\\
        \sffamily \normalsize \MakeUppercase{\csname nazev@\tran@lang\endcsname}%
      }%%%

      \noindent
      \vfill
      \parbox[t][17mm][t]{\linewidth}{%%%
        \raggedright
        \sffamily \large \MakeUppercase{\csname oznaceniprace@\orig@lang\endcsname}\\
        \sffamily \normalsize \MakeUppercase{\csname oznaceniprace@\tran@lang\endcsname}%
      }%%%

      \noindent
      \parbox[t][13mm][t]{\linewidth}{%%%
        \raggedright
        \sffamily \large
        \makebox[62mm][l]{\MakeUppercase{\csname autortext@\orig@lang\endcsname}}%
        \mbox{\@Autor}\\
        \sffamily \normalsize
        \MakeUppercase{\csname autortext@\tran@lang\endcsname}%
      }%%%

      \noindent
      \parbox[t][33mm][t]{\linewidth}{%%%
        \raggedright
        \sffamily \large
        \makebox[62mm][l]{\MakeUppercase{\csname vedoucitext@\orig@lang\endcsname}}%
        \mbox{\@Vedouci}\\
        \sffamily \normalsize
        \MakeUppercase{\csname vedoucitext@\tran@lang\endcsname}%
      }%%%

      \noindent
      \parbox[t][5mm][t]{\linewidth}{%%%
        \raggedright
        \sffamily \normalsize
        \MakeUppercase{\@misto} \@rok
      }%%%
    \end{minipage}%
  }%%

  \newpage
	
  \if@twoside
    \thispagestyle{empty}%
    \cleardoublepage
  \fi
}%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sazba stranky s abstraktem prikazem \vytvorabstrakt                     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\vytvorabstrakt{\par  
  \begingroup
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
            \hb@xt@1.8em{%%
                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
    \if@twocolumn
      \ifnum \col@number=\@ne
      	\@vytvorabstrakt@vut
      \else
        \twocolumn[\@vytvorabstrakt@vut]%
      \fi
    \else
      \newpage
      \global\@topnum\z@   % Prevents figures from going at top of page.
      \@vytvorabstrakt@vut
    \fi
  \endgroup

  %% Tady si nesmazeme titul
  \setcounter{footnote}{0}%
  \global\let\vytvorabstrakt\relax
  \global\let\@vytvorabstrakt@vut\@empty
}%


\def\@vytvorabstrakt@vut{{% prostredi kvuli pagestyle
  \renewcommand{\baselinestretch}{1.0}%
  \pagestyle{empty}%
  \cleardoublepage
  \noindent
  \parbox{\linewidth}%
    {%% sazba abstraktu v originalnim jazyce
    {%%% prostredi kvuli zmene pisma
      \large\sffamily\bfseries\MakeUppercase{\csname oznaceniabstrakt@\orig@lang\endcsname}%
    }%%%

    \medskip
    \parbox{\linewidth}{%%%
      \sffamily 
      \csname abstrakt@\orig@lang\endcsname
    }%%%

    \bigskip
    {%%% prostredi kvuli zmene pisma
      \large\sffamily\bfseries\MakeUppercase{\csname oznacenislov@\orig@lang\endcsname}%
    }%%%

    \medskip
    \parbox{\linewidth}{%%%
      \sffamily 
      \csname keywords@\orig@lang\endcsname
    }%%%
  }%%

  \bigskip\bigskip
  \rule{\linewidth}{0pt}%
  \vskip 1em plus 1fill

  \noindent
  \parbox{\linewidth}%
    {%% Sazba abstraktu v prekladu
      {%%%
        \large\sffamily\bfseries\MakeUppercase{\csname oznaceniabstrakt@\tran@lang\endcsname}%
      }%%%

      \medskip
      \parbox{\linewidth}{%%%
        \sffamily
        \csname abstrakt@\tran@lang\endcsname
      }%%%

      \bigskip
      {%%% prostredi kvuli zmene pisma
        \large\sffamily\bfseries\MakeUppercase{\csname oznacenislov@\tran@lang\endcsname}%
      }%%%

      \medskip
      \parbox{\linewidth}{%%%
        \sffamily
        \csname keywords@\tran@lang\endcsname
      }%%%
    }%%

  \bigskip\bigskip
  \rule{\linewidth}{0pt}\nopagebreak
  \vskip 2em plus 2fill
  {%% sazba bibliograficke citace
    \vspace{\stretch{1}}\noindent
    \parbox{\linewidth}{%%%
      \sffamily \MakeUppercase{\autor@prijmeni},~\autor@jmeno{}
     {\slshape \csname nazev@\orig@lang\endcsname}:
     \MakeLowercase{\csname oznaceniprace@\orig@lang\endcsname}.
     \@misto: \csname skola@\orig@lang\endcsname,
     \csname fakulta@\orig@lang\endcsname,
     \csname ustav@\orig@lang\endcsname, \@rok.
     \pocet@stran~\csname citace@stran@\orig@lang\endcsname.
     \csname citace@vedouci@\orig@lang\endcsname
    }%%%
  }%%
  
  \newpage
}}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sazba prohlaseni o samostatnosti prace \vytvorprohlaseni  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\vytvorprohlaseni{\par  
  \begingroup
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
      \hb@xt@1.8em{%%%
        \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%%
    \if@twocolumn
      \ifnum \col@number=\@ne
        \vytvorprohlaseni@vut
      \else
        \twocolumn[\vytvorprohlaseni@vut]%
      \fi
    \else
      \newpage
      \global\@topnum\z@   % Prevents figures from going at top of page.
        \vytvorprohlaseni@vut
    \fi
  \endgroup
  
  %% Tady si nesmazeme titul
  \setcounter{footnote}{0}%
  \global\let\vytvorprohlaseni\relax
  \global\let\vytvorprohlaseni@vut\@empty
}%

\def\vytvorprohlaseni@vut{%
  \cleardoublepage
  \stranka{%%nahore
  }{%%uprostred
    \sffamily
    \begin{center}%
      \large
      \MakeUppercase{\csname oznaceniprohlaseni@\orig@lang\endcsname}%
    \end{center}%

    \vspace{1em}%
    \noindent
    \csname prohlasenitext@\orig@lang\endcsname

    \vspace{3em}%
    \csname mistoprohlaseni@\orig@lang\endcsname
    \hspace{1em}\makebox[7em][c]{\dotfill} \hfill
    \begin{minipage}[t][][t]{15em}%
      \begin{center}%
        \dotfill \\
        \csname oznacenipodpisu@\orig@lang\endcsname
      \end{center}%
    \end{minipage}%
  }{%%dole
  }%%
}

\endinput

%%
%%  End of file thesis.sty

