2021-02-10 00:12:38 +00:00
|
|
|
|
\documentclass[listof=leveldown]{scrartcl}
|
2021-01-21 21:47:30 +00:00
|
|
|
|
\usepackage{microtype}
|
|
|
|
|
|
|
|
|
|
\usepackage{graphicx}
|
|
|
|
|
\makeatletter
|
|
|
|
|
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
|
|
|
|
|
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
|
|
|
|
|
\makeatother
|
|
|
|
|
% Scale images if necessary, so that they will not overflow the page
|
|
|
|
|
% margins by default, and it is still possible to overwrite the defaults
|
|
|
|
|
% using explicit options in \includegraphics[width, height, ...]{}
|
|
|
|
|
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
|
|
|
|
|
% Set default figure placement to htbp
|
|
|
|
|
\makeatletter
|
|
|
|
|
\def\fps@figure{htbp}
|
|
|
|
|
\makeatother
|
|
|
|
|
% Don't number figures by chapter
|
|
|
|
|
\usepackage{chngcntr}
|
2021-02-10 00:12:38 +00:00
|
|
|
|
\counterwithout{figure}{section}
|
|
|
|
|
\counterwithout{table}{section}
|
2021-01-31 00:56:40 +00:00
|
|
|
|
|
|
|
|
|
\usepackage{longtable,booktabs,array}
|
|
|
|
|
|
2021-01-21 21:47:30 +00:00
|
|
|
|
% Change caption formatting (KOMA-script)
|
|
|
|
|
%% See also at the end of polyglossia bloc
|
|
|
|
|
\setkomafont{captionlabel}{\sffamily\bfseries}
|
|
|
|
|
\renewcommand*{\captionformat}{ : }
|
2021-01-31 00:56:40 +00:00
|
|
|
|
\setcapmargin{0.1\linewidth}
|
2021-01-31 01:05:56 +00:00
|
|
|
|
\addtolength{\belowcaptionskip}{2mm}
|
2021-01-21 21:47:30 +00:00
|
|
|
|
|
|
|
|
|
\usepackage[normalem]{ulem}
|
|
|
|
|
$if(highlighting-macros)$
|
|
|
|
|
$highlighting-macros$
|
|
|
|
|
$endif$
|
|
|
|
|
\usepackage[dvipsnames,svgnames*,x11names*]{xcolor}
|
|
|
|
|
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
|
|
|
|
\urlstyle{same} % disable monospaced font for URLs
|
|
|
|
|
\setlength{\emergencystretch}{3em} % prevent overfull lines
|
|
|
|
|
\providecommand{\tightlist}{%
|
|
|
|
|
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
|
|
|
|
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
|
|
|
|
|
|
|
|
|
|
\usepackage{parskip}
|
|
|
|
|
\setlength{\parindent}{1em}
|
|
|
|
|
|
2021-02-23 20:58:57 +00:00
|
|
|
|
\usepackage{scrlayer-scrpage}
|
|
|
|
|
\pagestyle{scrheadings}
|
|
|
|
|
\usepackage[
|
|
|
|
|
type={CC},
|
|
|
|
|
modifier={by-sa},
|
|
|
|
|
version={4.0},
|
|
|
|
|
]{doclicense}
|
|
|
|
|
\ihead[]{\footnotesize Document placé sous license \doclicenseNameRef — \copyright{} Bastien Dumont}
|
|
|
|
|
\chead[]{}
|
|
|
|
|
\ohead[]{}
|
|
|
|
|
|
2021-01-21 21:47:30 +00:00
|
|
|
|
\usepackage{polyglossia}
|
|
|
|
|
\setmainlanguage[autospacing=false, autospaceguillemets=false, frenchfootnote=true]{french}
|
|
|
|
|
\setmainfont[Script=Latin, Letters=Uppercase, Kerning=On, Diacritics=MarkToBase, Ligatures=Common, Numbers=Proportional]{cochineal}
|
|
|
|
|
\setsansfont[Script=Latin, Diacritics=MarkToBase, Ligatures=Common, Numbers=Proportional]{Libertinus Sans}
|
|
|
|
|
\setmonofont{Nimbus Mono}
|
|
|
|
|
% Prevent polyglossia from setting figure labels to small caps
|
|
|
|
|
\gappto\captionsfrench{\def\figurename{Fig.}}
|
2021-01-31 00:56:40 +00:00
|
|
|
|
\gappto\captionsfrench{\def\tablename{Tab.}}
|
2021-01-21 21:47:30 +00:00
|
|
|
|
|
|
|
|
|
\renewcommand{\labelitemi}{—}
|
|
|
|
|
\renewcommand{\labelitemii}{–}
|
|
|
|
|
|
|
|
|
|
\usepackage{hyperref}
|
|
|
|
|
\hypersetup{
|
|
|
|
|
$if(title-meta)$
|
|
|
|
|
pdftitle={$title-meta$},
|
|
|
|
|
$endif$
|
|
|
|
|
$if(author-meta)$
|
|
|
|
|
pdfauthor={$author-meta$},
|
|
|
|
|
$endif$
|
|
|
|
|
$if(lang)$
|
|
|
|
|
pdflang={$lang$},
|
|
|
|
|
$endif$
|
|
|
|
|
$if(subject)$
|
|
|
|
|
pdfsubject={$subject$},
|
|
|
|
|
$endif$
|
|
|
|
|
$if(keywords)$
|
|
|
|
|
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
|
|
|
|
|
$endif$
|
|
|
|
|
colorlinks=true,
|
|
|
|
|
linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
|
|
|
|
|
filecolor=$if(filecolor)$$filecolor$$else$Maroon$endif$,
|
|
|
|
|
citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
|
|
|
|
|
urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
|
|
|
|
|
pdfcreator={LaTeX via pandoc}}
|
|
|
|
|
|
|
|
|
|
\title{$title$}
|
|
|
|
|
\makeatletter
|
|
|
|
|
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
|
|
|
|
|
\apptocmd{\@title}{\par {\large #1 \par}}{}{}
|
|
|
|
|
}
|
|
|
|
|
\makeatother
|
|
|
|
|
\subtitle{$subtitle$}
|
|
|
|
|
\author{$for(author)$$author$$sep$ \and $endfor$}
|
|
|
|
|
\date{$date$}
|
|
|
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
$if(title)$
|
|
|
|
|
\maketitle
|
|
|
|
|
$if(abstract)$
|
|
|
|
|
\begin{abstract}
|
|
|
|
|
$abstract$
|
|
|
|
|
\end{abstract}
|
|
|
|
|
$endif$
|
|
|
|
|
$endif$
|
|
|
|
|
|
|
|
|
|
{
|
2021-02-09 23:36:40 +00:00
|
|
|
|
\hypersetup{linkcolor=black}
|
2021-01-21 21:47:30 +00:00
|
|
|
|
\setcounter{tocdepth}{$toc-depth$}
|
2021-02-21 21:34:50 +00:00
|
|
|
|
$if(toc)$\tableofcontents$endif$
|
|
|
|
|
$if(lot)$\listoftables$endif$
|
|
|
|
|
$if(lof)$\listoffigures$endif$
|
2021-02-10 00:12:38 +00:00
|
|
|
|
}
|
2021-01-21 21:47:30 +00:00
|
|
|
|
$if(linestretch)$
|
|
|
|
|
\setstretch{$linestretch$}
|
|
|
|
|
$endif$
|
|
|
|
|
$body$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$for(include-after)$
|
|
|
|
|
$include-after$
|
|
|
|
|
$endfor$
|
|
|
|
|
\end{document}
|