2023-09-13 15:42:57 +02:00
|
|
|
|
%% Global usepackages, options, configurations, …
|
|
|
|
|
|
|
|
|
|
\usepackage[a4paper,margin=2.6cm]{geometry}
|
|
|
|
|
|
|
|
|
|
\usepackage[english,french]{babel}
|
|
|
|
|
\usepackage{fontspec}
|
|
|
|
|
\usepackage{amsmath}
|
|
|
|
|
\usepackage{amsfonts}
|
|
|
|
|
\usepackage{amsthm}
|
2023-09-14 18:45:53 +02:00
|
|
|
|
\usepackage{xfrac}
|
2023-09-14 15:22:34 +02:00
|
|
|
|
\usepackage{csquotes}
|
2023-09-13 15:42:57 +02:00
|
|
|
|
\usepackage[dvipsnames]{xcolor}
|
|
|
|
|
\usepackage{makecell}
|
2023-09-14 17:05:57 +02:00
|
|
|
|
\usepackage{subcaption}
|
2023-09-13 15:42:57 +02:00
|
|
|
|
\usepackage{booktabs}
|
2023-09-18 15:23:36 +02:00
|
|
|
|
\usepackage{multirow}
|
2023-09-13 15:42:57 +02:00
|
|
|
|
\usepackage{listings}
|
2023-09-18 15:23:36 +02:00
|
|
|
|
\usepackage{colortbl}
|
2023-09-13 15:42:57 +02:00
|
|
|
|
\usepackage{hyperref}
|
|
|
|
|
%\usepackage{shorttoc}
|
2023-09-15 18:05:48 +02:00
|
|
|
|
\usepackage{enumerate}
|
2023-09-13 15:42:57 +02:00
|
|
|
|
\usepackage{lmodern}
|
|
|
|
|
\usepackage{graphicx}
|
2023-09-13 16:45:31 +02:00
|
|
|
|
\usepackage{pdfpages}
|
2023-09-14 15:22:34 +02:00
|
|
|
|
\usepackage{import}
|
2023-09-22 17:32:53 +02:00
|
|
|
|
\usepackage{wrapfig}
|
|
|
|
|
\usepackage{float}
|
2023-09-25 17:41:37 +02:00
|
|
|
|
\usepackage{tikz}
|
2023-09-26 16:39:12 +02:00
|
|
|
|
\usepackage{algpseudocode}
|
2023-09-14 17:05:57 +02:00
|
|
|
|
\usepackage[bottom]{footmisc} % footnotes are below floats
|
2023-09-15 18:05:48 +02:00
|
|
|
|
\usepackage[final]{microtype}
|
|
|
|
|
|
2023-09-25 17:41:37 +02:00
|
|
|
|
\usetikzlibrary{positioning}
|
|
|
|
|
\usetikzlibrary{fit}
|
|
|
|
|
|
2023-09-15 18:05:48 +02:00
|
|
|
|
\emergencystretch=1em
|
2023-09-13 15:42:57 +02:00
|
|
|
|
|
|
|
|
|
% Local sty files
|
|
|
|
|
\usepackage{include/my_listings}
|
|
|
|
|
\usepackage{include/todo}
|
2023-09-14 17:05:57 +02:00
|
|
|
|
\usepackage{include/leftrules}
|
2023-09-13 15:42:57 +02:00
|
|
|
|
|
2023-09-14 15:22:34 +02:00
|
|
|
|
\input{include/macros.tex}
|
|
|
|
|
|
2023-09-14 17:05:57 +02:00
|
|
|
|
|
2023-09-14 15:22:34 +02:00
|
|
|
|
% Graphics location
|
|
|
|
|
\def\basegraphicspath{assets/imgs/}
|
|
|
|
|
\newcommand{\resetgraphicspath}
|
|
|
|
|
{\graphicspath{{\basegraphicspath}}}
|
|
|
|
|
\newcommand{\setgraphicspath}[1]
|
|
|
|
|
{\graphicspath{{\basegraphicspath}{\basegraphicspath/#1}}}
|
|
|
|
|
%\graphicspath{{\basegraphicspath}}
|
|
|
|
|
\resetgraphicspath{}
|
|
|
|
|
|
|
|
|
|
% Chapter management
|
|
|
|
|
\newcommand{\importchapter}[1] {
|
|
|
|
|
\setgraphicspath{#1}
|
|
|
|
|
\subincludefrom{#1}{main.tex}
|
|
|
|
|
\resetgraphicspath{}
|
|
|
|
|
}
|
2023-09-13 15:42:57 +02:00
|
|
|
|
|
|
|
|
|
% Hyperlinks
|
|
|
|
|
\definecolor{link_blue}{RGB}{0,0,97}
|
|
|
|
|
\hypersetup{
|
|
|
|
|
% bookmarks=true, % show bookmarks bar?
|
|
|
|
|
% unicode=false, % non-Latin characters in Acrobat’s bookmarks
|
|
|
|
|
% pdftoolbar=true, % show Acrobat’s toolbar?
|
|
|
|
|
% pdfmenubar=true, % show Acrobat’s menu?
|
|
|
|
|
% pdffitwindow=false, % window fit to page when opened
|
|
|
|
|
% pdfstartview={FitH}, % fits the width of the page to the window
|
|
|
|
|
% pdftitle={My title}, % title
|
|
|
|
|
% pdfauthor={Author}, % author
|
|
|
|
|
% pdfsubject={Subject}, % subject of the document
|
|
|
|
|
% pdfcreator={Creator}, % creator of the document
|
|
|
|
|
% pdfproducer={Producer}, % producer of the document
|
|
|
|
|
% pdfkeywords={keyword1} {key2} {key3}, % list of keywords
|
|
|
|
|
% pdfnewwindow=true, % links in new PDF window
|
|
|
|
|
colorlinks=true, % false: boxed links; true: colored links
|
|
|
|
|
linkcolor=link_blue, % color of internal links (change box color with linkbordercolor)
|
|
|
|
|
citecolor=ForestGreen, % color of links to bibliography
|
|
|
|
|
filecolor=magenta, % color of file links
|
|
|
|
|
urlcolor=link_blue % color of external links
|
|
|
|
|
}
|
2023-09-22 17:32:53 +02:00
|
|
|
|
|
|
|
|
|
% Listing floats -- thanks https://tex.stackexchange.com/a/279245
|
|
|
|
|
\newfloat{lstfloat}{htbp}{lop}
|
|
|
|
|
\floatname{lstfloat}{Listing}
|
|
|
|
|
\def\lstfloatautorefname{Listing}
|
2023-09-26 16:39:12 +02:00
|
|
|
|
|
|
|
|
|
\newfloat{algorithm}{htbp}{lop}
|
|
|
|
|
\floatname{algorithm}{Algorithm}
|
|
|
|
|
\def\algorithmautorefname{Algorithm}
|