\documentclass[a4paper,12pt,twoside,openany,natbib]{book}


\input{inc/doc}

%\hypersetup{  
%pdfauthor={\Author},
%pdftitle={\Title - \Acronym},
%pdfsubject={\Subject},
%pdfkeywords={\Keywords}
%}

%\lstset{language=C++, basicstyle=\small, keywordstyle=\bfseries}
%\lstset{language=C++, basicstyle=\small\ttfamily, keywordstyle=\bfseries}

%\usepackage{sectsty}
%\allsectionsfont{\sffamily}

%\pagestyle{plain}
%\makeatletter
%\renewcommand\refname{Literatura}
%\renewcommand\thesubsection{\thesection.\@arabic\c@subsection}
%\renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection.}
%\makeatother


% for page numbering
\makeatletter
\renewcommand*{\ps@plain}{%
  \let\@mkboth\@gobbletwo
  \let\@oddhead\@empty
  \def\@oddfoot{%
    \reset@font
    \hfil
    \thepage
     \hfil % removed for aligning to the right
  }%
  \let\@evenhead\@empty
  \let\@evenfoot\@oddfoot
}
\makeatother
\pagestyle{plain}
% end of page numbering

\begin{document}
{

\pagestyle{empty}
%\linesnumbered

\input{title.tex}
\cleardoublepage

\input{prohlaseni.tex}
\cleardoublepage

%verze se zakrytymi podpisy
%\pgfdeclareimage{zadani}{fig/zadani_scan1}
%      \vglue-3.75cm
%\hskip-4.6cm
%\hbox{
%\pgfuseimage{zadani}
%}
%\pgfdeclareimage{zadani2}{fig/zadani_scan2}
%      \vglue-3.75cm
%\hskip-3.6cm
%\hbox{
%\pgfuseimage{zadani2}
%}
%verze z KOSu
\includepdf[pages=-]{fig/zadani.pdf}
%\cleardoublepage

\input{abstract.tex}
\newpage
\cleardoublepage

\newpage
\thispagestyle{empty}


%\newpage
%\thispagestyle{empty}
\input{thank.tex}
\cleardoublepage
}%odtud}

\pagenumbering{roman}
\tableofcontents
\listoftables
\listoffigures
%\listoftodos
\newpage
\input{notation.tex}
\input{abbreviations.tex}
\cleardoublepage

\begin{spacing}{1.10}


\pagenumbering{arabic}

\input{introduction.tex}
\input{problemdefinition.tex}
\input{CPAFgeneral.tex}
\input{dagalg.tex}
\input{implementation.tex}
\input{experiments.tex}
\input{conclusion.tex}
%\input{further.tex}

%\input{discretisation.tex}

%\figX{logo_cvut}{width=\textwidth}{Example of figX macro}{some-label}
%Example of figref macro \figref{some-label}. The label is actually fig:some-label

% show all bibliography
%\nocite{*}

\end{spacing}

\newpage

\bibliographystyle{abbrvnat}
\bibliography{thesis}


\appendix

\setcounter{chapter}{0}
\renewcommand{\thechapter}{\Alph{chapter}}%

\input{cd_content.tex}
%\input{settings.tex}
%\input{appendixNumValues.tex}


\end{document}
