aboutsummaryrefslogtreecommitdiff
path: root/model_6/resources
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2022-01-04 14:27:05 +0100
committerSébastien Dailly <sebastien@dailly.me>2022-01-04 14:27:05 +0100
commit57850b2a7d50ee37b7b623921081b9060dd778eb (patch)
treefccb39c8b6eb4289fd5f5b03547b8576a193305d /model_6/resources
parentbb2a0cec678b80b1ffad675d5f2bdf1982d603d6 (diff)
New template
Diffstat (limited to 'model_6/resources')
-rwxr-xr-xmodel_6/resources/00_colors.tex13
-rwxr-xr-xmodel_6/resources/00_length.tex5
-rwxr-xr-xmodel_6/resources/00_preamble.tex28
-rw-r--r--model_6/resources/10_container.tex8
-rwxr-xr-xmodel_6/resources/10_fonts.tex14
-rwxr-xr-xmodel_6/resources/10_title_style.tex53
-rwxr-xr-xmodel_6/resources/99_begin.tex7
-rw-r--r--model_6/resources/CaviarDreams.ttfbin0 -> 58864 bytes
-rwxr-xr-xmodel_6/resources/modules12
9 files changed, 140 insertions, 0 deletions
diff --git a/model_6/resources/00_colors.tex b/model_6/resources/00_colors.tex
new file mode 100755
index 0000000..3afc69c
--- /dev/null
+++ b/model_6/resources/00_colors.tex
@@ -0,0 +1,13 @@
+\usepackage{xcolor}
+
+% Couleur utilisée pour le bandeau
+\definecolor{backsidecolor}{RGB}{255,255,255}
+
+% 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}
+
+\definecolor{altColor}{HTML}{5e81ac}
diff --git a/model_6/resources/00_length.tex b/model_6/resources/00_length.tex
new file mode 100755
index 0000000..bcd66ae
--- /dev/null
+++ b/model_6/resources/00_length.tex
@@ -0,0 +1,5 @@
+% Distance de la colonne
+\setlength{\columnsep}{0.25cm}
+
+\newlength{\definitionWidth}
+\setlength{\definitionWidth}{3.0cm}
diff --git a/model_6/resources/00_preamble.tex b/model_6/resources/00_preamble.tex
new file mode 100755
index 0000000..e1450ec
--- /dev/null
+++ b/model_6/resources/00_preamble.tex
@@ -0,0 +1,28 @@
+\usepackage{calc}
+
+\usepackage[a4paper, top=0.5cm, bottom=0.5cm, outer=2.0cm, inner=2.0cm]{geometry}
+\pagestyle{empty}
+\pagenumbering{gobble}
+
+\newcommand{\DUrolelatex}[1]{#1}
+
+% Les listes de champs sont paramétrée pour faire un alignement à droite sur le
+% label, et un alignement à gauche sur la définition.
+\newenvironment{DUfieldlist}%
+ {\description[font=\normalfont
+ ,align=right
+ ,leftmargin=\definitionWidth
+ ,itemindent=0cm
+ ]}
+ {\enddescription}
+
+\makeatletter
+\newcommand{\ifdefinedcolor}[3]{%
+ \@ifundefinedcolor{#1}{#3}{#2}
+}
+\makeatother
+
+\input{../common/10_language.tex}
+\input{../common/10_lists.tex}
+\input{../common/10_nowidows.tex}
+\input{../common/10_levels.tex}
diff --git a/model_6/resources/10_container.tex b/model_6/resources/10_container.tex
new file mode 100644
index 0000000..a880a85
--- /dev/null
+++ b/model_6/resources/10_container.tex
@@ -0,0 +1,8 @@
+\newenvironment{DUCLASSheader}
+ { % renew the itemize command in order to apply a flushright to each elements
+ \let\olditemize\itemize%
+ \renewcommand\itemize{\olditemize\raggedleft\setlength\itemsep{0.0em}\small}%
+ % Create a minipage on the right
+ \begin{flushright}\begin{minipage}[t][0cm][b]{\linewidth}%
+ \raggedleft\em\color{gray}}
+ { \end{minipage}\end{flushright}}
diff --git a/model_6/resources/10_fonts.tex b/model_6/resources/10_fonts.tex
new file mode 100755
index 0000000..0dc179e
--- /dev/null
+++ b/model_6/resources/10_fonts.tex
@@ -0,0 +1,14 @@
+\usepackage{fontspec}
+\setmainfont[Mapping=tex-text]{EB Garamond}
+
+% Set the bold font as Linux Libertine as the EB Garamond miss some characters
+\newfontfamily\LibertineFont[Mapping=tex-text]{Linux Libertine O}
+\let\bf\textbf
+\renewcommand{\textbf}[1]{{\LibertineFont\selectfont\bf{#1}}}
+
+\setmonofont{Latin Modern Mono Light}
+
+\newfontfamily\TitleFont[Path=resources/, Mapping=tex-text]{CaviarDreams}
+\newfontfamily\CaviarDreamsFont[Path=resources/, Mapping=tex-text]{CaviarDreams}
+
+%\newfontfamily\AltFont[Mapping=tex-text]{Linux Libertine O}
diff --git a/model_6/resources/10_title_style.tex b/model_6/resources/10_title_style.tex
new file mode 100755
index 0000000..05036f4
--- /dev/null
+++ b/model_6/resources/10_title_style.tex
@@ -0,0 +1,53 @@
+\usepackage[explicit]{titlesec}
+\usepackage{pgfplots}
+\pgfplotsset{compat=newest}
+
+\providecommand{\DUdocumentsubtitle}[1]{%
+ \color{gray}
+ \normalfont
+ \em
+ \huge
+ #1
+}
+
+\makeatletter
+
+\def\@maketitle{%
+ \vspace*{1cm}
+ \fontsize{1.2cm}{2cm}
+ \TitleFont\selectfont \@title
+}
+\makeatother
+
+\newcommand\SecTitle[1]{%
+\begin{tikzpicture}
+
+ \node (A) at (0,0)
+ {\Large{\CaviarDreamsFont{#1}}};
+
+ \draw [line width=1.5mm,color=altColor]
+ (- \definitionWidth - 1.5cm,0) -- (A.west);
+
+\end{tikzpicture}}
+
+% Titre de niveau 1
+\titleformat{\section}
+ {}
+ {\thesection}
+ {}
+ {\SecTitle{\textcolor{altColor}{#1}}}
+
+% Titre de niveau 2
+\titleformat{\subsection}
+ {\large}
+ {\thesubsection}
+ {}
+ {\textcolor{altColor}{\Large \bf {#1}}}
+
+% Titre de niveau 3
+\titleformat{\subsubsection}
+ {\bfseries\normalsize}
+ {\thesubsubsection}
+ {2em}
+ {}
+ {}
diff --git a/model_6/resources/99_begin.tex b/model_6/resources/99_begin.tex
new file mode 100755
index 0000000..4867a82
--- /dev/null
+++ b/model_6/resources/99_begin.tex
@@ -0,0 +1,7 @@
+\input{../common/90_ref.tex}
+
+%% On charge les colonnes dès le début du document.
+%\AtBeginDocument{%
+% \begin{paracol}{2}
+%}
+
diff --git a/model_6/resources/CaviarDreams.ttf b/model_6/resources/CaviarDreams.ttf
new file mode 100644
index 0000000..4ba4279
--- /dev/null
+++ b/model_6/resources/CaviarDreams.ttf
Binary files differ
diff --git a/model_6/resources/modules b/model_6/resources/modules
new file mode 100755
index 0000000..7ed0581
--- /dev/null
+++ b/model_6/resources/modules
@@ -0,0 +1,12 @@
+tikz
+parskip # Ne pas indenter la premiere ligne d'un paragraphe
+setspace
+
+# Polices mathematiques.
+amsmath
+amsfonts
+amssymb
+
+DUsmallcaps
+pgfornament
+lipsum