2024-11-19 00:12:26 +01:00
|
|
|
\usepackage{fontspec}
|
|
|
|
\usepackage[english,french]{babel}
|
|
|
|
|
|
|
|
\usepackage{amsmath}
|
|
|
|
\usepackage{amsfonts}
|
|
|
|
\usepackage{amsthm}
|
|
|
|
\usepackage{xfrac}
|
|
|
|
\usepackage{csquotes}
|
|
|
|
\usepackage{booktabs}
|
|
|
|
\usepackage{array}
|
|
|
|
\usepackage{listings}
|
|
|
|
\usepackage{colortbl}
|
|
|
|
\usepackage{hyperref}
|
|
|
|
\usepackage{enumerate}
|
|
|
|
\usepackage{import}
|
|
|
|
\usepackage{appendixnumberbeamer}
|
|
|
|
\usepackage[bottom]{footmisc} % footnotes are below floats
|
|
|
|
\usepackage[final]{microtype}
|
|
|
|
|
|
|
|
% Local sty files
|
|
|
|
\usepackage{include/my_listings}
|
|
|
|
\usepackage{include/todo}
|
|
|
|
\input{include/macros.tex}
|
|
|
|
|
|
|
|
\emergencystretch=1em
|
|
|
|
|
|
|
|
% 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{}
|
|
|
|
}
|
2024-11-20 12:54:09 +01:00
|
|
|
|
|
|
|
% Temporarily set leftmargini
|
|
|
|
\newlength{\STASHleftmargini}
|
|
|
|
\newenvironment{tightitemize}[1]{
|
|
|
|
\setlength{\STASHleftmargini}{\leftmargini}
|
|
|
|
\setlength{\leftmargini}{#1}
|
|
|
|
}{
|
|
|
|
\setlength{\leftmargini}{\STASHleftmargini}
|
|
|
|
}
|