summaryrefslogtreecommitdiff
path: root/resources/preamble.tex
blob: 52a6adcdcd5082dccb21fed9084749522ddac434 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%\RequirePackage[utf8]{inputenc} % attention a l'UTF8, on peut choisir latin1...
%\RequirePackage[a4paper, top=3 cm, bottom=3 cm, left=2 cm, right=2 cm]{geometry}
\usepackage[a4paper, top=1.5cm, bottom=1.5cm, outer=5cm, inner=2cm, heightrounded, marginparwidth=3.5cm, marginparsep=0.9cm]{geometry}
%\renewcommand{\baselinestretch}{1.0}

\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Linux Libertine O}


\newfontfamily\LibertineFont[Mapping=tex-text]{Linux Libertine O}
\newfontfamily\CaviarDreamsFont[Path=resources/, Mapping=tex-text]{CaviarDreams}
\newfontfamily\DejaVuSansMono{DejaVu Sans Mono}

\setmonofont{Latin Modern Mono Light}

%\RequirePackage[linecolor=blueColor]{DUsidebar}
\RequirePackage{DUsidebar}

\definecolor{darkGray}{gray}{0.3}

%\newcommand{\DUrolecode}[1]{\colorBox{black}{#1}}

\newcommand{\DUtitletitle}[1]{%
    {\normalsize\CaviarDreamsFont{#1}}
}

\usepackage{longtable}
%\usepackage{tabu}
%% alternate rowcolors for all long-tables
\newenvironment{mytable}[2][c]%
{\longtable[#1]{#2}}%
{\endlongtable}
%
%
%% This red commes from a triad on the blue
%\colorlet{tableHeader}{redColor}
%\definecolor{tableLineOne}{RGB}{245, 245, 245}
%\definecolor{tableLineTwo}{RGB}{224, 224, 224}
%
%\newcommand{\tableHeaderStyle}{
%    \rowfont{\leavevmode\color{black}\bfseries}
%    \rowcolor{tableHeader}
%}
%
%\taburowcolors[2] 2{tableLineOne .. tableLineTwo}
%\tabulinesep = ^4mm_3mm
%\everyrow{\tabucline[.4mm  white]{}}

\usepackage{etoolbox}
\patchcmd{\quote}{\rightmargin}{\leftmargin 0em \rightmargin}{}{}

\makeindex