% Template Created by Albert Alises Sorribas (albert.alises@gmail.com) for the thesis of the MSc. in Computational Biomedical Engineering, Universitat Pompeu Fabra. Based on the thesis template of the Imperial College London, downloadable at http://www.imperial.ac.uk/brand-style-guide/templates/downloadable-templates/
\documentclass[a4paper,12pt,twoside]{report}
\usepackage[left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry} %Margins
\usepackage{pdfpages}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{setspace}
\usepackage{tocloft}
\usepackage{amsmath}
\usepackage{chngcntr }
\usepackage[toc,page]{appendix}
\usepackage[T1]{fontenc}
\usepackage[nottoc]{tocbibind}
\usepackage[compact]{titlesec}
\titlespacing{\section}{0pt}{1ex}{0ex}
\titlespacing{\subsection}{0pt}{1ex}{0ex}
\titlespacing{\subsubsection}{0pt}{1ex}{0ex}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\include{thesis.preamble}
\begin{document}
\newgeometry{left=2cm,right=2cm} %Only for the title new margins
%Title parameters
\title{Title}
\author{Student's name}
\submitdate{July 2017}
\supervisor{supervisor's name}
\cosupervisor{co-supervisor's name}
\maketitle
\maketitle
\restoregeometry
\preface
\cleardoublepage
\input{dedication/dedication}
\input{acknowledgements/acknowledgements}
\input{abstract/abstract}
\body
%Introduction of the project
\input{introduction/introduction}
\input{methods/methods}
\input{results/results}
\input{discussion/discussion}
\listoffigures
\newpage
\listoftables
% appendices come here
\bibliographystyle{naturemag}
\bibliography{bibliography}
\input{appendix/appendix}
\end{document}