% variables
\def\first{\ml{First}{Prénom}}
\def\last{\ml{LAST}{NOM}}
\def\org{\ml{Organization}{Organisme}}
\def\role{\ml{Role}{Fonction}}
\def\tt{\ml{Title}{Civilité}}

% acronyms, glossary
\usepackage[acronym,toc]{glossaries}
\makeglossaries

% tune table of contents
\usepackage{tocloft}

% links
\hypersetup{
pdfinfo={
Title={\titlelong\ - \titlesub},
Author={\authorlong},
Creator={XeLaTeX / report},
},
colorlinks,
citecolor=blue,
filecolor=blue,
linkcolor=blue,
urlcolor=blue,
}

% adjust chapter titles
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@makechapterhead}{50\p@}{0pt}{}{}
\patchcmd{\@makeschapterhead}{50\p@}{0pt}{}{}
\makeatother

% set paper geometry
\usepackage[a4paper,portrait,
bmargin=20mm,lmargin=20mm,rmargin=20mm,tmargin=20mm]{geometry}

% images
\usepackage{graphicx}

% set fonts
\usepackage{fontspec}
% set relative sizes
\usepackage{relsize}
\setlength{\parindent}{0em}
\setlength{\parskip}{1em}
\setmainfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}

% set spacings
\usepackage{setspace}

% lists of figures, tables
\usepackage{tocbibind}

% references after polyglossia
\usepackage[sorting=anyt]{biblatex}
\bibliography{\name}

% commands

\newcommand{\cnam}{\includegraphics[height=1in]{../../cnam}}

\newcommand{\hr}{\rule{\textwidth}{1pt}}

\newcommand{\hrq}{\rule{.25\textwidth}{1pt}}

% environments

\newenvironment{itmz}{\begin{itemize}
%\setlength{\itemsep}{0em}
%\setlength{\parsep}{0em}
%\setlength{\parskip}{0em}
}{\end{itemize}}
