%! TeX Program = pdflatex
%! TeX Root = ./NAME_InternshipReport.tex

\documentclass[a4paper,twoside,11pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\input{packages.tex}

\headertext{My Internship report}
\footertext{My beautiful Name}

\begin{document}

\begin{titlepage}
\begin{center}
{\large $2^{nd}$ Year's Master, laboratory internship}\\[0.5cm]
% Title
\rule{\linewidth}{0.5mm} \\[0.3cm]
{ \huge \bfseries Title of your Internship report \\[0.3cm] }
\rule{\linewidth}{0.5mm} \\[0.4cm]
Internship from begin to end date\\[0.5cm]
% Author and supervisor
\noindent
\begin{minipage}{0.4\textwidth}
	\begin{flushleft} \large
		\emph{Intern:}\\
		M. Firstname \textsc{Lastname}\\
	\end{flushleft}
\end{minipage}%
\begin{minipage}{0.4\textwidth}
	\begin{flushright} \large
		\emph{Director:} \\
		Dr.~Firstname \textsc{Lastname}
	\end{flushright}
\end{minipage}\\[0.5cm]

\begin{figure}[!ht]
	\centering\includegraphics[width=\textwidth]{example-image-a}
	\caption*{\small Caption for the cover art.}
\end{figure}
\vfill
\begin{figure}[!ht]
	\centering
    \includegraphics[height=1.8cm]{Figures/Cover/logo_Unistra.pdf}
    \hspace{1cm}
	\includegraphics[height=1.8cm]{Figures/Cover/logo_ObAS.pdf}
\end{figure}
\vfill
% Bottom of the page
{\large \today}
\end{center}
\end{titlepage}

%%%%%%%%%%%%%%%%%%%%%%%%
%%% Acknowledgements %%%
%%%%%%%%%%%%%%%%%%%%%%%%

\chapter*{Acknowledgements}
\indent\input{Preamble/Acknowledgements}

\chapter*{Remerciements}
\indent\input{Preamble/Remerciements}

%%%%%%%%%%%%%%%%
%%% Abstract %%%
%%%%%%%%%%%%%%%%
\newpage
\thispagestyle{plain}

\vspace*{\fill}
\noindent\rule[2pt]{\textwidth}{0.5pt}\\
{\textbf{R\'esum\'e\\}}
\input{Preamble/Resume}\\
\noindent\rule[2pt]{\textwidth}{0.5pt}
\noindent\rule[2pt]{\textwidth}{0.5pt}\\
{\textbf{Abstract\\}}
\input{Preamble/Abstract}\\
\noindent\rule[2pt]{\textwidth}{0.5pt}
\vspace*{\fill}
\newpage

\tableofcontents
\newpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Content of the report %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\input{Chapters/Introduction}

\input{Chapters/Chapter1}
\input{Chapters/Chapter2}
\input{Chapters/Chapter3}

\input{Chapters/Conclusion}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% References and Appendix %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newpage
\phantomsection
\renewcommand{\bibname}{References}
\addcontentsline{toc}{chapter}{References}
\markboth{References}{References}
\printbibliography

\newpage
\phantomsection
\addcontentsline{toc}{chapter}{Appendix}
\markboth{Appendix}{Appendix}
\chapter*{Appendix}
\input{Appendix/Appendix-A}

\end{document}
