\documentclass[12pt,a4paper,twoside]{report}
\usepackage[cp1250]{inputenc}
\usepackage[slovak]{babel}
\usepackage[T1]{fontenc}

\usepackage{geometry}
\usepackage{fancyhdr}
\usepackage{titlesec}	
\usepackage{textcomp}
\usepackage{url}
\usepackage{setspace}
\usepackage{moreverb}
\usepackage{graphicx}
\usepackage{float}
\usepackage{mathtools}
\usepackage[table]{xcolor}
\usepackage{tikz}
\usepackage{pdfpages}
\usepackage{lastpage}
%\usepackage{tikz-qtree}


\geometry{left=3.5cm , top=4cm, right=2cm , bottom=2.5cm}
\headheight 16pt
%\headsep 1cm
%\footskip 1.5cm
%\marginparwidth 5em
%\marginparsep 5pt
%\textheight 237mm
%\textwidth 150mm
\widowpenalty4000
\clubpenalty4000
\singlespace

\pagestyle{empty}





\begin{document}


\includepdf[pages=1]{titul.pdf}
\cleardoublepage
\includepdf[pages=1]{zadanie.pdf}
\includepdf[pages=1]{zad2.pdf}

\include{abst}


\titleformat{\chapter}
  {\normalfont\LARGE\bfseries}{\thechapter}{1em}{}
\titlespacing*{\chapter}{0pt}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus .2ex}
\fancyhead{}
\fancyfoot{}

\fancypagestyle{plain}{ %
  \fancyhf{}
  \fancyhead[RO,LE]{Strana \thepage}
\fancyhead[LO,RE]{\leftmark}
}\fancypagestyle{empty}{ %
  \fancyhf{}
}



\tableofcontents
\cleardoublepage

\fancypagestyle{plain}{ %
  \fancyhf{}
  \fancyhead[RO,LE]{Strana \thepage}
\fancyhead[LO,RE]{\leftmark}
}

\fancyhead[RO,LE]{Strana \thepage}
\fancyhead[LO,RE]{\leftmark}
\fancyhead[RO,LE]{Strana \thepage}
\fancyhead[LO,RE]{\leftmark}

\fancyhead[C]{}
\fancyfoot[L]{} 
\fancyfoot[C]{} 
\fancyfoot[R]{} 
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\space#1}{}} 

%\addcontentsline{toc}{chapter}{Zadanie práce}
%\addcontentsline{toc}{chapter}{Abstrakt}
\include{uvod}
\include{prob}
\include{algor}
\include{porov}
\include{zaver}
\addcontentsline{toc}{chapter}{Literatúra}
\include{lit}


\end{document}
