\ProvidesPackage{document} %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Packages % %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Margin Setup according to University methodology: \RequirePackage[top=2.5cm,bottom=2.5cm,inner=3cm,outer=2.5cm]{geometry} \RequirePackage{fancyhdr} % Footer customisation \RequirePackage{booktabs} % Elegant tables \RequirePackage{colortbl} % Allow the use of colors in tables \RequirePackage{float} % Accurate positionning of figures and tables \usepackage{titlesec} % Font sizes for sections/subsection \RequirePackage{setspace} % Line spacing \RequirePackage{pdfpages} % Allow to add pdf documents to your latex file % \RequirePackage{hyperref} % Allow references and hyperlinks % Useful packages for engineering students \RequirePackage{amsmath} % Mathematics environments \RequirePackage{amssymb} % Mathematical symbols % \RequirePackage{siunitx} % SI Units % \RequirePackage{cleveref} % To make eqation reference better \RequirePackage{inputenc} \RequirePackage{csquotes} % Allows the creations of appendices \RequirePackage[title,toc,titletoc,page]{appendix} %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Equations/Math % %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Number equation with section number (ex: First equation in section 3 is 3.1) \numberwithin{equation}{section} % Use french commas when writing numbers % \sisetup{locale=FR} %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Hyperlinks management % %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % \let\oldhref\href % \enewcommand{\href}[2]{\oldhref{#1}{\bfseries#2}} % \hypersetup{ % colorlinks=true, % linkcolor=black, % filecolor=black, % urlcolor=gray, % pdfpagemode=FullScreen, % } %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Headers/Footers % %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% \renewcommand{\footrulewidth}{.5pt} % Line at the bottom \cfoot{\thepage} % Centered page number (footer) %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Sections % %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Font size for section (16) \titleformat{\section} {\normalfont\fontsize{16}{19}\bfseries}{\thesection}{1em}{} % Font size for subsection (14) \titleformat{\subsection} {\normalfont\fontsize{14}{17}\bfseries}{\thesubsection}{1em}{} %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Line Spacing % %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Set 1.5 linespacing for the document \onehalfspacing %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Figures/Tables % %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Count within sections (third table of section 5 would be Table 5.3) \counterwithin{figure}{section} \counterwithin{table}{section} % Separate section number from fig/table with a hyphen (5-3 instead of 5.3) \renewcommand{\thefigure}{\thesection-\arabic{figure}} \renewcommand{\thetable}{\thesection-\arabic{table}} \usepackage[style=numeric,backend=biber,sorting=nty]{biblatex} \DeclareNameAlias{author}{family-given} % Display the Bibliography as: Surename, Name \addbibresource{references.bib} % Caption \usepackage{capt-of} % Page layout %\pagestyle{fancy} \lhead{\suni\hseparator\studyprogram} \rhead{\doctitle} %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% % Appendix % %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% \RequirePackage[title,toc,titletoc,page]{appendix} % \addto\captionsfrench{ % \renewcommand\appendixname{Annexe} % \renewcommand\appendixpagename{Annexe} % }