From b6bebdc03066e513efbbb5ff9424681bbcceff0c Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Tue, 1 Dec 2020 21:32:20 +0100 Subject: Added a new model, and did some factorisation --- model_5/resources/00_colors.tex | 13 ++++++++ model_5/resources/00_length.tex | 5 +++ model_5/resources/00_preamble.tex | 25 +++++++++++++++ model_5/resources/10_fonts.tex | 13 ++++++++ model_5/resources/10_title_style.tex | 60 ++++++++++++++++++++++++++++++++++++ model_5/resources/99_begin.tex | 7 +++++ model_5/resources/modules | 13 ++++++++ 7 files changed, 136 insertions(+) create mode 100755 model_5/resources/00_colors.tex create mode 100755 model_5/resources/00_length.tex create mode 100755 model_5/resources/00_preamble.tex create mode 100755 model_5/resources/10_fonts.tex create mode 100755 model_5/resources/10_title_style.tex create mode 100755 model_5/resources/99_begin.tex create mode 100755 model_5/resources/modules (limited to 'model_5/resources') 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 -- cgit v1.2.3