\documentclass[en,auxsup]{aghphd}   % options: auxsup, secsup, pl, en
\usepackage[english]{babel}         % polish if the pl option is used
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\let\openbox\relax
\usepackage{amsthm}
\usepackage{amsfonts}

\usepackage{xcolor}
\usepackage{multirow}
%\usepackage{caption}
\usepackage{titlesec}
\usepackage{titletoc}
%\usepackage{url}
\usepackage[all,defaultlines=2]{nowidow}

\theoremstyle{definition}
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{definition}{Definition}[chapter]

\graphicspath{{./img/}}


%---------------------------------------------------------------------------

% field of science:
%\fieldofscience{nauk inżynieryjno-technicznych}
\fieldofscience{Engineering and technology}

% scientific discipline:
%\discipline{Informatyka techniczna i telekomunikacja}
\discipline{Information and communication technology}

% title of Phd thesis:
%\title{Jak napisać pracę doktorską w systemie \LaTeX}
\title{How to Write a Doctoral Thesis with \LaTeX}

% title of Phd thesis -- short (single-line) version
%\shorttitle{Jak napisać pracę doktorską w systemie \LaTeX} 
\shorttitle{How to Write a Doctoral Thesis with \LaTeX}

% PhD candidate first name and family name
\author{Marcin Szpyrka}
% PhD candidate first name initial and family name
\shortauthor{M. Szpyrka}

% first supervisor name with degrees:
%\supervisor{Prof. dr hab. Marcin Szpyrka}
\supervisor{Prof. Marcin Szpyrka, PhD, DSc}

% second supervisor (or auxiliary supervisor) name with degress:
%\secondsupervisor{Prof. dr hab. inż. Adam Iksiński} 
\secondsupervisor{Prof. Adam Iksiński, PhD, DSc}

% faculty name:
%\faculty{Wydział Elektrotechniki, Automatyki, Informatyki i Inżynierii Biomedycznej}
\faculty{Faculty of Electrical Engineering, Automatics, Computer Science and Biomedical Engineering}

\date{2025}

\acknowledgements{Special thanks to \dots}


%---------------------------------------------------------------------------

\begin{document}

\frontmatter
\thesistitlepage
\include{abstract-en}    % abstract in English 
\include{abstract-pl}    % abstract in Polish
\cleardoublepage
\tableofcontents
\cleardoublepage
\listoffigures
\cleardoublepage


\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\fancyhf{}
\fancyhead{}
\fancyhead[L]{\small \leftmark}
\fancyhead[R]{\bfseries \thepage}
\thesisfoot


\mainmatter
\addtocontents{toc}{\protect\setcounter{tocdepth}{2}}

% add your chapter here

\include{chapter-intro}
\include{chapter-pl}
\include{chapter-latex}
\include{chapter-summary}

%\appendix
%\include{appendix-a}

\bibliographystyle{plain}
%\bibliographystyle{splncs}
\bibliography{phd}

\end{document}
%---------------------------------------------------------------------------


