aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2019-08-10 20:36:56 +0200
committerSébastien Dailly <sebastien@chimrod.com>2019-08-10 20:36:56 +0200
commitf83e8b39df08ea9e9ca130a4578c749d48d55844 (patch)
tree2f774eaf9d5aeaa87d5b6e19697c123584aaa495
First commit
-rw-r--r--.gitignore2
-rw-r--r--Makefile8
-rwxr-xr-xfonts/Beatrix.otfbin0 -> 53004 bytes
-rwxr-xr-xfonts/CaviarDreams.ttfbin0 -> 58864 bytes
-rwxr-xr-xfonts/CaviarDreams_Bold.ttfbin0 -> 56392 bytes
-rwxr-xr-xfonts/CaviarDreams_BoldItalic.ttfbin0 -> 76604 bytes
-rwxr-xr-xfonts/CaviarDreams_Italic.ttfbin0 -> 73476 bytes
-rwxr-xr-xfonts/Quicksand-Bold.ttfbin0 -> 108752 bytes
-rwxr-xr-xfonts/Quicksand-Light.ttfbin0 -> 110500 bytes
-rwxr-xr-xfonts/Quicksand-Medium.ttfbin0 -> 109880 bytes
-rwxr-xr-xmodel_1/Makefile46
-rwxr-xr-xmodel_1/example.rst165
-rwxr-xr-xmodel_1/resources/00_colors.tex11
-rwxr-xr-xmodel_1/resources/00_preamble.tex33
-rwxr-xr-xmodel_1/resources/10_fonts.tex11
-rwxr-xr-xmodel_1/resources/10_language.tex8
-rwxr-xr-xmodel_1/resources/10_levels.tex73
-rwxr-xr-xmodel_1/resources/10_lists.tex17
-rwxr-xr-xmodel_1/resources/10_nowidows.tex2
-rwxr-xr-xmodel_1/resources/10_title_style.tex43
-rwxr-xr-xmodel_1/resources/90_ref.tex35
-rwxr-xr-xmodel_1/resources/99_sidebar.tex33
-rwxr-xr-xmodel_1/resources/modules13
-rwxr-xr-xmodel_2/Makefile50
-rwxr-xr-xmodel_2/example.rst165
-rwxr-xr-xmodel_2/resources/00_colors.tex10
-rwxr-xr-xmodel_2/resources/00_preamble.tex27
-rwxr-xr-xmodel_2/resources/10_fonts.tex8
-rwxr-xr-xmodel_2/resources/10_language.tex8
-rwxr-xr-xmodel_2/resources/10_levels.tex73
-rwxr-xr-xmodel_2/resources/10_lists.tex17
-rwxr-xr-xmodel_2/resources/10_nowidows.tex2
-rwxr-xr-xmodel_2/resources/10_title_style.tex46
-rwxr-xr-xmodel_2/resources/90_ref.tex35
-rwxr-xr-xmodel_2/resources/99_sidebar.tex48
-rwxr-xr-xmodel_2/resources/modules13
-rwxr-xr-xmodel_3/Makefile48
-rwxr-xr-xmodel_3/example.rst165
-rwxr-xr-xmodel_3/resources/00_colors.tex11
-rwxr-xr-xmodel_3/resources/00_preamble.tex29
-rwxr-xr-xmodel_3/resources/10_fonts.tex12
-rwxr-xr-xmodel_3/resources/10_language.tex8
-rwxr-xr-xmodel_3/resources/10_levels.tex73
-rwxr-xr-xmodel_3/resources/10_lists.tex17
-rwxr-xr-xmodel_3/resources/10_nowidows.tex2
-rwxr-xr-xmodel_3/resources/10_title_style.tex66
-rwxr-xr-xmodel_3/resources/90_ref.tex35
-rwxr-xr-xmodel_3/resources/99_sidebar.tex43
-rwxr-xr-xmodel_3/resources/header_footer.tex15
-rwxr-xr-xmodel_3/resources/modules13
-rwxr-xr-xmodel_4/Makefile50
-rwxr-xr-xmodel_4/example.rst165
-rwxr-xr-xmodel_4/resources/00_colors.tex11
-rwxr-xr-xmodel_4/resources/00_preamble.tex29
-rwxr-xr-xmodel_4/resources/10_fonts.tex12
-rwxr-xr-xmodel_4/resources/10_language.tex8
-rwxr-xr-xmodel_4/resources/10_levels.tex73
-rwxr-xr-xmodel_4/resources/10_lists.tex17
-rwxr-xr-xmodel_4/resources/10_nowidows.tex2
-rwxr-xr-xmodel_4/resources/10_title_style.tex81
-rwxr-xr-xmodel_4/resources/90_ref.tex35
-rwxr-xr-xmodel_4/resources/99_sidebar.tex33
-rwxr-xr-xmodel_4/resources/modules13
63 files changed, 2068 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b784400
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.pdf
+*.swp
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f91a599
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,8 @@
+SUBDIRS := $(wildcard model*/.)
+
+all: $(SUBDIRS)
+
+$(SUBDIRS):
+ $(MAKE) -C $@
+
+.PHONY: all $(SUBDIRS)
diff --git a/fonts/Beatrix.otf b/fonts/Beatrix.otf
new file mode 100755
index 0000000..3650de6
--- /dev/null
+++ b/fonts/Beatrix.otf
Binary files differ
diff --git a/fonts/CaviarDreams.ttf b/fonts/CaviarDreams.ttf
new file mode 100755
index 0000000..4ba4279
--- /dev/null
+++ b/fonts/CaviarDreams.ttf
Binary files differ
diff --git a/fonts/CaviarDreams_Bold.ttf b/fonts/CaviarDreams_Bold.ttf
new file mode 100755
index 0000000..0a3fe6d
--- /dev/null
+++ b/fonts/CaviarDreams_Bold.ttf
Binary files differ
diff --git a/fonts/CaviarDreams_BoldItalic.ttf b/fonts/CaviarDreams_BoldItalic.ttf
new file mode 100755
index 0000000..35117f0
--- /dev/null
+++ b/fonts/CaviarDreams_BoldItalic.ttf
Binary files differ
diff --git a/fonts/CaviarDreams_Italic.ttf b/fonts/CaviarDreams_Italic.ttf
new file mode 100755
index 0000000..d751ec1
--- /dev/null
+++ b/fonts/CaviarDreams_Italic.ttf
Binary files differ
diff --git a/fonts/Quicksand-Bold.ttf b/fonts/Quicksand-Bold.ttf
new file mode 100755
index 0000000..34698dc
--- /dev/null
+++ b/fonts/Quicksand-Bold.ttf
Binary files differ
diff --git a/fonts/Quicksand-Light.ttf b/fonts/Quicksand-Light.ttf
new file mode 100755
index 0000000..6d20f39
--- /dev/null
+++ b/fonts/Quicksand-Light.ttf
Binary files differ
diff --git a/fonts/Quicksand-Medium.ttf b/fonts/Quicksand-Medium.ttf
new file mode 100755
index 0000000..e68e4b6
--- /dev/null
+++ b/fonts/Quicksand-Medium.ttf
Binary files differ
diff --git a/model_1/Makefile b/model_1/Makefile
new file mode 100755
index 0000000..99eb4e8
--- /dev/null
+++ b/model_1/Makefile
@@ -0,0 +1,46 @@
+TEX=xelatex
+SOURCE=.
+
+SRC =$(wildcard *.rst)
+SVG =$(wildcard content/*.svg)
+
+PDFS = $(SRC:.rst=.pdf)
+INCLUDED_PDF = $(SVG:.svg=.pdf)
+
+all: $(PDFS)
+
+BIBS =$(wildcard *.bib)
+
+DIR = $(sort $(shell find $(SOURCE) -name '*.rst' -print))
+SOURCES = $(sort $(wildcard resources/*.tex))
+
+null :=
+space := $(null) #
+comma := ,
+TEX_STYLE := $(subst $(space),$(comma),$(strip $(SOURCES)))
+TEX_BIBS := $(subst $(space),$(comma),$(strip $(BIBS)))
+
+PACK = $(shell sed -e 's/\#.*$$//' -e '/^$$/d' resources/modules)
+PACKAGES := $(subst $(space),$(comma),$(strip $(PACK)))
+
+tmp:
+ mkdir tmp
+
+# Generate the latex file from rst
+tmp/%.tex: %.rst $(INCLUDED_PDF) $(SOURCES)| tmp
+ $$(command -v rst2latex rst2latex.py | head -n 1) --no-section-subtitles --table-style=borderless --use-latex-citations --use-latex-docinfo --documentclass=article --documentoption=12pt,A4,table --syntax-highlight=short --stylesheet=$(PACKAGES),$(TEX_STYLE) $< $@
+ sed -i -e 's/continued on next page/suite sur la page suivante/;s|^%$$||' $@
+ sed -i -e 's/admonition-/admonition/g' $@
+
+# Generate each pdf with latex
+tmp/%.pdf: tmp/%.tex $(BIBS) | tmp
+ $(TEX) -output-directory tmp $<
+ #bibtex tmp/$*.aux && $(TEX) -output-directory tmp $< || echo "no bib"
+ while grep 'Rerun to get ' tmp/$*.log ; do $(TEX) -output-directory tmp $< ; done
+
+# Put the pdf in the right place
+%.pdf: tmp/%.pdf | tmp
+ cp $< $@
+
+clean:
+ rm -r tmp
diff --git a/model_1/example.rst b/model_1/example.rst
new file mode 100755
index 0000000..0c123e9
--- /dev/null
+++ b/model_1/example.rst
@@ -0,0 +1,165 @@
+.. -*- mode: rst -*-
+.. -*- coding: utf-8 -*-
+
+
+.. role:: latex(raw)
+ :format: latex
+
+.. role:: level
+.. role:: star
+
+.. default-role:: latex
+
+.. raw:: latex
+
+
+ \setstretch{1.4}
+ %\definecolor{orangeColor}{RGB}{255, 165, 0}
+
+ % Espacement entre chaque note de marge
+ \setlength{\notesep}{1.3cm}
+
+ \renewcommand{\labelitemi}{}
+
+
+.. role:: smallcaps
+.. role:: smallemph
+
+.. |EDD| replace:: :smallcaps:`EDD`
+.. |ISO9001| replace:: :smallcaps:`ISO9001`
+.. |PDF| replace:: :smallcaps:`PDF`
+
+.. |ITIL| replace:: :smallcaps:`ITIL`
+
+.. |tuxicon| replace:: `\renewcommand{\labelitemi}{\faLinux}`
+.. |phoneicon| replace:: `\renewcommand{\labelitemi}{\faPhone}`
+.. |mailicon| replace:: `\renewcommand{\labelitemi}{\faEnvelope}`
+.. |puzzle| replace:: `\renewcommand{\labelitemi}{\faPuzzlePiece}`
+.. |noicon| replace:: `\renewcommand{\labelitemi}{}`
+.. |checkicon| replace:: `\renewcommand{\labelitemi}{\faCheck}`
+.. |coffeeicon| replace:: `\renewcommand{\labelitemi}{\faCoffee}`
+.. |lambdaicon| replace:: `\renewcommand{\labelitemi}{$\lambda$}`
+
+=============
+Martin Durand
+=============
+
+------------------
+Créateur de talent
+------------------
+
+.. sidebar:: Informations
+
+ * 17 allée des cerisiers
+ * 75001 Paris |phoneicon|
+ * 01 23 45 67 89 |mailicon|
+ * email@example |noicon|
+ * 01/02/1980
+ * Permis B
+
+.. sidebar:: Compétences
+
+ .. class:: checklist
+
+ * Conception
+ * Ésprit de synthèse
+ * Écoute |noicon|
+ * \
+
+.. sidebar:: Niveaux
+
+ Autre
+
+ :star:`4.5`
+
+ Anglais
+
+ :level:`5`
+
+ Bureautique
+
+ :level:`3`
+
+
+
+Expériences
+===========
+
+`\renewcommand{\labelitemi}{$\bullet$}`
+
+:Actuellement:
+
+ **Poste actuel** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][4-7]`
+
+ - :latex:`\lipsum[1-3][1]`
+ - :latex:`\lipsum[1-3][2]`
+ - :latex:`\lipsum[1-3][3]`
+
+
+:2011 — 2018:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][5-10]`
+
+ :latex:`\lipsum[4-7][5-10]`
+
+:2010 — 2011:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][10-15]`
+
+
+:2008 — 2010:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][15-21]`
+
+
+Réalisations
+============
+
+Description
+-----------
+
+:latex:`\lipsum[4-7][10-15]`
+
+:latex:`\lipsum[4-7][15-20]`
+
+Description
+-----------
+
+:latex:`\lipsum[7-10][10-15]`
+
+:latex:`\lipsum[7-10][15-20]`
+
+
+Formations
+==========
+
+:Année:
+
+ **Niveau M1** — *Université de Paris*
+
+
+:Année:
+
+ **Licence** — *Université de Paris*
+
+ Mention
+
+
+:Année:
+
+ **Baccalauréat Scientifique** — *Lycée* – Ville
+
+ Spécialité
+
+.. raw:: latex
+
+ \vspace{1cm}
+ \center\pgfornament[color=backsidecolor,width=1cm]{3}
diff --git a/model_1/resources/00_colors.tex b/model_1/resources/00_colors.tex
new file mode 100755
index 0000000..376b77b
--- /dev/null
+++ b/model_1/resources/00_colors.tex
@@ -0,0 +1,11 @@
+\usepackage{xcolor}
+
+% Couleur utilisée pour le bandeau
+\definecolor{backsidecolor}{RGB}{36,63,96}
+
+% Couleur utilisée pour les éléments du bandeau
+%\definecolor{sidecolor}{RGB}{36,63,96}
+%\definecolor{sidecolor}{RGB}{101,114,131}
+
+% Couleur utilisée pour le texte du bandeau
+\definecolor{textsidecolor}{RGB}{255,255,255}
diff --git a/model_1/resources/00_preamble.tex b/model_1/resources/00_preamble.tex
new file mode 100755
index 0000000..c5f02fc
--- /dev/null
+++ b/model_1/resources/00_preamble.tex
@@ -0,0 +1,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{EB Garamond}
+
+\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
diff --git a/model_1/resources/10_fonts.tex b/model_1/resources/10_fonts.tex
new file mode 100755
index 0000000..cdd96f7
--- /dev/null
+++ b/model_1/resources/10_fonts.tex
@@ -0,0 +1,11 @@
+\newfontfamily\EBGaramond{EB Garamond}[
+ Mapping=tex-text,
+ Ligatures={Common, Required, Contextual}
+]
+\newfontfamily\EBLigatures{EB Garamond}[
+ Mapping=tex-text,
+ Ligatures={Common, Required, Contextual, Historic}
+]
+\newfontfamily\LibertineFont[Mapping=tex-text]{Linux Libertine O}
+\newfontfamily\CaviarDreamsFont[Path=../fonts/, Mapping=tex-text]{CaviarDreams}
+\newfontfamily\CaviarDreamsBoldFont[Path=../fonts/, Mapping=tex-text]{CaviarDreams_Bold}
diff --git a/model_1/resources/10_language.tex b/model_1/resources/10_language.tex
new file mode 100755
index 0000000..7cc0990
--- /dev/null
+++ b/model_1/resources/10_language.tex
@@ -0,0 +1,8 @@
+\RequirePackage[french]{babel}
+
+%\frenchbsetup{ItemLabeli=\color{fondetsection}\ding{251}}
+
+\selectlanguage{french}
+\frenchspacing
+\FrenchFootnotes
+
diff --git a/model_1/resources/10_levels.tex b/model_1/resources/10_levels.tex
new file mode 100755
index 0000000..d2c8682
--- /dev/null
+++ b/model_1/resources/10_levels.tex
@@ -0,0 +1,73 @@
+\newcommand{\DUrolelevel}[1]{%
+ \resizebox{\linewidth}{!}{%
+ \begin{tikzpicture}
+ \draw (0,0) -- (5,0);
+ \fill(#1,-.1) rectangle ($ (#1,0) + (0.1, .1) $);
+ \end{tikzpicture}
+ }
+}
+
+\ifdefinedcolor{sidecolor}{%
+ \colorlet{patterncolor}{sidecolor}
+}{%
+ \colorlet{patterncolor}{textsidecolor}
+}
+
+\ifdefinedcolor{backsidecolor}{%
+ \colorlet{emptycolor}{backsidecolor}
+}{%
+ \colorlet{emptycolor}{white}
+}
+
+\usetikzlibrary{shapes.geometric,calc}
+\newcommand\starScore[2]{
+\pgfmathsetmacro\pgfxa{#1+1}
+\tikzstyle{scorestars}=[star, star points=5, star point ratio=2.25, draw,inner sep=0.15em,anchor=outer point 3]
+\begin{tikzpicture}[baseline]
+ \foreach \i in {1,...,#2} {
+ \pgfmathparse{(\i<=#1?"patterncolor":"emptycolor")}
+ \edef\starcolor{\pgfmathresult}
+ \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor] {};
+ }
+ \pgfmathparse{(#1>int(#1)?int(#1+1):0}
+ \let\partstar=\pgfmathresult
+ \ifnum\partstar>0
+ \pgfmathsetmacro\starpart{#1-(int(#1))}
+ \path [clip] ($(star\partstar.outer point 3)!(star\partstar.outer point 2)!(star\partstar.outer point 4)$) rectangle
+ ($(star\partstar.outer point 2 |- star\partstar.outer point 1)!\starpart!(star\partstar.outer point 1 -| star\partstar.outer point 5)$);
+ \fill (\partstar*1em,0) node[scorestars,fill=patterncolor] {};
+ \fi
+
+,\end{tikzpicture}
+}
+
+
+\newcommand\roundscore[2]{
+\pgfmathsetmacro\pgfxa{#1+1}
+\tikzstyle{scorestars}=[circle, draw, inner sep=0.15em,anchor=west]
+\begin{tikzpicture}[baseline]
+ \foreach \i in {1,...,#2} {
+ \pgfmathparse{(\i<=#1?"blue!70":"lightgray")}
+ \edef\starcolor{\pgfmathresult}
+ \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor] {};
+ }
+ \pgfmathparse{(#1>int(#1)?int(#1+1):0}
+ \let\partstar=\pgfmathresult
+ \ifnum\partstar>0
+ \pgfmathsetmacro\starpart{#1-(int(#1))}
+ \path [clip] (star\partstar.north west) rectangle
+ ($(star\partstar.south west)!\starpart!(star\partstar.south east)$);
+ \fill (\partstar*1em,0) node[scorestars,fill=blue!70] {};
+ \fi,
+
+\end{tikzpicture}
+}
+
+\newcommand{\DUrolestar}[1]{%
+ \resizebox{\linewidth}{!}{%
+ \starScore{#1}{5}
+ }
+}
+
+
+
diff --git a/model_1/resources/10_lists.tex b/model_1/resources/10_lists.tex
new file mode 100755
index 0000000..b87845a
--- /dev/null
+++ b/model_1/resources/10_lists.tex
@@ -0,0 +1,17 @@
+\usepackage{fontawesome}
+
+\newenvironment{DUCLASSdiamondlist}{\renewcommand{\labelitemi}{$\diamond$}}{}
+\newenvironment{DUCLASSastlist}{\renewcommand{\labelitemi}{$\ast$}}{}
+\newenvironment{DUCLASScdotlist}{\renewcommand{\labelitemi}{$\cdot$}}{}
+\newenvironment{DUCLASSbulletlist}{\renewcommand{\labelitemi}{$\bullet$}}{}
+\newenvironment{DUCLASSchecklist}{\renewcommand{\labelitemi}{\faCheck}}{}
+\newenvironment{DUCLASSnonelist}{\renewcommand{\labelitemi}{}}{}
+
+\renewcommand{\labelitemi}{$\bullet$}
+\renewcommand{\labelitemii}{$\cdot$}
+\renewcommand{\labelitemiii}{$\diamond$}
+\renewcommand{\labelitemiv}{$\ast$}
+
+% Réduit l'indentation pour les éléments des listes
+\usepackage{enumitem}
+\setlist[itemize,1]{leftmargin=.0cm}
diff --git a/model_1/resources/10_nowidows.tex b/model_1/resources/10_nowidows.tex
new file mode 100755
index 0000000..3b96931
--- /dev/null
+++ b/model_1/resources/10_nowidows.tex
@@ -0,0 +1,2 @@
+\widowpenalty=1000
+\clubpenalty=500
diff --git a/model_1/resources/10_title_style.tex b/model_1/resources/10_title_style.tex
new file mode 100755
index 0000000..df636f6
--- /dev/null
+++ b/model_1/resources/10_title_style.tex
@@ -0,0 +1,43 @@
+\usepackage{titlesec}
+
+\providecommand{\DUdocumentsubtitle}[1]{%
+ \color{black}
+ \EBLigatures\selectfont
+ \Large
+ #1\switchcolumn[1]* % Synchronise the column at this position
+}
+
+\makeatletter
+
+\def\@maketitle{%
+ \switchcolumn[1]%
+ \vspace*{1cm}
+ \textcolor{orange}{\fontsize{1.2cm}{2cm}\CaviarDreamsFont\selectfont \@title}
+}
+\makeatother
+
+
+\newcommand{\periodafter}[1]{#1.}
+
+% Titre de niveau 1
+\titleformat{\section}
+ {\CaviarDreamsFont\selectfont\large}
+ {\thesection}
+ {0em}
+ {\periodafter}
+ [{\color{backsidecolor}\titlerule[1pt]}]
+
+% Titre de niveau 2
+\titleformat{\subsection}
+ {\large}
+ {\thesubsection}
+ {}
+ {\textcolor{backsidecolor}}
+
+% Titre de niveau 3
+\titleformat{\subsubsection}
+ {\bfseries\normalsize}
+ {\thesubsubsection}
+ {2em}
+ {}
+ {}
diff --git a/model_1/resources/90_ref.tex b/model_1/resources/90_ref.tex
new file mode 100755
index 0000000..96edd79
--- /dev/null
+++ b/model_1/resources/90_ref.tex
@@ -0,0 +1,35 @@
+\usepackage[
+ pdfencoding=auto,
+ linkbordercolor={0.5 0 0},
+ citebordercolor={0 0 0.5},
+ urlbordercolor=textsidecolor,
+ pdfborderstyle={/S/U/W 1}
+]{hyperref}
+
+% Remove the underline for the footnotes
+\providecommand*{\DUfootnotemark}[3]{%
+ \hypersetup{pdfborderstyle={/W 0}}%
+ \raisebox{1em}{\hypertarget{#1}{}}%
+ \hyperlink{#2}{\textsuperscript{#3}}%
+ \hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
+
+\providecommand{\DUfootnotetext}[4]{%
+ \begingroup%
+ \renewcommand{\thefootnote}{%
+ \protect\hypersetup{pdfborderstyle={/W 0}}%
+ \protect\raisebox{1em}{\protect\hypertarget{#1}{}}%
+ \protect\hyperlink{#2}{#3}
+ \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+ }%
+ \footnotetext{#4}%
+ \endgroup%
+}
+
+\let\tableofcontentsWithoutRefMarks\tableofcontents
+
+\renewcommand{\tableofcontents}{%
+ \protect\hypersetup{pdfborderstyle={/W 0}}%
+ \tableofcontentsWithoutRefMarks
+ \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
diff --git a/model_1/resources/99_sidebar.tex b/model_1/resources/99_sidebar.tex
new file mode 100755
index 0000000..b5df4de
--- /dev/null
+++ b/model_1/resources/99_sidebar.tex
@@ -0,0 +1,33 @@
+\newlength{\notesep}
+
+\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
+\let\endchangemargin=\endlist
+
+% Une commande dédiée pour les notes de marge
+\setlength{\columnsep}{0.25cm}
+\columnratio{0.28}
+
+\ifdefinedcolor{backsidecolor}{%
+ \backgroundcolor{c[0]}{backsidecolor}
+}{}
+
+\newcommand{\DUsidebar}[1]{%
+ \switchcolumn[0]
+ \begin{changemargin}{0.7cm}{1.5cm}
+ \LibertineFont\selectfont
+ \ifdefinedcolor{textsidecolor}{\color{textsidecolor}}{}
+ #1
+ \end{changemargin}
+ \vspace{\notesep}
+ \switchcolumn
+ \ifdefinedcolor{textsidecolor}{\color{black}}{}
+}
+
+\AtBeginDocument{%
+ \begin{paracol}{2}
+}
+\AtEndDocument{%
+ % Make the column go to the bottom
+ \flushpage
+ \end{paracol}
+}
diff --git a/model_1/resources/modules b/model_1/resources/modules
new file mode 100755
index 0000000..ed4db20
--- /dev/null
+++ b/model_1/resources/modules
@@ -0,0 +1,13 @@
+tikz
+parskip # Ne pas indenter la premiere ligne d'un paragraphe
+setspace
+
+# Polices mathematiques.
+amsmath
+amsfonts
+amssymb
+
+DUsmallcaps
+pgfornament
+paracol
+lipsum
diff --git a/model_2/Makefile b/model_2/Makefile
new file mode 100755
index 0000000..ae2f58e
--- /dev/null
+++ b/model_2/Makefile
@@ -0,0 +1,50 @@
+TEX=xelatex
+SOURCE=.
+
+SRC =$(wildcard *.rst)
+SVG =$(wildcard content/*.svg)
+
+PDFS = $(SRC:.rst=.pdf)
+INCLUDED_PDF = $(SVG:.svg=.pdf)
+
+all: $(PDFS)
+
+BIBS =$(wildcard *.bib)
+
+DIR = $(sort $(shell find $(SOURCE) -name '*.rst' -print))
+SOURCES = $(sort $(wildcard resources/*.tex))
+
+null :=
+space := $(null) #
+comma := ,
+TEX_STYLE := $(subst $(space),$(comma),$(strip $(SOURCES)))
+TEX_BIBS := $(subst $(space),$(comma),$(strip $(BIBS)))
+
+PACK = $(shell sed -e 's/\#.*$$//' -e '/^$$/d' resources/modules)
+PACKAGES := $(subst $(space),$(comma),$(strip $(PACK)))
+
+tmp:
+ mkdir tmp
+
+# Image generation
+content/%.pdf: content/%.svg
+ inkscape -D -z --export-pdf=$@ $<
+
+# Generate the latex file from rst
+tmp/%.tex: %.rst $(INCLUDED_PDF) $(SOURCES)| tmp
+ $$(command -v rst2latex rst2latex.py | head -n 1) --no-section-subtitles --table-style=borderless --use-latex-citations --use-latex-docinfo --documentclass=article --documentoption=12pt,A4,table --syntax-highlight=short --stylesheet=$(PACKAGES),$(TEX_STYLE) $< $@
+ sed -i -e 's/continued on next page/suite sur la page suivante/;s|^%$$||' $@
+ sed -i -e 's/admonition-/admonition/g' $@
+
+# Generate each pdf with latex
+tmp/%.pdf: tmp/%.tex $(BIBS) | tmp
+ $(TEX) -output-directory tmp $<
+ #bibtex tmp/$*.aux && $(TEX) -output-directory tmp $< || echo "no bib"
+ while grep 'Rerun to get ' tmp/$*.log ; do $(TEX) -output-directory tmp $< ; done
+
+# Put the pdf in the right place
+%.pdf: tmp/%.pdf | tmp
+ cp $< $@
+
+clean:
+ rm -r tmp
diff --git a/model_2/example.rst b/model_2/example.rst
new file mode 100755
index 0000000..c071180
--- /dev/null
+++ b/model_2/example.rst
@@ -0,0 +1,165 @@
+.. -*- mode: rst -*-
+.. -*- coding: utf-8 -*-
+
+
+.. role:: latex(raw)
+ :format: latex
+
+.. role:: level
+.. role:: star
+
+.. default-role:: latex
+
+.. raw:: latex
+
+
+ \setstretch{1.4}
+ %\definecolor{orangeColor}{RGB}{255, 165, 0}
+
+ % Espacement entre chaque note de marge
+ \setlength{\notesep}{1.3cm}
+
+ \renewcommand{\labelitemi}{}
+
+
+.. role:: smallcaps
+.. role:: smallemph
+
+.. |EDD| replace:: :smallcaps:`EDD`
+.. |ISO9001| replace:: :smallcaps:`ISO9001`
+.. |PDF| replace:: :smallcaps:`PDF`
+
+.. |ITIL| replace:: :smallcaps:`ITIL`
+
+.. |tuxicon| replace:: `\renewcommand{\labelitemi}{\faLinux}`
+.. |phoneicon| replace:: `\renewcommand{\labelitemi}{\faPhone}`
+.. |mailicon| replace:: `\renewcommand{\labelitemi}{\faEnvelope}`
+.. |puzzle| replace:: `\renewcommand{\labelitemi}{\faPuzzlePiece}`
+.. |noicon| replace:: `\renewcommand{\labelitemi}{}`
+.. |checkicon| replace:: `\renewcommand{\labelitemi}{\faCheck}`
+.. |coffeeicon| replace:: `\renewcommand{\labelitemi}{\faCoffee}`
+.. |lambdaicon| replace:: `\renewcommand{\labelitemi}{$\lambda$}`
+
+=============
+Martin Durand
+=============
+
+------------------
+Créateur de talent
+------------------
+
+.. sidebar:: Informations
+
+ * 17 allée des cerisiers
+ * 75001 Paris |phoneicon|
+ * 01 23 45 67 89 |mailicon|
+ * email@example |noicon|
+ * 01/02/1980
+ * Permis B
+
+.. sidebar:: Compétences
+
+ .. class:: checklist
+
+ * Conception
+ * Ésprit de synthèse
+ * Écoute |noicon|
+ * \
+
+.. sidebar:: Niveaux
+
+ Autre
+
+ :star:`4.5`
+
+ Anglais
+
+ :level:`5`
+
+ Bureautique
+
+ :level:`3`
+
+
+
+Expériences
+===========
+
+`\renewcommand{\labelitemi}{$\bullet$}`
+
+:Actuellement:
+
+ **Poste actuel** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][4-7]`
+
+ - :latex:`\lipsum[1-3][1]`
+ - :latex:`\lipsum[1-3][2]`
+ - :latex:`\lipsum[1-3][3]`
+
+
+:2011 — 2018:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][5-10]`
+
+ :latex:`\lipsum[4-7][5-10]`
+
+:2010 — 2011:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][10-15]`
+
+
+:2008 — 2010:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][15-21]`
+
+
+Réalisations
+============
+
+Description
+-----------
+
+:latex:`\lipsum[4-7][10-15]`
+
+:latex:`\lipsum[4-7][15-20]`
+
+Description
+-----------
+
+:latex:`\lipsum[7-10][10-15]`
+
+:latex:`\lipsum[7-10][15-20]`
+
+
+Formations
+==========
+
+:Année:
+
+ **Niveau M1** — *Université de Paris*
+
+
+:Année:
+
+ **Licence** — *Université de Paris*
+
+ Mention
+
+
+:Année:
+
+ **Baccalauréat Scientifique** — *Lycée* – Ville
+
+ Spécialité
+
+.. raw:: latex
+
+ \vspace{1cm}
+ \center\pgfornament[color=sidecolor,width=1cm]{3}
diff --git a/model_2/resources/00_colors.tex b/model_2/resources/00_colors.tex
new file mode 100755
index 0000000..6698132
--- /dev/null
+++ b/model_2/resources/00_colors.tex
@@ -0,0 +1,10 @@
+\usepackage{xcolor}
+
+% Couleur utilisée pour le bandeau
+\definecolor{backsidecolor}{RGB}{233,223,214}
+
+% Couleur utilisée pour les éléments du bandeau
+\definecolor{sidecolor}{RGB}{69,69,69}
+
+% Couleur utilisée pour le texte du bandeau
+%\definecolor{textsidecolor}{RGB}{0,100,0}
diff --git a/model_2/resources/00_preamble.tex b/model_2/resources/00_preamble.tex
new file mode 100755
index 0000000..d949922
--- /dev/null
+++ b/model_2/resources/00_preamble.tex
@@ -0,0 +1,27 @@
+\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{EB Garamond}
+
+% 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
diff --git a/model_2/resources/10_fonts.tex b/model_2/resources/10_fonts.tex
new file mode 100755
index 0000000..e229582
--- /dev/null
+++ b/model_2/resources/10_fonts.tex
@@ -0,0 +1,8 @@
+\newfontfamily\EBLigatures{EB Garamond}[
+ Mapping=tex-text,
+ Ligatures={Common, Required, Contextual, Historic}
+]
+\newfontfamily\LibertineFont[Mapping=tex-text]{Linux Libertine O}
+\newfontfamily\CaviarDreamsFont[Path=../fonts/, Mapping=tex-text]{CaviarDreams}
+\newfontfamily\CaviarDreamsBoldFont[Path=../fonts/, Mapping=tex-text]{CaviarDreams_Bold}
+
diff --git a/model_2/resources/10_language.tex b/model_2/resources/10_language.tex
new file mode 100755
index 0000000..7cc0990
--- /dev/null
+++ b/model_2/resources/10_language.tex
@@ -0,0 +1,8 @@
+\RequirePackage[french]{babel}
+
+%\frenchbsetup{ItemLabeli=\color{fondetsection}\ding{251}}
+
+\selectlanguage{french}
+\frenchspacing
+\FrenchFootnotes
+
diff --git a/model_2/resources/10_levels.tex b/model_2/resources/10_levels.tex
new file mode 100755
index 0000000..7660b1d
--- /dev/null
+++ b/model_2/resources/10_levels.tex
@@ -0,0 +1,73 @@
+\newcommand{\DUrolelevel}[1]{%
+ \resizebox{\linewidth}{!}{%
+ \begin{tikzpicture}
+ \draw (0,0) -- (5,0);
+ \fill(#1,-.1) rectangle ($ (#1,0) + (0.1, .1) $);
+ \end{tikzpicture}
+ }
+}
+
+\ifdefinedcolor{sidecolor}{%
+ \colorlet{patterncolor}{sidecolor}
+}{%
+ \colorlet{patterncolor}{black}
+}
+
+\ifdefinedcolor{backsidecolor}{%
+ \colorlet{emptycolor}{backsidecolor}
+}{%
+ \colorlet{emptycolor}{white}
+}
+
+\usetikzlibrary{shapes.geometric,calc}
+\newcommand\starScore[2]{
+\pgfmathsetmacro\pgfxa{#1+1}
+\tikzstyle{scorestars}=[star, star points=5, star point ratio=2.25, draw,inner sep=0.15em,anchor=outer point 3]
+\begin{tikzpicture}[baseline]
+ \foreach \i in {1,...,#2} {
+ \pgfmathparse{(\i<=#1?"patterncolor":"emptycolor")}
+ \edef\starcolor{\pgfmathresult}
+ \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor] {};
+ }
+ \pgfmathparse{(#1>int(#1)?int(#1+1):0}
+ \let\partstar=\pgfmathresult
+ \ifnum\partstar>0
+ \pgfmathsetmacro\starpart{#1-(int(#1))}
+ \path [clip] ($(star\partstar.outer point 3)!(star\partstar.outer point 2)!(star\partstar.outer point 4)$) rectangle
+ ($(star\partstar.outer point 2 |- star\partstar.outer point 1)!\starpart!(star\partstar.outer point 1 -| star\partstar.outer point 5)$);
+ \fill (\partstar*1em,0) node[scorestars,fill=patterncolor] {};
+ \fi
+
+,\end{tikzpicture}
+}
+
+
+\newcommand\roundscore[2]{
+\pgfmathsetmacro\pgfxa{#1+1}
+\tikzstyle{scorestars}=[circle, draw, inner sep=0.15em,anchor=west]
+\begin{tikzpicture}[baseline]
+ \foreach \i in {1,...,#2} {
+ \pgfmathparse{(\i<=#1?"blue!70":"lightgray")}
+ \edef\starcolor{\pgfmathresult}
+ \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor] {};
+ }
+ \pgfmathparse{(#1>int(#1)?int(#1+1):0}
+ \let\partstar=\pgfmathresult
+ \ifnum\partstar>0
+ \pgfmathsetmacro\starpart{#1-(int(#1))}
+ \path [clip] (star\partstar.north west) rectangle
+ ($(star\partstar.south west)!\starpart!(star\partstar.south east)$);
+ \fill (\partstar*1em,0) node[scorestars,fill=blue!70] {};
+ \fi,
+
+\end{tikzpicture}
+}
+
+\newcommand{\DUrolestar}[1]{%
+ \resizebox{\linewidth}{!}{%
+ \starScore{#1}{5}
+ }
+}
+
+
+
diff --git a/model_2/resources/10_lists.tex b/model_2/resources/10_lists.tex
new file mode 100755
index 0000000..b87845a
--- /dev/null
+++ b/model_2/resources/10_lists.tex
@@ -0,0 +1,17 @@
+\usepackage{fontawesome}
+
+\newenvironment{DUCLASSdiamondlist}{\renewcommand{\labelitemi}{$\diamond$}}{}
+\newenvironment{DUCLASSastlist}{\renewcommand{\labelitemi}{$\ast$}}{}
+\newenvironment{DUCLASScdotlist}{\renewcommand{\labelitemi}{$\cdot$}}{}
+\newenvironment{DUCLASSbulletlist}{\renewcommand{\labelitemi}{$\bullet$}}{}
+\newenvironment{DUCLASSchecklist}{\renewcommand{\labelitemi}{\faCheck}}{}
+\newenvironment{DUCLASSnonelist}{\renewcommand{\labelitemi}{}}{}
+
+\renewcommand{\labelitemi}{$\bullet$}
+\renewcommand{\labelitemii}{$\cdot$}
+\renewcommand{\labelitemiii}{$\diamond$}
+\renewcommand{\labelitemiv}{$\ast$}
+
+% Réduit l'indentation pour les éléments des listes
+\usepackage{enumitem}
+\setlist[itemize,1]{leftmargin=.0cm}
diff --git a/model_2/resources/10_nowidows.tex b/model_2/resources/10_nowidows.tex
new file mode 100755
index 0000000..3b96931
--- /dev/null
+++ b/model_2/resources/10_nowidows.tex
@@ -0,0 +1,2 @@
+\widowpenalty=1000
+\clubpenalty=500
diff --git a/model_2/resources/10_title_style.tex b/model_2/resources/10_title_style.tex
new file mode 100755
index 0000000..3f57a84
--- /dev/null
+++ b/model_2/resources/10_title_style.tex
@@ -0,0 +1,46 @@
+\usepackage{titlesec}
+
+
+\providecommand*{\DUdocumentsubtitle}[1]{{\EBLigatures\selectfont\em\LARGE\begin{flushright}#1\end{flushright}}}
+
+\makeatletter
+
+%\def\@subtitle{\relax}
+\newcommand{\subtitle}[1]{\gdef\@subtitle{#1}}
+
+\def\@maketitle{%
+ \begin{tcolorbox}[colback=sidecolor, sharp corners]
+ \begin{center}
+ \vspace*{1cm}
+ \textcolor{white}{\fontsize{1.2cm}{2cm}\CaviarDreamsFont\selectfont \@title}
+ \end{center}
+ \vspace*{1cm}
+ \end{tcolorbox}
+}
+\makeatother
+
+
+\newcommand{\periodafter}[1]{#1.}
+
+% Titre de niveau 1
+\titleformat{\section}
+ {\CaviarDreamsFont\selectfont\Large\centering}
+ {\thesection}
+ {0em}
+ {\vspace{1cm}}
+ []
+
+% Titre de niveau 2
+\titleformat{\subsection}
+ {\large}
+ {\thesubsection}
+ {}
+ {\textcolor{black!69}}
+
+% Titre de niveau 3
+\titleformat{\subsubsection}
+ {\bfseries\normalsize}
+ {\thesubsubsection}
+ {2em}
+ {}
+ {}
diff --git a/model_2/resources/90_ref.tex b/model_2/resources/90_ref.tex
new file mode 100755
index 0000000..1760d18
--- /dev/null
+++ b/model_2/resources/90_ref.tex
@@ -0,0 +1,35 @@
+\usepackage[
+ pdfencoding=auto,
+ linkbordercolor={0.5 0 0},
+ citebordercolor={0 0 0.5},
+ urlbordercolor=backsidecolor,
+ pdfborderstyle={/S/U/W 1}
+]{hyperref}
+
+% Remove the underline for the footnotes
+\providecommand*{\DUfootnotemark}[3]{%
+ \hypersetup{pdfborderstyle={/W 0}}%
+ \raisebox{1em}{\hypertarget{#1}{}}%
+ \hyperlink{#2}{\textsuperscript{#3}}%
+ \hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
+
+\providecommand{\DUfootnotetext}[4]{%
+ \begingroup%
+ \renewcommand{\thefootnote}{%
+ \protect\hypersetup{pdfborderstyle={/W 0}}%
+ \protect\raisebox{1em}{\protect\hypertarget{#1}{}}%
+ \protect\hyperlink{#2}{#3}
+ \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+ }%
+ \footnotetext{#4}%
+ \endgroup%
+}
+
+\let\tableofcontentsWithoutRefMarks\tableofcontents
+
+\renewcommand{\tableofcontents}{%
+ \protect\hypersetup{pdfborderstyle={/W 0}}%
+ \tableofcontentsWithoutRefMarks
+ \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
diff --git a/model_2/resources/99_sidebar.tex b/model_2/resources/99_sidebar.tex
new file mode 100755
index 0000000..a415a9f
--- /dev/null
+++ b/model_2/resources/99_sidebar.tex
@@ -0,0 +1,48 @@
+\usepackage{eso-pic}
+\usetikzlibrary{calc}
+
+\newlength{\notesep}
+
+\newlength{\sideBottomMargin}
+\setlength{\sideBottomMargin}{0.2cm}
+
+\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
+\let\endchangemargin=\endlist
+
+% Une commande dédiée pour les notes de marge
+\setlength{\columnsep}{0.5cm}
+\columnratio{0.29}
+
+\ifdefinedcolor{backsidecolor}{%
+ \backgroundcolor{c[0]}{backsidecolor}
+}{}
+
+\newcommand{\DUsidebar}[1]{%
+ \switchcolumn[0]
+ \begin{changemargin}{0.7cm}{0.7cm}
+ \LibertineFont\selectfont
+ \ifdefinedcolor{textsidecolor}{\color{textsidecolor}}{}
+ #1
+ \end{changemargin}
+ \vspace{\notesep}
+ \switchcolumn
+}
+\usepackage[many]{tcolorbox}
+
+\newcommand{\DUtitletitle}[1]{%
+ \begin{tcolorbox}[colback=sidecolor, sharp corners]%
+ \begin{center}%
+ \begin{CaviarDreamsBoldFont}%
+ {\textbf\selectfont\color{white}{\scriptsize\uppercase{#1}}}%
+ \end{CaviarDreamsBoldFont}%
+ \end{center}
+ \end{tcolorbox}
+ }
+
+
+\AtEndDocument{
+ \flushpage
+ \end{paracol}
+}
+\let\oldtitle\maketitle
+\renewcommand{\maketitle}{{\oldtitle}\begin{paracol}{2}}
diff --git a/model_2/resources/modules b/model_2/resources/modules
new file mode 100755
index 0000000..ed4db20
--- /dev/null
+++ b/model_2/resources/modules
@@ -0,0 +1,13 @@
+tikz
+parskip # Ne pas indenter la premiere ligne d'un paragraphe
+setspace
+
+# Polices mathematiques.
+amsmath
+amsfonts
+amssymb
+
+DUsmallcaps
+pgfornament
+paracol
+lipsum
diff --git a/model_3/Makefile b/model_3/Makefile
new file mode 100755
index 0000000..c078875
--- /dev/null
+++ b/model_3/Makefile
@@ -0,0 +1,48 @@
+TEX=xelatex
+
+SRC =$(wildcard *.rst)
+SVG =$(wildcard content/*.svg)
+
+PDFS = $(SRC:.rst=.pdf)
+INCLUDED_PDF = $(SVG:.svg=.pdf)
+
+all: $(PDFS)
+
+BIBS =$(wildcard *.bib)
+
+SOURCES = $(sort $(wildcard resources/*.tex))
+
+null :=
+space := $(null) #
+comma := ,
+TEX_STYLE := $(subst $(space),$(comma),$(strip $(SOURCES)))
+TEX_BIBS := $(subst $(space),$(comma),$(strip $(BIBS)))
+
+PACK = $(shell sed -e 's/\#.*$$//' -e '/^$$/d' resources/modules)
+PACKAGES := $(subst $(space),$(comma),$(strip $(PACK)))
+
+tmp:
+ mkdir tmp
+
+# Image generation
+content/%.pdf: content/%.svg
+ inkscape -D -z --export-pdf=$@ $<
+
+# Generate the latex file from rst
+tmp/%.tex: %.rst $(INCLUDED_PDF) $(SOURCES)| tmp
+ $$(command -v rst2latex rst2latex.py | head -n 1) --no-section-subtitles --table-style=borderless --use-latex-citations --use-latex-docinfo --documentclass=article --documentoption=12pt,A4,table --syntax-highlight=short --stylesheet=$(PACKAGES),$(TEX_STYLE) $< $@
+ sed -i -e 's/continued on next page/suite sur la page suivante/;s|^%$$||' $@
+ sed -i -e 's/admonition-/admonition/g' $@
+
+# Generate each pdf with latex
+tmp/%.pdf: tmp/%.tex $(BIBS) | tmp
+ $(TEX) -output-directory tmp $<
+ #bibtex tmp/$*.aux && $(TEX) -output-directory tmp $< || echo "no bib"
+ while grep 'Rerun to get ' tmp/$*.log ; do $(TEX) -output-directory tmp $< ; done
+
+# Put the pdf in the right place
+%.pdf: tmp/%.pdf | tmp
+ cp $< $@
+
+clean:
+ rm -r tmp
diff --git a/model_3/example.rst b/model_3/example.rst
new file mode 100755
index 0000000..c071180
--- /dev/null
+++ b/model_3/example.rst
@@ -0,0 +1,165 @@
+.. -*- mode: rst -*-
+.. -*- coding: utf-8 -*-
+
+
+.. role:: latex(raw)
+ :format: latex
+
+.. role:: level
+.. role:: star
+
+.. default-role:: latex
+
+.. raw:: latex
+
+
+ \setstretch{1.4}
+ %\definecolor{orangeColor}{RGB}{255, 165, 0}
+
+ % Espacement entre chaque note de marge
+ \setlength{\notesep}{1.3cm}
+
+ \renewcommand{\labelitemi}{}
+
+
+.. role:: smallcaps
+.. role:: smallemph
+
+.. |EDD| replace:: :smallcaps:`EDD`
+.. |ISO9001| replace:: :smallcaps:`ISO9001`
+.. |PDF| replace:: :smallcaps:`PDF`
+
+.. |ITIL| replace:: :smallcaps:`ITIL`
+
+.. |tuxicon| replace:: `\renewcommand{\labelitemi}{\faLinux}`
+.. |phoneicon| replace:: `\renewcommand{\labelitemi}{\faPhone}`
+.. |mailicon| replace:: `\renewcommand{\labelitemi}{\faEnvelope}`
+.. |puzzle| replace:: `\renewcommand{\labelitemi}{\faPuzzlePiece}`
+.. |noicon| replace:: `\renewcommand{\labelitemi}{}`
+.. |checkicon| replace:: `\renewcommand{\labelitemi}{\faCheck}`
+.. |coffeeicon| replace:: `\renewcommand{\labelitemi}{\faCoffee}`
+.. |lambdaicon| replace:: `\renewcommand{\labelitemi}{$\lambda$}`
+
+=============
+Martin Durand
+=============
+
+------------------
+Créateur de talent
+------------------
+
+.. sidebar:: Informations
+
+ * 17 allée des cerisiers
+ * 75001 Paris |phoneicon|
+ * 01 23 45 67 89 |mailicon|
+ * email@example |noicon|
+ * 01/02/1980
+ * Permis B
+
+.. sidebar:: Compétences
+
+ .. class:: checklist
+
+ * Conception
+ * Ésprit de synthèse
+ * Écoute |noicon|
+ * \
+
+.. sidebar:: Niveaux
+
+ Autre
+
+ :star:`4.5`
+
+ Anglais
+
+ :level:`5`
+
+ Bureautique
+
+ :level:`3`
+
+
+
+Expériences
+===========
+
+`\renewcommand{\labelitemi}{$\bullet$}`
+
+:Actuellement:
+
+ **Poste actuel** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][4-7]`
+
+ - :latex:`\lipsum[1-3][1]`
+ - :latex:`\lipsum[1-3][2]`
+ - :latex:`\lipsum[1-3][3]`
+
+
+:2011 — 2018:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][5-10]`
+
+ :latex:`\lipsum[4-7][5-10]`
+
+:2010 — 2011:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][10-15]`
+
+
+:2008 — 2010:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][15-21]`
+
+
+Réalisations
+============
+
+Description
+-----------
+
+:latex:`\lipsum[4-7][10-15]`
+
+:latex:`\lipsum[4-7][15-20]`
+
+Description
+-----------
+
+:latex:`\lipsum[7-10][10-15]`
+
+:latex:`\lipsum[7-10][15-20]`
+
+
+Formations
+==========
+
+:Année:
+
+ **Niveau M1** — *Université de Paris*
+
+
+:Année:
+
+ **Licence** — *Université de Paris*
+
+ Mention
+
+
+:Année:
+
+ **Baccalauréat Scientifique** — *Lycée* – Ville
+
+ Spécialité
+
+.. raw:: latex
+
+ \vspace{1cm}
+ \center\pgfornament[color=sidecolor,width=1cm]{3}
diff --git a/model_3/resources/00_colors.tex b/model_3/resources/00_colors.tex
new file mode 100755
index 0000000..29e2c8c
--- /dev/null
+++ b/model_3/resources/00_colors.tex
@@ -0,0 +1,11 @@
+\usepackage{xcolor}
+
+% Couleur utilisée pour le bandeau
+%\definecolor{backsidecolor}{RGB}{233,223,214}
+
+% Couleur utilisée pour les éléments du bandeau
+\definecolor{sidecolor}{RGB}{101,114,131}
+
+% Couleur utilisée pour le texte du bandeau
+%\definecolor{textsidecolor}{RGB}{0,100,0}
+
diff --git a/model_3/resources/00_preamble.tex b/model_3/resources/00_preamble.tex
new file mode 100755
index 0000000..c498ca9
--- /dev/null
+++ b/model_3/resources/00_preamble.tex
@@ -0,0 +1,29 @@
+\usepackage{calc}
+
+\usepackage[a4paper,
+ top=1.2cm, bottom=1.0cm, inner=0.8cm, outer=0.8cm]{geometry}
+\setlength{\topskip}{0mm}
+\setlength{\footskip}{12mm}
+
+
+\usepackage{fontspec}
+\setmainfont{Quicksand-Light}[
+ Path=../fonts/,
+ BoldFont = Quicksand-Medium]
+
+\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
+
diff --git a/model_3/resources/10_fonts.tex b/model_3/resources/10_fonts.tex
new file mode 100755
index 0000000..480f148
--- /dev/null
+++ b/model_3/resources/10_fonts.tex
@@ -0,0 +1,12 @@
+\newfontfamily\EBGaramond{EB Garamond}[
+ Mapping=tex-text,
+ Ligatures={Common, Required, Contextual}
+]
+\newfontfamily\EBLigatures{EB Garamond}[
+ Mapping=tex-text,
+ Ligatures={Common, Required, Contextual, Historic}
+]
+\newfontfamily\LibertineFont[Mapping=tex-text]{Linux Libertine O}
+\newfontfamily\CaviarDreamsFont[Path=../fonts/, Mapping=tex-text]{CaviarDreams}
+\newfontfamily\CaviarDreamsBoldFont[Path=../fonts/, Mapping=tex-text]{CaviarDreams_Bold}
+
diff --git a/model_3/resources/10_language.tex b/model_3/resources/10_language.tex
new file mode 100755
index 0000000..7cc0990
--- /dev/null
+++ b/model_3/resources/10_language.tex
@@ -0,0 +1,8 @@
+\RequirePackage[french]{babel}
+
+%\frenchbsetup{ItemLabeli=\color{fondetsection}\ding{251}}
+
+\selectlanguage{french}
+\frenchspacing
+\FrenchFootnotes
+
diff --git a/model_3/resources/10_levels.tex b/model_3/resources/10_levels.tex
new file mode 100755
index 0000000..7660b1d
--- /dev/null
+++ b/model_3/resources/10_levels.tex
@@ -0,0 +1,73 @@
+\newcommand{\DUrolelevel}[1]{%
+ \resizebox{\linewidth}{!}{%
+ \begin{tikzpicture}
+ \draw (0,0) -- (5,0);
+ \fill(#1,-.1) rectangle ($ (#1,0) + (0.1, .1) $);
+ \end{tikzpicture}
+ }
+}
+
+\ifdefinedcolor{sidecolor}{%
+ \colorlet{patterncolor}{sidecolor}
+}{%
+ \colorlet{patterncolor}{black}
+}
+
+\ifdefinedcolor{backsidecolor}{%
+ \colorlet{emptycolor}{backsidecolor}
+}{%
+ \colorlet{emptycolor}{white}
+}
+
+\usetikzlibrary{shapes.geometric,calc}
+\newcommand\starScore[2]{
+\pgfmathsetmacro\pgfxa{#1+1}
+\tikzstyle{scorestars}=[star, star points=5, star point ratio=2.25, draw,inner sep=0.15em,anchor=outer point 3]
+\begin{tikzpicture}[baseline]
+ \foreach \i in {1,...,#2} {
+ \pgfmathparse{(\i<=#1?"patterncolor":"emptycolor")}
+ \edef\starcolor{\pgfmathresult}
+ \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor] {};
+ }
+ \pgfmathparse{(#1>int(#1)?int(#1+1):0}
+ \let\partstar=\pgfmathresult
+ \ifnum\partstar>0
+ \pgfmathsetmacro\starpart{#1-(int(#1))}
+ \path [clip] ($(star\partstar.outer point 3)!(star\partstar.outer point 2)!(star\partstar.outer point 4)$) rectangle
+ ($(star\partstar.outer point 2 |- star\partstar.outer point 1)!\starpart!(star\partstar.outer point 1 -| star\partstar.outer point 5)$);
+ \fill (\partstar*1em,0) node[scorestars,fill=patterncolor] {};
+ \fi
+
+,\end{tikzpicture}
+}
+
+
+\newcommand\roundscore[2]{
+\pgfmathsetmacro\pgfxa{#1+1}
+\tikzstyle{scorestars}=[circle, draw, inner sep=0.15em,anchor=west]
+\begin{tikzpicture}[baseline]
+ \foreach \i in {1,...,#2} {
+ \pgfmathparse{(\i<=#1?"blue!70":"lightgray")}
+ \edef\starcolor{\pgfmathresult}
+ \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor] {};
+ }
+ \pgfmathparse{(#1>int(#1)?int(#1+1):0}
+ \let\partstar=\pgfmathresult
+ \ifnum\partstar>0
+ \pgfmathsetmacro\starpart{#1-(int(#1))}
+ \path [clip] (star\partstar.north west) rectangle
+ ($(star\partstar.south west)!\starpart!(star\partstar.south east)$);
+ \fill (\partstar*1em,0) node[scorestars,fill=blue!70] {};
+ \fi,
+
+\end{tikzpicture}
+}
+
+\newcommand{\DUrolestar}[1]{%
+ \resizebox{\linewidth}{!}{%
+ \starScore{#1}{5}
+ }
+}
+
+
+
diff --git a/model_3/resources/10_lists.tex b/model_3/resources/10_lists.tex
new file mode 100755
index 0000000..b87845a
--- /dev/null
+++ b/model_3/resources/10_lists.tex
@@ -0,0 +1,17 @@
+\usepackage{fontawesome}
+
+\newenvironment{DUCLASSdiamondlist}{\renewcommand{\labelitemi}{$\diamond$}}{}
+\newenvironment{DUCLASSastlist}{\renewcommand{\labelitemi}{$\ast$}}{}
+\newenvironment{DUCLASScdotlist}{\renewcommand{\labelitemi}{$\cdot$}}{}
+\newenvironment{DUCLASSbulletlist}{\renewcommand{\labelitemi}{$\bullet$}}{}
+\newenvironment{DUCLASSchecklist}{\renewcommand{\labelitemi}{\faCheck}}{}
+\newenvironment{DUCLASSnonelist}{\renewcommand{\labelitemi}{}}{}
+
+\renewcommand{\labelitemi}{$\bullet$}
+\renewcommand{\labelitemii}{$\cdot$}
+\renewcommand{\labelitemiii}{$\diamond$}
+\renewcommand{\labelitemiv}{$\ast$}
+
+% Réduit l'indentation pour les éléments des listes
+\usepackage{enumitem}
+\setlist[itemize,1]{leftmargin=.0cm}
diff --git a/model_3/resources/10_nowidows.tex b/model_3/resources/10_nowidows.tex
new file mode 100755
index 0000000..3b96931
--- /dev/null
+++ b/model_3/resources/10_nowidows.tex
@@ -0,0 +1,2 @@
+\widowpenalty=1000
+\clubpenalty=500
diff --git a/model_3/resources/10_title_style.tex b/model_3/resources/10_title_style.tex
new file mode 100755
index 0000000..3c92a33
--- /dev/null
+++ b/model_3/resources/10_title_style.tex
@@ -0,0 +1,66 @@
+\usepackage{titlesec}
+
+
+%\providecommand{\DUdocumentsubtitle}[1]{%
+% \begin{flushright}{\Huge#1}\end{flushright}%
+%}
+
+\providecommand*{\DUdocumentsubtitle}[1]{%
+ \Large
+ \CaviarDreamsFont\selectfont
+ \color{black}
+ \begin{flushright}
+ #1
+ \end{flushright}
+}
+
+\makeatletter
+
+\usepackage{mdframed}
+\def\@maketitle{%
+
+ \begin{mdframed}[
+ topline=false,
+ leftline=false,
+ rightline=false,
+ innertopmargin=1cm,
+ innerbottommargin=1cm
+ ]
+ \textcolor{sidecolor}{\fontsize{1.2cm}{2cm}\EBLigatures\selectfont \@title}
+ \end{mdframed}
+}
+\makeatother
+
+
+\newcommand{\periodafter}[1]{#1.}
+
+% Titre de niveau 0
+\titleformat{\section}
+ {\EBLigatures\selectfont\em\LARGE}
+ {\thesection}
+ {0em}
+ {\textcolor{sidecolor}}
+ [{\vspace{1cm}}]
+
+% Titre de niveau 1
+\titleformat{\subsection}
+ {\CaviarDreamsFont\selectfont\Large}
+ {\thesection}
+ {0em}
+ {}
+ []
+
+% Titre de niveau 2
+\titleformat{\subsubsection}
+ {\large}
+ {\thesubsection}
+ {}
+ {\textcolor{black!69}}
+
+% Titre de niveau 3
+\titleformat{\subsubsubsection}
+ {\bfseries\normalsize}
+ {\thesubsubsection}
+ {2em}
+ {}
+ {}
diff --git a/model_3/resources/90_ref.tex b/model_3/resources/90_ref.tex
new file mode 100755
index 0000000..1883060
--- /dev/null
+++ b/model_3/resources/90_ref.tex
@@ -0,0 +1,35 @@
+\usepackage[
+ pdfencoding=auto,
+ linkbordercolor={0.5 0 0},
+ citebordercolor={0 0 0.5},
+ urlbordercolor=sidecolor,
+ pdfborderstyle={/S/U/W 1}
+]{hyperref}
+
+% Remove the underline for the footnotes
+\providecommand*{\DUfootnotemark}[3]{%
+ \hypersetup{pdfborderstyle={/W 0}}%
+ \raisebox{1em}{\hypertarget{#1}{}}%
+ \hyperlink{#2}{\textsuperscript{#3}}%
+ \hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
+
+\providecommand{\DUfootnotetext}[4]{%
+ \begingroup%
+ \renewcommand{\thefootnote}{%
+ \protect\hypersetup{pdfborderstyle={/W 0}}%
+ \protect\raisebox{1em}{\protect\hypertarget{#1}{}}%
+ \protect\hyperlink{#2}{#3}
+ \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+ }%
+ \footnotetext{#4}%
+ \endgroup%
+}
+
+\let\tableofcontentsWithoutRefMarks\tableofcontents
+
+\renewcommand{\tableofcontents}{%
+ \protect\hypersetup{pdfborderstyle={/W 0}}%
+ \tableofcontentsWithoutRefMarks
+ \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
diff --git a/model_3/resources/99_sidebar.tex b/model_3/resources/99_sidebar.tex
new file mode 100755
index 0000000..d9fe38e
--- /dev/null
+++ b/model_3/resources/99_sidebar.tex
@@ -0,0 +1,43 @@
+\newlength{\notesep}
+
+% Une commande dédiée pour les notes de marge
+\setlength{\columnsep}{1cm}
+\columnratio{0.71}
+
+\ifdefinedcolor{backsidecolor}{%
+ \backgroundcolor{c[1]}{backsidecolor}
+}{}
+
+\setlength{\columnseprule}{0.2pt}
+
+\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
+\let\endchangemargin=\endlist
+
+\newcommand{\DUsidebar}[1]{%
+ \switchcolumn[1]
+ \begin{changemargin}{0.5cm}{0.0cm}
+ \small
+ \ifdefinedcolor{textsidecolor}{\color{textsidecolor}}{}
+ #1
+ \end{changemargin}
+ \vspace{\notesep}
+ \switchcolumn
+}
+
+\newcommand{\DUtitletitle}[1]{%
+ \begin{CaviarDreamsFont}%
+ \textbf\selectfont\color{sidecolor}{\uppercase{#1}}%
+ \end{CaviarDreamsFont}%
+ }
+
+\AtEndDocument{%
+ \flushpage
+ \end{paracol}
+}
+
+\let\oldtitle\maketitle
+\renewcommand{\maketitle}{%
+ \oldtitle
+ \thispagestyle{fancy}
+ \begin{paracol}{2}%
+}
diff --git a/model_3/resources/header_footer.tex b/model_3/resources/header_footer.tex
new file mode 100755
index 0000000..5a97a15
--- /dev/null
+++ b/model_3/resources/header_footer.tex
@@ -0,0 +1,15 @@
+\RequirePackage{fancyhdr}
+
+\fancyhf{}
+\pagestyle{fancy}
+
+\renewcommand{\headrule}{
+ \hspace{- 0.9cm}
+ \color{sidecolor}\rule{\paperwidth + 1cm}{0.5 cm}
+}
+
+\renewcommand{\footrule}{
+ \hspace{- 0.9cm}
+ \color{sidecolor}\rule{\paperwidth + 1cm}{0.5 cm}
+}
+
diff --git a/model_3/resources/modules b/model_3/resources/modules
new file mode 100755
index 0000000..ed4db20
--- /dev/null
+++ b/model_3/resources/modules
@@ -0,0 +1,13 @@
+tikz
+parskip # Ne pas indenter la premiere ligne d'un paragraphe
+setspace
+
+# Polices mathematiques.
+amsmath
+amsfonts
+amssymb
+
+DUsmallcaps
+pgfornament
+paracol
+lipsum
diff --git a/model_4/Makefile b/model_4/Makefile
new file mode 100755
index 0000000..ae2f58e
--- /dev/null
+++ b/model_4/Makefile
@@ -0,0 +1,50 @@
+TEX=xelatex
+SOURCE=.
+
+SRC =$(wildcard *.rst)
+SVG =$(wildcard content/*.svg)
+
+PDFS = $(SRC:.rst=.pdf)
+INCLUDED_PDF = $(SVG:.svg=.pdf)
+
+all: $(PDFS)
+
+BIBS =$(wildcard *.bib)
+
+DIR = $(sort $(shell find $(SOURCE) -name '*.rst' -print))
+SOURCES = $(sort $(wildcard resources/*.tex))
+
+null :=
+space := $(null) #
+comma := ,
+TEX_STYLE := $(subst $(space),$(comma),$(strip $(SOURCES)))
+TEX_BIBS := $(subst $(space),$(comma),$(strip $(BIBS)))
+
+PACK = $(shell sed -e 's/\#.*$$//' -e '/^$$/d' resources/modules)
+PACKAGES := $(subst $(space),$(comma),$(strip $(PACK)))
+
+tmp:
+ mkdir tmp
+
+# Image generation
+content/%.pdf: content/%.svg
+ inkscape -D -z --export-pdf=$@ $<
+
+# Generate the latex file from rst
+tmp/%.tex: %.rst $(INCLUDED_PDF) $(SOURCES)| tmp
+ $$(command -v rst2latex rst2latex.py | head -n 1) --no-section-subtitles --table-style=borderless --use-latex-citations --use-latex-docinfo --documentclass=article --documentoption=12pt,A4,table --syntax-highlight=short --stylesheet=$(PACKAGES),$(TEX_STYLE) $< $@
+ sed -i -e 's/continued on next page/suite sur la page suivante/;s|^%$$||' $@
+ sed -i -e 's/admonition-/admonition/g' $@
+
+# Generate each pdf with latex
+tmp/%.pdf: tmp/%.tex $(BIBS) | tmp
+ $(TEX) -output-directory tmp $<
+ #bibtex tmp/$*.aux && $(TEX) -output-directory tmp $< || echo "no bib"
+ while grep 'Rerun to get ' tmp/$*.log ; do $(TEX) -output-directory tmp $< ; done
+
+# Put the pdf in the right place
+%.pdf: tmp/%.pdf | tmp
+ cp $< $@
+
+clean:
+ rm -r tmp
diff --git a/model_4/example.rst b/model_4/example.rst
new file mode 100755
index 0000000..0c123e9
--- /dev/null
+++ b/model_4/example.rst
@@ -0,0 +1,165 @@
+.. -*- mode: rst -*-
+.. -*- coding: utf-8 -*-
+
+
+.. role:: latex(raw)
+ :format: latex
+
+.. role:: level
+.. role:: star
+
+.. default-role:: latex
+
+.. raw:: latex
+
+
+ \setstretch{1.4}
+ %\definecolor{orangeColor}{RGB}{255, 165, 0}
+
+ % Espacement entre chaque note de marge
+ \setlength{\notesep}{1.3cm}
+
+ \renewcommand{\labelitemi}{}
+
+
+.. role:: smallcaps
+.. role:: smallemph
+
+.. |EDD| replace:: :smallcaps:`EDD`
+.. |ISO9001| replace:: :smallcaps:`ISO9001`
+.. |PDF| replace:: :smallcaps:`PDF`
+
+.. |ITIL| replace:: :smallcaps:`ITIL`
+
+.. |tuxicon| replace:: `\renewcommand{\labelitemi}{\faLinux}`
+.. |phoneicon| replace:: `\renewcommand{\labelitemi}{\faPhone}`
+.. |mailicon| replace:: `\renewcommand{\labelitemi}{\faEnvelope}`
+.. |puzzle| replace:: `\renewcommand{\labelitemi}{\faPuzzlePiece}`
+.. |noicon| replace:: `\renewcommand{\labelitemi}{}`
+.. |checkicon| replace:: `\renewcommand{\labelitemi}{\faCheck}`
+.. |coffeeicon| replace:: `\renewcommand{\labelitemi}{\faCoffee}`
+.. |lambdaicon| replace:: `\renewcommand{\labelitemi}{$\lambda$}`
+
+=============
+Martin Durand
+=============
+
+------------------
+Créateur de talent
+------------------
+
+.. sidebar:: Informations
+
+ * 17 allée des cerisiers
+ * 75001 Paris |phoneicon|
+ * 01 23 45 67 89 |mailicon|
+ * email@example |noicon|
+ * 01/02/1980
+ * Permis B
+
+.. sidebar:: Compétences
+
+ .. class:: checklist
+
+ * Conception
+ * Ésprit de synthèse
+ * Écoute |noicon|
+ * \
+
+.. sidebar:: Niveaux
+
+ Autre
+
+ :star:`4.5`
+
+ Anglais
+
+ :level:`5`
+
+ Bureautique
+
+ :level:`3`
+
+
+
+Expériences
+===========
+
+`\renewcommand{\labelitemi}{$\bullet$}`
+
+:Actuellement:
+
+ **Poste actuel** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][4-7]`
+
+ - :latex:`\lipsum[1-3][1]`
+ - :latex:`\lipsum[1-3][2]`
+ - :latex:`\lipsum[1-3][3]`
+
+
+:2011 — 2018:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][5-10]`
+
+ :latex:`\lipsum[4-7][5-10]`
+
+:2010 — 2011:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][10-15]`
+
+
+:2008 — 2010:
+
+ **Poste occupé** — *Entreprise* — Adresse.
+
+ :latex:`\lipsum[1-3][15-21]`
+
+
+Réalisations
+============
+
+Description
+-----------
+
+:latex:`\lipsum[4-7][10-15]`
+
+:latex:`\lipsum[4-7][15-20]`
+
+Description
+-----------
+
+:latex:`\lipsum[7-10][10-15]`
+
+:latex:`\lipsum[7-10][15-20]`
+
+
+Formations
+==========
+
+:Année:
+
+ **Niveau M1** — *Université de Paris*
+
+
+:Année:
+
+ **Licence** — *Université de Paris*
+
+ Mention
+
+
+:Année:
+
+ **Baccalauréat Scientifique** — *Lycée* – Ville
+
+ Spécialité
+
+.. raw:: latex
+
+ \vspace{1cm}
+ \center\pgfornament[color=backsidecolor,width=1cm]{3}
diff --git a/model_4/resources/00_colors.tex b/model_4/resources/00_colors.tex
new file mode 100755
index 0000000..3810655
--- /dev/null
+++ b/model_4/resources/00_colors.tex
@@ -0,0 +1,11 @@
+\usepackage{xcolor}
+
+% Couleur utilisée pour le bandeau
+\definecolor{backsidecolor}{RGB}{235,235,235}
+
+% Couleur utilisée pour les éléments du bandeau
+%\definecolor{sidecolor}{RGB}{36,63,96}
+%\definecolor{sidecolor}{RGB}{101,114,131}
+
+% Couleur utilisée pour le texte du bandeau
+\definecolor{textsidecolor}{RGB}{0,0,0}
diff --git a/model_4/resources/00_preamble.tex b/model_4/resources/00_preamble.tex
new file mode 100755
index 0000000..d9c52c5
--- /dev/null
+++ b/model_4/resources/00_preamble.tex
@@ -0,0 +1,29 @@
+\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{EB Garamond}
+
+% 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
diff --git a/model_4/resources/10_fonts.tex b/model_4/resources/10_fonts.tex
new file mode 100755
index 0000000..2f53033
--- /dev/null
+++ b/model_4/resources/10_fonts.tex
@@ -0,0 +1,12 @@
+\newfontfamily\EBGaramond{EB Garamond}[
+ Mapping=tex-text,
+ Ligatures={Common, Required, Contextual}
+]
+\newfontfamily\EBLigatures{EB Garamond}[
+ Mapping=tex-text,
+ Ligatures={Common, Required, Contextual, Historic}
+]
+\newfontfamily\LibertineFont[Mapping=tex-text]{Linux Libertine O}
+\newfontfamily\CaviarDreamsFont[Path=../fonts/, Mapping=tex-text]{CaviarDreams}
+\newfontfamily\CaviarDreamsBoldFont[Path=../fonts/, Mapping=tex-text]{CaviarDreams_Bold}
+\newfontfamily\BeatrixFont[Path=../fonts/,Mapping=tex-text]{Beatrix}
diff --git a/model_4/resources/10_language.tex b/model_4/resources/10_language.tex
new file mode 100755
index 0000000..7cc0990
--- /dev/null
+++ b/model_4/resources/10_language.tex
@@ -0,0 +1,8 @@
+\RequirePackage[french]{babel}
+
+%\frenchbsetup{ItemLabeli=\color{fondetsection}\ding{251}}
+
+\selectlanguage{french}
+\frenchspacing
+\FrenchFootnotes
+
diff --git a/model_4/resources/10_levels.tex b/model_4/resources/10_levels.tex
new file mode 100755
index 0000000..d2c8682
--- /dev/null
+++ b/model_4/resources/10_levels.tex
@@ -0,0 +1,73 @@
+\newcommand{\DUrolelevel}[1]{%
+ \resizebox{\linewidth}{!}{%
+ \begin{tikzpicture}
+ \draw (0,0) -- (5,0);
+ \fill(#1,-.1) rectangle ($ (#1,0) + (0.1, .1) $);
+ \end{tikzpicture}
+ }
+}
+
+\ifdefinedcolor{sidecolor}{%
+ \colorlet{patterncolor}{sidecolor}
+}{%
+ \colorlet{patterncolor}{textsidecolor}
+}
+
+\ifdefinedcolor{backsidecolor}{%
+ \colorlet{emptycolor}{backsidecolor}
+}{%
+ \colorlet{emptycolor}{white}
+}
+
+\usetikzlibrary{shapes.geometric,calc}
+\newcommand\starScore[2]{
+\pgfmathsetmacro\pgfxa{#1+1}
+\tikzstyle{scorestars}=[star, star points=5, star point ratio=2.25, draw,inner sep=0.15em,anchor=outer point 3]
+\begin{tikzpicture}[baseline]
+ \foreach \i in {1,...,#2} {
+ \pgfmathparse{(\i<=#1?"patterncolor":"emptycolor")}
+ \edef\starcolor{\pgfmathresult}
+ \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor] {};
+ }
+ \pgfmathparse{(#1>int(#1)?int(#1+1):0}
+ \let\partstar=\pgfmathresult
+ \ifnum\partstar>0
+ \pgfmathsetmacro\starpart{#1-(int(#1))}
+ \path [clip] ($(star\partstar.outer point 3)!(star\partstar.outer point 2)!(star\partstar.outer point 4)$) rectangle
+ ($(star\partstar.outer point 2 |- star\partstar.outer point 1)!\starpart!(star\partstar.outer point 1 -| star\partstar.outer point 5)$);
+ \fill (\partstar*1em,0) node[scorestars,fill=patterncolor] {};
+ \fi
+
+,\end{tikzpicture}
+}
+
+
+\newcommand\roundscore[2]{
+\pgfmathsetmacro\pgfxa{#1+1}
+\tikzstyle{scorestars}=[circle, draw, inner sep=0.15em,anchor=west]
+\begin{tikzpicture}[baseline]
+ \foreach \i in {1,...,#2} {
+ \pgfmathparse{(\i<=#1?"blue!70":"lightgray")}
+ \edef\starcolor{\pgfmathresult}
+ \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor] {};
+ }
+ \pgfmathparse{(#1>int(#1)?int(#1+1):0}
+ \let\partstar=\pgfmathresult
+ \ifnum\partstar>0
+ \pgfmathsetmacro\starpart{#1-(int(#1))}
+ \path [clip] (star\partstar.north west) rectangle
+ ($(star\partstar.south west)!\starpart!(star\partstar.south east)$);
+ \fill (\partstar*1em,0) node[scorestars,fill=blue!70] {};
+ \fi,
+
+\end{tikzpicture}
+}
+
+\newcommand{\DUrolestar}[1]{%
+ \resizebox{\linewidth}{!}{%
+ \starScore{#1}{5}
+ }
+}
+
+
+
diff --git a/model_4/resources/10_lists.tex b/model_4/resources/10_lists.tex
new file mode 100755
index 0000000..b87845a
--- /dev/null
+++ b/model_4/resources/10_lists.tex
@@ -0,0 +1,17 @@
+\usepackage{fontawesome}
+
+\newenvironment{DUCLASSdiamondlist}{\renewcommand{\labelitemi}{$\diamond$}}{}
+\newenvironment{DUCLASSastlist}{\renewcommand{\labelitemi}{$\ast$}}{}
+\newenvironment{DUCLASScdotlist}{\renewcommand{\labelitemi}{$\cdot$}}{}
+\newenvironment{DUCLASSbulletlist}{\renewcommand{\labelitemi}{$\bullet$}}{}
+\newenvironment{DUCLASSchecklist}{\renewcommand{\labelitemi}{\faCheck}}{}
+\newenvironment{DUCLASSnonelist}{\renewcommand{\labelitemi}{}}{}
+
+\renewcommand{\labelitemi}{$\bullet$}
+\renewcommand{\labelitemii}{$\cdot$}
+\renewcommand{\labelitemiii}{$\diamond$}
+\renewcommand{\labelitemiv}{$\ast$}
+
+% Réduit l'indentation pour les éléments des listes
+\usepackage{enumitem}
+\setlist[itemize,1]{leftmargin=.0cm}
diff --git a/model_4/resources/10_nowidows.tex b/model_4/resources/10_nowidows.tex
new file mode 100755
index 0000000..3b96931
--- /dev/null
+++ b/model_4/resources/10_nowidows.tex
@@ -0,0 +1,2 @@
+\widowpenalty=1000
+\clubpenalty=500
diff --git a/model_4/resources/10_title_style.tex b/model_4/resources/10_title_style.tex
new file mode 100755
index 0000000..5adc081
--- /dev/null
+++ b/model_4/resources/10_title_style.tex
@@ -0,0 +1,81 @@
+\usepackage{titlesec}
+
+\providecommand{\DUdocumentsubtitle}[1]{%
+ \color{black}
+ \CaviarDreamsFont\selectfont
+ \Large
+ \raggedleft
+ #1
+ %\end{flushright}
+ %\switchcolumn[1]* % Synchronise the column at this position
+}
+
+\makeatletter
+
+\def\@maketitle{%
+ \switchcolumn[1]%
+ \vspace*{1cm}
+ \raggedright
+ \fontsize{1.2cm}{2cm}\BeatrixFont\selectfont \@title
+}
+\makeatother
+
+% Liste des couleurs utilisées pour les titres.
+% La définition colorsDim doit correspondre au nombre de couleurs présentes, et
+% est utilisée pour cycler quand on atteind la dernière couleur.
+\def\colorsDim{7}
+\colorlet{title[0]}{orange}
+\colorlet{title[1]}{purple}
+\colorlet{title[2]}{green!60!black}
+\colorlet{title[3]}{blue!50!black}
+\colorlet{title[4]}{teal!50!black}
+\colorlet{title[5]}{cyan!50!black}
+\colorlet{title[6]}{brown!50!black}
+
+\newcounter{mySection}
+% Nécessaire pour que le compteur soit persistent avec le package paracol.
+\globalcounter{mySection}
+
+% Calcul d'un modulo.
+\def\truncdiv#1#2{((#1-(#2-1)/2)/#2)}
+\def\moduloop#1#2{(#1-\truncdiv{#1}{#2}*#2)}
+\def\modulo#1#2{\number\numexpr\moduloop{#1}{#2}\relax}
+
+% Création d'une section colorée.
+% La commande attend deux paramètres, la couleur, et le texte à afficher,
+% le texte correspond à celui de la section et est fourni par titlesec en
+% paramètre de manière implicite.
+\newcommand{\colorsection}[3]{%
+ \centering
+ \colorbox{#1}{%
+ \parbox{#2}{%
+ \centering\textcolor{white}{#3}}%
+ }
+}
+
+% Titre de niveau 1
+\titleformat{\section}[block]
+ {\CaviarDreamsFont\selectfont\Large}
+ {\thesection}
+ {0em}
+ {\centering}
+
+% Titre de niveau 2
+\titleformat{\subsection}
+ {\large}
+ {\thesubsection}
+ {}
+ {}
+
+% Titre de niveau 3
+\titleformat{\subsubsection}
+ {\bfseries\normalsize}
+ {\thesubsubsection}
+ {2em}
+ {}
+ {}
+
+\newcommand{\DUtitletitle}[1]{%
+ \stepcounter{mySection}\colorsection{title[\modulo{\the\value{mySection}}{\colorsDim}]}{\linewidth}{#1}
+ }
+
diff --git a/model_4/resources/90_ref.tex b/model_4/resources/90_ref.tex
new file mode 100755
index 0000000..96edd79
--- /dev/null
+++ b/model_4/resources/90_ref.tex
@@ -0,0 +1,35 @@
+\usepackage[
+ pdfencoding=auto,
+ linkbordercolor={0.5 0 0},
+ citebordercolor={0 0 0.5},
+ urlbordercolor=textsidecolor,
+ pdfborderstyle={/S/U/W 1}
+]{hyperref}
+
+% Remove the underline for the footnotes
+\providecommand*{\DUfootnotemark}[3]{%
+ \hypersetup{pdfborderstyle={/W 0}}%
+ \raisebox{1em}{\hypertarget{#1}{}}%
+ \hyperlink{#2}{\textsuperscript{#3}}%
+ \hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
+
+\providecommand{\DUfootnotetext}[4]{%
+ \begingroup%
+ \renewcommand{\thefootnote}{%
+ \protect\hypersetup{pdfborderstyle={/W 0}}%
+ \protect\raisebox{1em}{\protect\hypertarget{#1}{}}%
+ \protect\hyperlink{#2}{#3}
+ \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+ }%
+ \footnotetext{#4}%
+ \endgroup%
+}
+
+\let\tableofcontentsWithoutRefMarks\tableofcontents
+
+\renewcommand{\tableofcontents}{%
+ \protect\hypersetup{pdfborderstyle={/W 0}}%
+ \tableofcontentsWithoutRefMarks
+ \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
diff --git a/model_4/resources/99_sidebar.tex b/model_4/resources/99_sidebar.tex
new file mode 100755
index 0000000..3ee6dca
--- /dev/null
+++ b/model_4/resources/99_sidebar.tex
@@ -0,0 +1,33 @@
+\newlength{\notesep}
+
+\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
+\let\endchangemargin=\endlist
+
+% Une commande dédiée pour les notes de marge
+\setlength{\columnsep}{0.25cm}
+\columnratio{0.28}
+
+\ifdefinedcolor{backsidecolor}{%
+ \backgroundcolor{c[1]}{backsidecolor}
+}{}
+
+\newcommand{\DUsidebar}[1]{%
+ \switchcolumn[0]
+ \begin{changemargin}{0.7cm}{1.5cm}
+ \LibertineFont\selectfont
+ \ifdefinedcolor{textsidecolor}{\color{textsidecolor}}{}
+ #1
+ \end{changemargin}
+ \vspace{\notesep}
+ \switchcolumn
+ \ifdefinedcolor{textsidecolor}{\color{black}}{}
+}
+
+\AtBeginDocument{%
+ \begin{paracol}{2}
+}
+\AtEndDocument{%
+ % Make the column go to the bottom
+ \flushpage
+ \end{paracol}
+}
diff --git a/model_4/resources/modules b/model_4/resources/modules
new file mode 100755
index 0000000..ed4db20
--- /dev/null
+++ b/model_4/resources/modules
@@ -0,0 +1,13 @@
+tikz
+parskip # Ne pas indenter la premiere ligne d'un paragraphe
+setspace
+
+# Polices mathematiques.
+amsmath
+amsfonts
+amssymb
+
+DUsmallcaps
+pgfornament
+paracol
+lipsum