summaryrefslogtreecommitdiff
path: root/resources/10_preamble.tex
diff options
context:
space:
mode:
Diffstat (limited to 'resources/10_preamble.tex')
-rw-r--r--resources/10_preamble.tex50
1 files changed, 50 insertions, 0 deletions
diff --git a/resources/10_preamble.tex b/resources/10_preamble.tex
new file mode 100644
index 0000000..d3ee747
--- /dev/null
+++ b/resources/10_preamble.tex
@@ -0,0 +1,50 @@
+
+%\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}
+
+%\usepackage{lmodern}
+%\setmonofont{Latin Modern Mono Light}
+
+%\RequirePackage[linecolor=blueColor]{DUsidebar}
+
+%\newcommand{\DUrolecode}[1]{\colorBox{black}{#1}}
+
+\newcommand{\DUtitletitle}[1]{%
+ {\begin{flushleft}\normalsize\CaviarDreamsFont{#1}\end{flushleft}}
+}
+
+\usepackage{longtable}
+\usepackage{tabu}
+% alternate rowcolors for all long-tables
+\newenvironment{mytable}[2][c]%
+{\longtabu to \linewidth [#1]{#2}\tableHeaderStyle}%
+{\endlongtabu}
+
+\RequirePackage{DUsidebar}
+
+% 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{white}\bfseries}
+ \rowcolor{tableHeader}
+}
+
+\taburowcolors[2] 2{tableLineOne .. tableLineTwo}
+\tabulinesep = ^4mm_3mm
+\everyrow{\tabucline[.4mm white]{}}
+
+\usepackage{etoolbox}
+\patchcmd{\quote}{\rightmargin}{\leftmargin 0em \rightmargin}{}{}