\documentclass[magisterska]{dyplEnUAM}
\linespread{1.2}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[MeX]{polski}
\usepackage{graphicx}
\usepackage{caption}
\usepackage[labelfont=bf]{caption}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{color}
\usepackage[noload]{qtree}
\usepackage{indentfirst}
\usepackage{longtable}
\usepackage{booktabs, array}
\usepackage{apacite}
\usepackage{natbib}
\usepackage{hyperref}
\usepackage{csquotes}
\usepackage{float}
\usepackage{multirow}
%%%%
\renewcommand{\arraystretch}{1.2}
\setlength{\emergencystretch}{3em}

% Dedication page (optional)
\dedicationpagetrue

\hypersetup{colorlinks,citecolor=black,filecolor=black,linkcolor=black,urlcolor=black}

% Author:
\author{Name Family}
\nralbumu{123456}                % number of album
\email{iminaz123@st.amu.edu.pl} 
\zgody{YES}                      % permission for deposit in Uni library

% Title
\tytulang{Title}
\title{Title in polish}

\kierunek{Cognitive Science}      % Fiels of study
\date{2024}
\miejsce{Poznań}
\opiekun{Professor Paweł Kleka, PhD}

% Place for own commands
\newcommand{\filename}[1]{\texttt{#1}}

\begin{document}

% Summary of thesis in english
\begin{abstracteng}

\noindent % Put here comment if abstract is one paragraph
This thesis deals with \ldots
This work is about {\[}\ldots{\]}.\\
Main goal is {\[}\ldots{\]}.\\
The research procedure carried out was {\[}\ldots{\]}.\\
The analysis shows {\[}\ldots{\]}.\\
Limitations of the study include {\[}\ldots{\]}.\\

\end{abstracteng}

\keywordseng{word, word, word}

% Summary of thesis in polish
\begin{abstract}
Celem tej pracy \ldots

\end{abstract}

\keywords{słowo, słowo, słowo}

\maketitle

\renewcommand*\contentsname{Table of contents}
{
\setcounter{tocdepth}{3}
\tableofcontents \thispagestyle{empty}
}
%
% Index of tables
\listoftables
%
% Index of figures and charts
\listoffigures
%
\newpage

\introduction

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ultrices, diam non dapibus imperdiet, ipsum diam posuere sem, a convallis ipsum mi nec diam. Maecenas quis bibendum ante. Proin dictum, elit vel posuere porta, risus nunc maximus purus, a convallis lorem quam mollis turpis. Donec mattis libero quis augue tempus tincidunt. Nunc viverra risus sed turpis pellentesque, in feugiat lorem efficitur. Sed id purus elit. Nam quis ipsum arcu. Vivamus efficitur sapien in quam porta venenatis. Vivamus vestibulum venenatis tempus. Duis elementum ac arcu ac egestas. Nulla scelerisque eros in neque aliquet auctor.

Nulla eu erat a est egestas fringilla. Sed eget facilisis eros. In feugiat ex eget metus feugiat placerat. Proin a mi imperdiet mauris malesuada pretium sit amet sed nisi. Morbi condimentum, odio a euismod tempor, eros dui ullamcorper neque, quis fringilla nisl ante et mi. Sed et imperdiet sem, tristique tincidunt mauris. Quisque feugiat nisi non suscipit convallis. In laoreet, dolor varius hendrerit dictum, nibh massa semper quam, eu ornare ipsum lorem ut risus. Fusce felis turpis, suscipit id massa tempus, rutrum tincidunt felis. Donec nunc ligula, placerat non cursus nec, maximus ornare augue. Vivamus condimentum nisi ante, non condimentum massa euismod sollicitudin. Curabitur et varius velit. Suspendisse dapibus eget dolor nec mattis. Nullam nunc purus, semper sed lacinia nec, mattis non dolor.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                   %
%                    1: Theory                      %
%                                                   %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\chapter{Theory}\label{r1} 

\section{Subchapter}\label{s11}

Brain of \textit{Homo~sapiens}, suspendisse ultricies lacus in mauris euismod, sit amet feugiat justo tristique. Aliquam euismod scelerisque ex nec volutpat. Donec mollis aliquet ipsum, sed euismod risus rutrum id. Ut et lectus sodales, vehicula felis eu, pulvinar nisl. Mauris efficitur purus ut diam maximus efficitur. Vivamus feugiat orci pharetra nisl condimentum iaculis. Vivamus pretium neque ante, sit amet laoreet arcu faucibus at. Donec mollis dolor enim. Duis ex dolor, varius a augue sed, condimentum rhoncus turpis. Nulla interdum vitae enim a venenatis \citep{Necka_2020}. 

\subsection{Other subchapter}\label{s121}

Fusce consectetur ultricies neque, ac accumsan magna ultrices vel. Duis scelerisque eleifend mi sollicitudin lacinia. Duis in arcu augue. Etiam efficitur quis nibh vel sodales. Maecenas eleifend nulla sapien, vel rhoncus leo venenatis eu. Ut id quam id nisi viverra rutrum non sed sapien. Nam sed erat eget velit pharetra faucibus. Quisque vel dui id urna fermentum viverra ut ac mi. Sed non maximus arcu.

Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed tempor hendrerit purus, nec aliquam risus aliquam quis. In id leo id magna blandit ullamcorper. Quisque consectetur felis sit amet sem gravida interdum. Donec nibh lorem, feugiat eu dui quis, dignissim consectetur ipsum. Nunc iaculis sodales orci, et dapibus risus molestie et. Ut vel euismod nunc, dictum volutpat turpis. Aliquam mauris est, mattis tristique blandit nec, sodales at massa. Nulla aliquet ut nibh at consectetur \citep{Weigl_2005}.


\begin{figure}
  \captionsetup{singlelinecheck=false, justification=justified, labelsep=space}
  \caption{\\Title}\label{mechanizm}
  \includegraphics{figures/plot1-1.pdf}
  \caption*{\textit{Source: \citep{Redzio_2020}}} 
\end{figure}

Conclusions, \ldots


\chapter{Problem}

\section{Systematic literature review}\label{slr}

\subsection{Important results}\label{sec-r1}

\subsection{Controversions}\label{sec-r2}

\section{Hypothesis}\label{hs}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                   %
%               2: Own research                     %
%                                                   %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage{}

\chapter{Description of methods}

\section{Procedure}\label{pr}

Table and reference to it.

\begin{longtable}[]{@{}llrc@{}}
\caption{Wyrównanie treści w tabeli}\label{tbl-just}\tabularnewline
\toprule\noalign{}
Default & Left & Right & Center \\
\midrule\noalign{}
\endfirsthead
\toprule\noalign{}
Default & Left & Right & Center \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
12 & 12 & 12 & 12 \\
123 & 123 & 123 & 123 \\
1 & 1 & 1 & 1 \\
\end{longtable}

Look at this nice table~\ref{tbl-just}.

\section{Variables}\label{vars}

\subsection{Tools}\label{tools}

\subsection{Analysis}\label{as}

\subsection{Sample size}\label{sa}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                   %
%                  3: Results                       %
%                                                   %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage{}

\chapter{Results}

\section{Characteristics of sample}\label{cs}

\section{Description of variables}\label{dv}

\section{Analysis of hipotesis}\label{th}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                   %
%                  4: Discussion                    %
%                                                   %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage{}

\chapter{Discussion}

Results shows \citep{Brycz_2019}that \ldots

% References:
\renewcommand\bibname{References}
\bibliographystyle{pagsm}
\bibliography{bib}
%
\end{document}