aboutsummaryrefslogtreecommitdiff
path: root/example_1/resources/00_preamble.tex
blob: 3aa9b502ed7b82431ea5320cf740a3e93d27840d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\usepackage{calc}

\usepackage[a4paper, top=0.5cm, bottom=0.5cm, outer=0.5cm, inner=0.5cm]{geometry}
\pagestyle{empty}
\pagenumbering{gobble}

\usepackage{fontspec}
%\defaultfontfeatures{Ligatures={Common, Required, Contextual}}
\setmainfont{DejaVu Sans Bold}

\newcommand{\DUtitletitle}[1]{%
    {\begin{center}\textbf{\textsc{#1}}\end{center}}
 }

% Change the font for bold text
\let\bf\textbf
\renewcommand{\textbf}[1]{{\LibertineFont\selectfont\bf{#1}}}

\setmonofont{Latin Modern Mono Light}


\newcommand{\DUrolelatex}[1]{#1}

% Supprime l'indentation pour les listes de définitions
%\newenvironment{DUfieldlist}%
%  {\description[align=left,labelwidth=1.0cm,leftmargin=.5cm]}
%  {\enddescription}

\makeatletter
\newcommand{\ifdefinedcolor}[3]{%
	\@ifundefinedcolor{#1}{#3}{#2}
}
\makeatother