aboutsummaryrefslogtreecommitdiff
path: root/model_3/resources
diff options
context:
space:
mode:
Diffstat (limited to 'model_3/resources')
-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
12 files changed, 324 insertions, 0 deletions
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