% Latex Packages \usepackage{import} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{geometry} \usepackage{listings} \usepackage{color} \usepackage{graphicx} \usepackage[numbers,square,sectionbib,comma,nonamebreak,elide]{natbib} \usepackage{float} \usepackage[english]{babel} \usepackage{fancyhdr} \usepackage{wrapfig} \usepackage{array} \usepackage{lipsum} \usepackage{fancybox} \usepackage{varwidth} \usepackage{enumitem} \usepackage{titlepic} \usepackage[nottoc]{tocbibind} \usepackage{url} \usepackage{babel} \usepackage[showisoZ]{datetime2} \bibliographystyle{unsrtnat} %styles list https://www.sharelatex.com/learn/Natbib_bibliography_styles % Path where images are located relative % to the file main.tex \graphicspath{{img/}{figures/}} % In which order to look after images in % declared graphicspath{}'s % 1. Low-quality JPG % 2. Med-quality PNG % 3. High-quality PDF \DeclareGraphicsExtensions{.jpg,.png,.pdf} % Define fancy header and footer \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{ZBC} \fancyhead[RE,LO]{\rightmark} \fancyfoot[CE,CO]{\leftmark} \fancyfoot[LE,RO]{\thepage} % Use the roman numeric system for pagenumbers \pagenumbering{roman} \subimport{.}{commands} % Import user-defined commands \input{layout/color} %user-defined colors \lstdefinestyle{mystyle}{ backgroundcolor=\color{backcolour}, commentstyle=\color{codegreen}, keywordstyle=\color{magenta}, numberstyle=\tiny\color{codegray}, stringstyle=\color{codepurple}, basicstyle=\footnotesize, breakatwhitespace=false, breaklines=true, captionpos=b, keepspaces=true, numbers=left, numbersep=5pt, showspaces=false, showstringspaces=false, showtabs=false, tabsize=4 } \renewcommand{\headrulewidth}{2pt} %width of header line is by default 0px. \renewcommand{\footrulewidth}{1pt} %width of footer line is by default 0px. \geometry{a4paper,margin=2cm} \setlength{\columnsep}{1.5cm} %space between columns \setlength{\headheight}{15pt} \setlength{\footnotesep}{0.5cm} %space between footnotes: \setlength{\skip\footins}{2cm} %space between the text body and the footnotes \setlist[itemize,1]{leftmargin=\dimexpr 26pt-.2cm} \setlist[itemize,2]{leftmargin=\dimexpr 26pt-.3cm} \lstset{style=mystyle} %apply lst styling