From 57850b2a7d50ee37b7b623921081b9060dd778eb Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Tue, 4 Jan 2022 14:27:05 +0100 Subject: New template --- model_6/resources/00_colors.tex | 13 +++++++++ model_6/resources/00_length.tex | 5 ++++ model_6/resources/00_preamble.tex | 28 ++++++++++++++++++ model_6/resources/10_container.tex | 8 ++++++ model_6/resources/10_fonts.tex | 14 +++++++++ model_6/resources/10_title_style.tex | 53 +++++++++++++++++++++++++++++++++++ model_6/resources/99_begin.tex | 7 +++++ model_6/resources/CaviarDreams.ttf | Bin 0 -> 58864 bytes model_6/resources/modules | 12 ++++++++ 9 files changed, 140 insertions(+) create mode 100755 model_6/resources/00_colors.tex create mode 100755 model_6/resources/00_length.tex create mode 100755 model_6/resources/00_preamble.tex create mode 100644 model_6/resources/10_container.tex create mode 100755 model_6/resources/10_fonts.tex create mode 100755 model_6/resources/10_title_style.tex create mode 100755 model_6/resources/99_begin.tex create mode 100644 model_6/resources/CaviarDreams.ttf create mode 100755 model_6/resources/modules (limited to 'model_6/resources') 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 Binary files /dev/null and b/model_6/resources/CaviarDreams.ttf 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 -- cgit v1.2.3