aboutsummaryrefslogtreecommitdiff
path: root/model_5/resources
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2020-12-01 21:32:20 +0100
committerSébastien Dailly <sebastien@chimrod.com>2020-12-03 17:33:35 +0100
commitb6bebdc03066e513efbbb5ff9424681bbcceff0c (patch)
treead58ccc072efbfdeabe4d9b4b20b79acc8fd19b3 /model_5/resources
parent02b663b21099cdb62cef7b363cae46a56d7aae5f (diff)
Added a new model, and did some factorisation
Diffstat (limited to 'model_5/resources')
-rwxr-xr-xmodel_5/resources/00_colors.tex13
-rwxr-xr-xmodel_5/resources/00_length.tex5
-rwxr-xr-xmodel_5/resources/00_preamble.tex25
-rwxr-xr-xmodel_5/resources/10_fonts.tex13
-rwxr-xr-xmodel_5/resources/10_title_style.tex60
-rwxr-xr-xmodel_5/resources/99_begin.tex7
-rwxr-xr-xmodel_5/resources/modules13
7 files changed, 136 insertions, 0 deletions
diff --git a/model_5/resources/00_colors.tex b/model_5/resources/00_colors.tex
new file mode 100755
index 0000000..3afc69c
--- /dev/null
+++ b/model_5/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_5/resources/00_length.tex b/model_5/resources/00_length.tex
new file mode 100755
index 0000000..3e0ee3d
--- /dev/null
+++ b/model_5/resources/00_length.tex
@@ -0,0 +1,5 @@
+% Distance de la colonne
+\setlength{\columnsep}{0.25cm}
+
+% Occupation de la colonne
+\columnratio{0.25}
diff --git a/model_5/resources/00_preamble.tex b/model_5/resources/00_preamble.tex
new file mode 100755
index 0000000..eb1b7a5
--- /dev/null
+++ b/model_5/resources/00_preamble.tex
@@ -0,0 +1,25 @@
+\usepackage{calc}
+
+\usepackage[a4paper, top=0.5cm, bottom=0.5cm, outer=0.5cm, inner=0.5cm]{geometry}
+\pagestyle{empty}
+\pagenumbering{gobble}
+
+\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
+
+\input{../common/10_language.tex}
+\input{../common/10_lists.tex}
+\input{../common/10_nowidows.tex}
+\input{../common/10_levels.tex}
+\input{../common/10_icons.tex}
+\input{../common/99_sidebar.tex}
diff --git a/model_5/resources/10_fonts.tex b/model_5/resources/10_fonts.tex
new file mode 100755
index 0000000..befadd5
--- /dev/null
+++ b/model_5/resources/10_fonts.tex
@@ -0,0 +1,13 @@
+\usepackage{fontspec}
+\setmainfont{Linux Libertine O}
+
+\newcommand{\DUtitletitle}[1]{%
+ {\begin{center}\textbf{\textsc{#1}}\end{center}}
+ }
+
+\setmonofont{Latin Modern Mono Light}
+\newfontfamily\TitleFont
+ {EB Garamond}
+ [ Mapping=tex-text ]
+
+\newfontfamily\AltFont[Mapping=tex-text]{Linux Libertine O}
diff --git a/model_5/resources/10_title_style.tex b/model_5/resources/10_title_style.tex
new file mode 100755
index 0000000..eb62129
--- /dev/null
+++ b/model_5/resources/10_title_style.tex
@@ -0,0 +1,60 @@
+\usepackage[explicit]{titlesec}
+\usepackage{pgfplots}
+\pgfplotsset{compat=newest}
+
+\providecommand{\DUdocumentsubtitle}[1]{%
+ %\begin{nthcolumn}{1}
+ \color{black}
+ \em
+ \TitleFont\selectfont
+ \Large
+ #1
+ %\end{nthcolumn}
+}
+
+\makeatletter
+
+\def\@maketitle{%
+ \vspace*{1cm}
+ \begin{nthcolumn*}{0}%
+ \textcolor{altColor}{%
+ \huge \@title
+ }
+ \end{nthcolumn*}
+}
+\makeatother
+
+\newcommand\SecTitle[1]{%
+\begin{tikzpicture}
+
+ \node (A) at (0,0)
+ {\Large{\textsf{[ #1 ]}}};
+
+ \draw [line width=0.2mm]
+ (-7,0) -- (A.west);
+
+ \draw [line width=0.2mm]
+ (A.east) -- (7,0);
+\end{tikzpicture}}
+
+% Titre de niveau 1
+\titleformat{\section}
+ {\centering}
+ {\thesection}
+ {}
+ {\SecTitle{#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_5/resources/99_begin.tex b/model_5/resources/99_begin.tex
new file mode 100755
index 0000000..7b7a793
--- /dev/null
+++ b/model_5/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_5/resources/modules b/model_5/resources/modules
new file mode 100755
index 0000000..079c678
--- /dev/null
+++ b/model_5/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