From 3fc344bdae8cbfaaf7d49d13ef2e021e1a974770 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Wed, 9 May 2018 08:16:05 +0200 Subject: Initial commit --- resources/preamble.tex | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 resources/preamble.tex (limited to 'resources/preamble.tex') diff --git a/resources/preamble.tex b/resources/preamble.tex new file mode 100644 index 0000000..b524b89 --- /dev/null +++ b/resources/preamble.tex @@ -0,0 +1,51 @@ + +%\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]% +{\longtabu to \linewidth [#1]{#2}\tableHeaderStyle}% +{\endlongtabu} + + +% 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}{}{} -- cgit v1.2.3