aboutsummaryrefslogtreecommitdiff
path: root/model_7/resources
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2024-05-01 14:34:22 +0200
committerSébastien Dailly <sebastien@dailly.me>2024-05-01 14:34:22 +0200
commita5696db7113a3b1d7350775aecb280300a08031c (patch)
tree193cc7aa5bb2918e3818277ad5ff63ef6bfaf0fa /model_7/resources
parentc283c578db25effd1e52706dafe822c78aaa7607 (diff)
Added a new model
Diffstat (limited to 'model_7/resources')
-rwxr-xr-xmodel_7/resources/00_colors.tex15
-rwxr-xr-xmodel_7/resources/00_length.tex2
-rwxr-xr-xmodel_7/resources/00_preamble.tex25
-rw-r--r--model_7/resources/10_decoration.tex37
-rwxr-xr-xmodel_7/resources/10_fonts.tex29
-rw-r--r--model_7/resources/10_header_footer.tex23
-rwxr-xr-xmodel_7/resources/10_title_style.tex61
-rwxr-xr-xmodel_7/resources/99_begin.tex7
-rwxr-xr-xmodel_7/resources/modules15
9 files changed, 214 insertions, 0 deletions
diff --git a/model_7/resources/00_colors.tex b/model_7/resources/00_colors.tex
new file mode 100755
index 0000000..d34ba49
--- /dev/null
+++ b/model_7/resources/00_colors.tex
@@ -0,0 +1,15 @@
+\usepackage{xcolor}
+
+% Couleur utilisée pour le bandeau
+% Ne pas définir la couleur de fond de page pour permettre l¿ajout
+% des dessins
+%\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}{named}{lightgray}
diff --git a/model_7/resources/00_length.tex b/model_7/resources/00_length.tex
new file mode 100755
index 0000000..d5dc470
--- /dev/null
+++ b/model_7/resources/00_length.tex
@@ -0,0 +1,2 @@
+% Distance de la colonne
+%\setlength{\columnsep}{0.25cm}
diff --git a/model_7/resources/00_preamble.tex b/model_7/resources/00_preamble.tex
new file mode 100755
index 0000000..30c4fd3
--- /dev/null
+++ b/model_7/resources/00_preamble.tex
@@ -0,0 +1,25 @@
+\usepackage[a4paper, landscape, top=1.0cm, left=1.5cm, right=1.5cm, bottom=2.0cm]{geometry}
+%\pagestyle{empty}
+%\pagenumbering{arabic}
+\newcommand{\DUrolelatex}[1]{#1}
+
+\usepackage{tocloft}
+\renewcommand{\cfttoctitlefont}{\normalfont\Large\bfseries}% Remove \bfseries from ToC title
+\renewcommand{\cftsecfont}{\Garamond\selectfont\itshape}% Remove \bfseries from section titles in ToC
+\renewcommand{\cftsecpagefont}{\Garamond\selectfont}% Remove \bfseries from section titles' page in ToC
+
+% 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}
+
diff --git a/model_7/resources/10_decoration.tex b/model_7/resources/10_decoration.tex
new file mode 100644
index 0000000..b394599
--- /dev/null
+++ b/model_7/resources/10_decoration.tex
@@ -0,0 +1,37 @@
+% Add a decoration in the corner of each page
+% The image is selected using pdfornament, and is positionned using the margin
+% of the pages.
+
+\usepackage{tikz}
+\usepackage{eso-pic}
+\usepackage{pgfornament}
+\usepackage{tikzpagenodes}
+\usepackage{ifthen}
+\usetikzlibrary{positioning}
+
+% Apply a decoration over each page
+% Arguments
+% 1: the size of the decoration
+% 2: the distance to the page (not the text margin but the page itself
+% 3: the color
+\newcommand{\pageornament}[3]{%
+ \begin{tikzpicture}[remember picture, overlay]
+ \node[yshift=-#2,xshift=-#2, anchor=north east] at (current page.north east){%
+ \pgfornament[color=#3,width=#1,symmetry=v]{41}
+ };
+ \node[yshift=#2,xshift=-#2,anchor=south east] at (current page.south east){%
+ \pgfornament[color=#3,width=#1,symmetry=c]{61}};
+ \node[yshift=-#2,xshift=#2,anchor=north west] at (current page.north west){%
+
+ \pgfornament[color=#3,width=#1]{41}
+ };
+ \node[yshift=#2,xshift=#2,anchor=south west] at (current page.south west){%
+ \pgfornament[color=#3,width=#1,symmetry=h]{61}
+ };
+ \end{tikzpicture}
+}
+
+\AddToShipoutPictureBG{%
+ \pageornament{1.75cm}{0.5cm}{altColor}
+}
+
diff --git a/model_7/resources/10_fonts.tex b/model_7/resources/10_fonts.tex
new file mode 100755
index 0000000..bc2e3be
--- /dev/null
+++ b/model_7/resources/10_fonts.tex
@@ -0,0 +1,29 @@
+\usepackage{fontspec}
+\setmainfont{Lato Light}[
+ Ligatures={Required,Common,TeX},
+ BoldFont={Lato Bold},
+ ItalicFont={EB Garamond 12 Italic},
+ ItalicFeatures={
+ Ligatures={Required,Common,TeX,Rare},
+ RawFeature={+dlig,+clig}}
+]
+
+\newcommand{\DUtitletitle}[1]{%
+ {\begin{center}\textbf{\textsc{#1}}\end{center}}
+ }
+
+\setmonofont{Latin Modern Mono Light}
+
+\newfontfamily\Garamond{EB Garamond}[
+ Mapping=tex-text,
+ Ligatures={Required,Common,TeX,Rare},
+ RawFeature={+dlig,+clig}
+]
+
+% Variante de la police avec les caractères en capitales modifiés
+% Cette variante est utilisée pour les titres
+\newfontfamily\GaramondSwsh{EB Garamond}[
+ Mapping=tex-text,
+ Ligatures={Required,Common,TeX,Rare},
+ RawFeature={+dlig,+swsh,+calt}
+]
diff --git a/model_7/resources/10_header_footer.tex b/model_7/resources/10_header_footer.tex
new file mode 100644
index 0000000..e7d0534
--- /dev/null
+++ b/model_7/resources/10_header_footer.tex
@@ -0,0 +1,23 @@
+\usepackage{fancyhdr}
+
+\fancyhf{}
+\pagestyle{empty}
+
+%%% En-tete
+%%pages impaires
+%\fancyhead[LO]{\thedate}
+%
+%%pages paires
+%\fancyhead[RE]{\thedate}
+
+
+\renewcommand{\headrule}{
+}
+%%%Pieds de page
+%pages impaires
+%\fancyfoot[RO]{
+%{page \thepage}} % ici le num de page
+\fancyfoot[LO]{\Garamond\selectfont Page \thepage} % ici l'auteur
+%%pages paires
+%\fancyfoot[LE]{page \thepage} % ici le num de page
+\fancyfoot[RE]{\Garamond\selectfont Page \thepage} % ici l'auteur
diff --git a/model_7/resources/10_title_style.tex b/model_7/resources/10_title_style.tex
new file mode 100755
index 0000000..993b625
--- /dev/null
+++ b/model_7/resources/10_title_style.tex
@@ -0,0 +1,61 @@
+\usepackage[explicit]{titlesec}
+\usepackage{pgfplots}
+\pgfplotsset{compat=newest}
+
+\providecommand{\DUdocumentsubtitle}[1]{%
+ %\begin{nthcolumn}{1}
+ \color{black}
+ \em
+ \GaramondSwsh\selectfont
+ \Large
+ #1
+ %\end{nthcolumn}
+}
+
+\makeatletter
+
+\def\@maketitle{%
+ \vspace*{0.5cm}
+ \textcolor{altColor}{%
+ \Garamond\selectfont
+ \huge \@title
+ }
+ \vspace*{1.0cm}
+}
+\makeatother
+
+\newcommand\SecTitle[1]{%
+\begin{tikzpicture}
+
+ \node (A) at (0,0)
+ {\Large{\textit{#1 }}};
+ \node (B) at (5,0) {};
+ \node (C) at (-5,0) {};
+
+ % Change the color for the lines and apply the ornament
+ \draw [altColor, line width=0.2mm] (C) to (A.west);
+ \draw [altColor, line width=0.2mm] (A.east) to (B);
+\end{tikzpicture}}
+
+% Titre de niveau 1
+% On affiche le Swash sur les initiales ici
+\titleformat{\section}
+ {\centering}
+ {\thesection}
+ {}
+ {\SecTitle{\GaramondSwsh\selectfont{#1 }}}
+
+% Titre de niveau 2
+\titleformat{\subsection}
+ {\bf\centering}
+ {\thesubsection}
+ {}
+ {#1}
+
+% Titre de niveau 3
+\titleformat{\subsubsection}
+ {\bfseries\normalsize}
+ {\thesubsubsection}
+ {2em}
+ {}
+ {}
diff --git a/model_7/resources/99_begin.tex b/model_7/resources/99_begin.tex
new file mode 100755
index 0000000..5d9ca89
--- /dev/null
+++ b/model_7/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}{1}
+%}
+
diff --git a/model_7/resources/modules b/model_7/resources/modules
new file mode 100755
index 0000000..c7b9742
--- /dev/null
+++ b/model_7/resources/modules
@@ -0,0 +1,15 @@
+tikz
+parskip # Ne pas indenter la premiere ligne d'un paragraphe
+setspace
+
+# Polices mathematiques.
+amsmath
+amsfonts
+amssymb
+
+DUsmallcaps
+paracol
+lipsum
+DUcolumn
+Ducenter
+fontsize