2021-05-19 19:05:52 +02:00
|
|
|
\usepackage[french,english]{babel}
|
2019-10-08 16:03:40 +02:00
|
|
|
|
2021-05-19 19:05:52 +02:00
|
|
|
\usepackage{graphicx}
|
|
|
|
\graphicspath{{figs/}}
|
|
|
|
|
|
|
|
\usepackage{subcaption}
|
|
|
|
\captionsetup{subrefformat=parens}
|
2021-05-19 17:32:47 +02:00
|
|
|
|
|
|
|
\usepackage[ %
|
|
|
|
acronym, % Separate acronyms and glossary
|
|
|
|
toc, % appear in ToC
|
|
|
|
automake, % auto-use the makeglossaries command (requires shell-escape)
|
|
|
|
nonumberlist, % don't back reference pages
|
|
|
|
nogroupskip, % don't group by letter
|
|
|
|
nopostdot % don't add a dot at the end of each element
|
|
|
|
]{glossaries}
|
2021-05-19 19:05:52 +02:00
|
|
|
|
2021-05-19 17:32:47 +02:00
|
|
|
\usepackage[stylemods=longextra]{glossaries-extra}
|
2021-05-19 19:05:52 +02:00
|
|
|
|
2021-05-19 17:32:47 +02:00
|
|
|
\setabbreviationstyle[acronym]{long-short}
|
|
|
|
\setglossarystyle{long-name-desc}
|
2021-05-19 19:05:52 +02:00
|
|
|
|
|
|
|
\usepackage[olditem,oldenum]{paralist}
|
|
|
|
|
|
|
|
\RequirePackage{setspace}
|
|
|
|
\onehalfspacing
|
|
|
|
|
|
|
|
\usepackage{booktabs}
|
|
|
|
\usepackage{multirow}
|
|
|
|
|
|
|
|
\usepackage[binary-units=true]{siunitx}
|
|
|
|
|
|
|
|
\sisetup{%
|
|
|
|
detect-all = true,
|
|
|
|
detect-family = true,
|
|
|
|
detect-mode = true,
|
|
|
|
detect-shape = true,
|
|
|
|
detect-weight = true,
|
|
|
|
detect-inline-weight = math,
|
|
|
|
}
|
|
|
|
|
|
|
|
\DeclareSIUnit\px{px}
|
|
|
|
\DeclareSIUnit\rms{rms}
|
|
|
|
|
|
|
|
\usepackage{amsmath}
|
|
|
|
\usepackage{amsthm}
|
|
|
|
\usepackage{dsfont}
|
|
|
|
|
|
|
|
\let\originalleft\left
|
|
|
|
\let\originalright\right
|
|
|
|
\renewcommand{\left}{\mathopen{}\mathclose\bgroup\originalleft}
|
|
|
|
\renewcommand{\right}{\aftergroup\egroup\originalright}
|
|
|
|
|
|
|
|
\clubpenalty = 10000
|
|
|
|
\widowpenalty = 10000
|
|
|
|
\displaywidowpenalty = 10000
|
|
|
|
|
|
|
|
\usepackage{scrlayer-scrpage}
|
|
|
|
|
|
|
|
\pagestyle{scrheadings}
|
|
|
|
|
|
|
|
\renewcommand{\partformat}{\huge\partname~\thepart\autodot}
|
|
|
|
\renewcommand{\raggedpart}{\flushleft}
|
|
|
|
|
|
|
|
\setkomafont{part}{\normalfont\huge\scshape}
|
|
|
|
|
|
|
|
\setkomafont{sectioning}{\normalfont\scshape}
|
|
|
|
\setkomafont{descriptionlabel}{\normalfont\bfseries}
|
|
|
|
|
|
|
|
\setkomafont{caption}{\small}
|
|
|
|
\setkomafont{captionlabel}{\usekomafont{caption}}
|
|
|
|
|
|
|
|
|
|
|
|
% Large number for chapter
|
|
|
|
\renewcommand*{\chapterformat}{%
|
|
|
|
\fontsize{50}{55}\selectfont\thechapter\autodot\enskip
|
|
|
|
}
|
|
|
|
|
|
|
|
\makeatletter
|
|
|
|
\renewcommand*{\chapterformat}{ \mbox{\chapappifchapterprefix{\nobreakspace}{\color{BrickRed}\fontsize{40}{45}\selectfont\thechapter}\autodot\enskip}}
|
|
|
|
\renewcommand\@seccntformat[1]{\color{BrickRed} {\csname the#1\endcsname}\hspace{0.3em}}
|
|
|
|
\makeatother
|
|
|
|
|
|
|
|
\renewcommand{\floatpagefraction}{.8}%
|
|
|
|
|
|
|
|
\usepackage{etoolbox}
|
|
|
|
|
|
|
|
\usepackage[ %
|
|
|
|
colorlinks=true, %
|
|
|
|
citecolor=BrickRed, %
|
|
|
|
linkcolor=BrickRed, %
|
|
|
|
urlcolor=BrickRed, %
|
|
|
|
unicode %
|
|
|
|
]{hyperref}
|
|
|
|
|
|
|
|
\usepackage{bookmark}
|
|
|
|
|
|
|
|
\bookmarksetup{depth=2}
|
|
|
|
|
|
|
|
\usepackage[ % use biblatex for bibliography
|
|
|
|
backend=biber, % use biber backend (bibtex replacement) or bibtex
|
|
|
|
style=ieee, % bib style
|
|
|
|
hyperref=true, % activate hyperref support
|
|
|
|
backref=true, % activate backrefs
|
|
|
|
isbn=false, % don't show isbn tags
|
|
|
|
url=false, % don't show url tags
|
|
|
|
doi=false, % don't show doi tags
|
|
|
|
urldate=long, % display type for dates
|
|
|
|
maxnames=3, %
|
|
|
|
minnames=1, %
|
|
|
|
maxbibnames=5, %
|
|
|
|
minbibnames=3, %
|
|
|
|
maxcitenames=2, %
|
|
|
|
mincitenames=1 %
|
|
|
|
]{biblatex}
|
|
|
|
|
|
|
|
\addbibresource{ref.bib}
|
|
|
|
|
|
|
|
\AtEveryBibitem{%
|
|
|
|
\clearfield{urlyear}
|
|
|
|
\clearfield{urlmonth}
|
|
|
|
\clearfield{note}
|
|
|
|
\clearfield{issn} % Remove issn
|
|
|
|
\clearfield{doi} % Remove doi
|
|
|
|
\ifentrytype{online}{}{% Remove url except for @online
|
|
|
|
\clearfield{url}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
\setlength\bibitemsep{1.1\itemsep}
|
|
|
|
|
|
|
|
\renewcommand*{\bibfont}{\footnotesize}
|
|
|
|
|
|
|
|
\usepackage[sf, scaled=0.9]{quattrocento}
|
|
|
|
|
|
|
|
\usepackage{crimson}
|
|
|
|
|
|
|
|
\usepackage[oldstyle, scale=0.7]{sourcecodepro}
|
|
|
|
|
|
|
|
\usepackage[usenames,dvipsnames]{xcolor}
|
|
|
|
|
|
|
|
\usepackage{csquotes}
|
|
|
|
|
|
|
|
\def\signed #1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip1em
|
|
|
|
\hbox{}\nobreak\hfill #1%
|
|
|
|
\parfillskip=0pt \finalhyphendemerits=0 \endgraf}}
|
|
|
|
|
|
|
|
\newsavebox\mybox
|
|
|
|
\newenvironment{aquote}[1]
|
|
|
|
{\savebox\mybox{#1}\begin{quote}\openautoquote\hspace*{-.7ex}}
|
|
|
|
{\unskip\closeautoquote\vspace*{1mm}\signed{\usebox\mybox}\end{quote}}
|
|
|
|
|
|
|
|
\usepackage{setspace}
|
|
|
|
\setstretch{1.25}
|
|
|
|
|
|
|
|
\setparsizes{0em}{0.1\baselineskip plus .1\baselineskip}{1em plus 1fil}
|
|
|
|
|
|
|
|
\usepackage{floatrow}
|
|
|
|
\floatsetup[table]{font={footnotesize,sf},capposition=top}
|
|
|
|
|
|
|
|
\numberwithin{equation}{chapter}
|
|
|
|
|
|
|
|
\usepackage{listings}
|
|
|
|
\usepackage{minted}
|
|
|
|
\setminted{autogobble=true,fontsize=\small,baselinestretch=0.8}
|
|
|
|
\setminted[python]{python3=true,tabsize=4}
|
|
|
|
\usemintedstyle{trac}
|
|
|
|
\lstset{abovecaptionskip=0}
|
|
|
|
\renewcommand{\listingscaption}{Code Snippet}
|
|
|
|
|
|
|
|
\AtEndEnvironment{listing}{\vspace{-16pt}}
|
|
|
|
|
|
|
|
\usepackage{scrhack}
|