diff options
Diffstat (limited to 'model_8/resources')
-rw-r--r-- | model_8/resources/10-admonitions.tex | 30 | ||||
-rw-r--r-- | model_8/resources/10-fonts.tex | 4 | ||||
-rw-r--r-- | model_8/resources/10-table.tex | 28 | ||||
-rwxr-xr-x | model_8/resources/10-title_style.tex | 21 | ||||
-rw-r--r-- | model_8/resources/10_preamble.tex | 8 | ||||
-rwxr-xr-x | model_8/resources/modules | 6 |
6 files changed, 97 insertions, 0 deletions
diff --git a/model_8/resources/10-admonitions.tex b/model_8/resources/10-admonitions.tex new file mode 100644 index 0000000..acba12f --- /dev/null +++ b/model_8/resources/10-admonitions.tex @@ -0,0 +1,30 @@ +\usepackage{DUStyle} + + +\usepackage{fontspec} +\RequirePackage{fontawesome} +% Style pour les avertissements +\createIconifiedDUStyle{warning}{orangeColor}{\faExclamation}{CaviarDreamsFont} +% Style pour les notes +\createIconifiedDUStyle{note}{lightBlueColor}{\faComment}{CaviarDreamsFont} +% Style pour les exercices +\createIconifiedDUStyle{exercice}{greenColor}{\faPencil}{CaviarDreamsFont} + +\newenvironment{DUCLASScode}{% + \begin{mdframed}[topline=false,% + bottomline=false,% + rightline=false,% + leftline=true,% + linecolor=black,% + linewidth=3pt,% + skipabove=0.5cm,% + backgroundcolor=black!5] + %\small +}{% + \end{mdframed} +} + + +\newcommand{\DUtitletitle}[1]{% + {\begin{flushleft}\normalsize\CaviarDreamsFont{#1}\end{flushleft}} +} diff --git a/model_8/resources/10-fonts.tex b/model_8/resources/10-fonts.tex new file mode 100644 index 0000000..604d01c --- /dev/null +++ b/model_8/resources/10-fonts.tex @@ -0,0 +1,4 @@ +\usepackage{fontspec} +\setmainfont[Mapping=tex-text]{Linux Libertine O} + +\input{\commonPath/10_fonts.tex} diff --git a/model_8/resources/10-table.tex b/model_8/resources/10-table.tex new file mode 100644 index 0000000..cfa2f62 --- /dev/null +++ b/model_8/resources/10-table.tex @@ -0,0 +1,28 @@ +\let\oldbf\textbf +\def\newbf{\color{white}\oldbf} + +\colorlet{tableHeader}{red!80!black} +\rowcolors{1}{lightgray!10}{lightgray!50} + +% The tables using the mode are represented like this : +% +% \toprule +% \textbf{% +% … +% } & \textbf{% +% … +% } \\ +% \midrule +% \endfirsthead +% +% Here, we are updating the toprule command to set the color in the background, +% and define the text color. +% +% In the midrule command, we restore the command `textbf` to the previous +% definition. + +% Update the color for the header row +\def\toprule{\rowcolor{tableHeader}\global\def\textbf{\newbf}} +% Restore the previous color after the header +\def\midrule{\global\def\textbf{\oldbf}} +\def\bottomrule{} diff --git a/model_8/resources/10-title_style.tex b/model_8/resources/10-title_style.tex new file mode 100755 index 0000000..55c1bf3 --- /dev/null +++ b/model_8/resources/10-title_style.tex @@ -0,0 +1,21 @@ +\usepackage{titlesec}
+
+\titleformat{\section}[display]% shape
+ {\huge}% format
+ {
+ \makebox[0pt][l]{%
+ \raisebox{-70pt}[0pt][10pt]{%
+ \textcolor{black!30}{\fontsize{136pt}{0pt}\selectfont\thesection}%
+ }
+ }
+ }
+ {0pt}
+ {\CaviarDreamsFont\Huge}
+\titlespacing*{\section}{0pt}{*0}{1cm}
+
+% Titre de niveau 2
+\titleformat{\subsection}[block]
+ {\bfseries\Large}
+ {\llap{\hspace*{-1.3cm}\huge\textcolor{red!75!black}\thesubsection\hfill}}
+ {0em}
+ {}
diff --git a/model_8/resources/10_preamble.tex b/model_8/resources/10_preamble.tex new file mode 100644 index 0000000..75dc080 --- /dev/null +++ b/model_8/resources/10_preamble.tex @@ -0,0 +1,8 @@ + +\usepackage[a4paper, top=1.5cm, bottom=1.5cm, outer=5cm, inner=2cm, marginparwidth=3.5cm, marginparsep=0.9cm]{geometry} + +\patchcmd{\quote}{\rightmargin}{\leftmargin 0em \rightmargin}{}{} + +\input{\commonPath/10_language.tex} +\input{\commonPath/10_lists.tex} +\input{\commonPath/10_nowidows.tex} diff --git a/model_8/resources/modules b/model_8/resources/modules new file mode 100755 index 0000000..318ca26 --- /dev/null +++ b/model_8/resources/modules @@ -0,0 +1,6 @@ +parskip # Ne pas indenter la premiere ligne d'un paragraphe
+marginfix
+
+DUpygments-tango
+DUsidebar
+lipsum
|