aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rwxr-xr-xcommon/10_icons.tex14
-rwxr-xr-xcommon/10_language.tex8
-rwxr-xr-xcommon/10_levels.tex91
-rwxr-xr-xcommon/10_lists.tex17
-rwxr-xr-xcommon/10_nowidows.tex2
-rwxr-xr-xcommon/90_ref.tex35
-rwxr-xr-xcommon/99_sidebar.tex28
-rw-r--r--common/Parmenides.jpgbin0 -> 20207 bytes
8 files changed, 195 insertions, 0 deletions
diff --git a/common/10_icons.tex b/common/10_icons.tex
new file mode 100755
index 0000000..c5ea5b4
--- /dev/null
+++ b/common/10_icons.tex
@@ -0,0 +1,14 @@
+\usepackage{tikz}
+\usepackage{xcolor}
+
+% Background color for the frame.
+\definecolor{DUStyle@lightGray}{RGB}{245, 245, 245}
+
+% arg1 : The dot content
+\newcommand{\iconBox}[1]{%
+ \tikz[baseline]{%
+ \node[circle,fill=altColor,inner sep=3pt,anchor=base] at (0, 0)%
+ {\color{backsidecolor}#1};
+ }%
+}
+
diff --git a/common/10_language.tex b/common/10_language.tex
new file mode 100755
index 0000000..861d1a3
--- /dev/null
+++ b/common/10_language.tex
@@ -0,0 +1,8 @@
+\RequirePackage[french]{babel}
+
+%\frenchbsetup{ItemLabeli=\color{fondetsection}\ding{251}}
+
+\selectlanguage{french}
+\frenchspacing
+\FrenchFootnotes
+
diff --git a/common/10_levels.tex b/common/10_levels.tex
new file mode 100755
index 0000000..1cafe83
--- /dev/null
+++ b/common/10_levels.tex
@@ -0,0 +1,91 @@
+\ifdefinedcolor{sidecolor}{%
+ \colorlet{patterncolor}{sidecolor}
+}{%
+ \colorlet{patterncolor}{textsidecolor}
+}
+
+\ifdefinedcolor{altColor}{%
+ \colorlet{patterncolor}{altColor}
+}{}
+
+
+\ifdefinedcolor{backsidecolor}{%
+ \colorlet{emptycolor}{backsidecolor}
+}{%
+ \colorlet{emptycolor}{white}
+}
+
+\newcommand{\DUrolelevel}[1]{%
+ \resizebox{\linewidth}{!}{%
+ \begin{tikzpicture}
+ \draw (0,0) -- (5,0);
+ \fill(#1,-.1) rectangle ($ (#1,0) + (0.1, .1) $);
+ \end{tikzpicture}
+ }
+}
+
+\newcommand{\DUrolelevelbox}[1]{%
+ \resizebox{\linewidth}{0.5cm}{%
+ \begin{tikzpicture}
+ \draw (0,-0.1) rectangle (5,0.1);
+ \fill [fill=patterncolor](0, -.1) rectangle (#1,0.1);
+ \end{tikzpicture}
+ }
+}
+
+
+\usetikzlibrary{shapes.geometric,calc}
+\newcommand\starScore[2]{
+\pgfmathsetmacro\pgfxa{#1+1}
+\tikzstyle{scorestars}=
+ [ star
+ , star points=5
+ , star point ratio=2.25
+ , draw
+ , inner sep=0.15em
+ , anchor=outer point 3]
+\begin{tikzpicture}[baseline]
+ \foreach \i in {1,...,#2} {
+ \pgfmathparse{(\i<=#1?"patterncolor":"emptycolor")}
+ \edef\starcolor{\pgfmathresult}
+ \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor] {};
+ }
+ \pgfmathparse{(#1>int(#1)?int(#1+1):0}
+ \let\partstar=\pgfmathresult
+ \ifnum\partstar>0
+ \pgfmathsetmacro\starpart{#1-(int(#1))}
+ \path [clip] ($(star\partstar.outer point 3)!(star\partstar.outer point 2)!(star\partstar.outer point 4)$) rectangle
+ ($(star\partstar.outer point 2 |- star\partstar.outer point 1)!\starpart!(star\partstar.outer point 1 -| star\partstar.outer point 5)$);
+ \fill (\partstar*1em,0) node[scorestars,fill=patterncolor] {};
+ \fi
+
+,\end{tikzpicture}
+}
+
+
+\newcommand\roundscore[2]{
+\pgfmathsetmacro\pgfxa{#1+1}
+\tikzstyle{scorestars}=[circle, draw, inner sep=0.15em,anchor=west]
+\begin{tikzpicture}[baseline]
+ \foreach \i in {1,...,#2} {
+ \pgfmathparse{(\i<=#1?"blue!70":"lightgray")}
+ \edef\starcolor{\pgfmathresult}
+ \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor] {};
+ }
+ \pgfmathparse{(#1>int(#1)?int(#1+1):0}
+ \let\partstar=\pgfmathresult
+ \ifnum\partstar>0
+ \pgfmathsetmacro\starpart{#1-(int(#1))}
+ \path [clip] (star\partstar.north west) rectangle
+ ($(star\partstar.south west)!\starpart!(star\partstar.south east)$);
+ \fill (\partstar*1em,0) node[scorestars,fill=blue!70] {};
+ \fi,
+
+\end{tikzpicture}
+}
+
+\newcommand{\DUrolestar}[1]{%
+ \resizebox{\linewidth}{!}{%
+ \starScore{#1}{5}
+ }
+}
diff --git a/common/10_lists.tex b/common/10_lists.tex
new file mode 100755
index 0000000..b87845a
--- /dev/null
+++ b/common/10_lists.tex
@@ -0,0 +1,17 @@
+\usepackage{fontawesome}
+
+\newenvironment{DUCLASSdiamondlist}{\renewcommand{\labelitemi}{$\diamond$}}{}
+\newenvironment{DUCLASSastlist}{\renewcommand{\labelitemi}{$\ast$}}{}
+\newenvironment{DUCLASScdotlist}{\renewcommand{\labelitemi}{$\cdot$}}{}
+\newenvironment{DUCLASSbulletlist}{\renewcommand{\labelitemi}{$\bullet$}}{}
+\newenvironment{DUCLASSchecklist}{\renewcommand{\labelitemi}{\faCheck}}{}
+\newenvironment{DUCLASSnonelist}{\renewcommand{\labelitemi}{}}{}
+
+\renewcommand{\labelitemi}{$\bullet$}
+\renewcommand{\labelitemii}{$\cdot$}
+\renewcommand{\labelitemiii}{$\diamond$}
+\renewcommand{\labelitemiv}{$\ast$}
+
+% Réduit l'indentation pour les éléments des listes
+\usepackage{enumitem}
+\setlist[itemize,1]{leftmargin=.0cm}
diff --git a/common/10_nowidows.tex b/common/10_nowidows.tex
new file mode 100755
index 0000000..e04cb18
--- /dev/null
+++ b/common/10_nowidows.tex
@@ -0,0 +1,2 @@
+\widowpenalty=1000
+\clubpenalty=1000
diff --git a/common/90_ref.tex b/common/90_ref.tex
new file mode 100755
index 0000000..96edd79
--- /dev/null
+++ b/common/90_ref.tex
@@ -0,0 +1,35 @@
+\usepackage[
+ pdfencoding=auto,
+ linkbordercolor={0.5 0 0},
+ citebordercolor={0 0 0.5},
+ urlbordercolor=textsidecolor,
+ pdfborderstyle={/S/U/W 1}
+]{hyperref}
+
+% Remove the underline for the footnotes
+\providecommand*{\DUfootnotemark}[3]{%
+ \hypersetup{pdfborderstyle={/W 0}}%
+ \raisebox{1em}{\hypertarget{#1}{}}%
+ \hyperlink{#2}{\textsuperscript{#3}}%
+ \hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
+
+\providecommand{\DUfootnotetext}[4]{%
+ \begingroup%
+ \renewcommand{\thefootnote}{%
+ \protect\hypersetup{pdfborderstyle={/W 0}}%
+ \protect\raisebox{1em}{\protect\hypertarget{#1}{}}%
+ \protect\hyperlink{#2}{#3}
+ \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+ }%
+ \footnotetext{#4}%
+ \endgroup%
+}
+
+\let\tableofcontentsWithoutRefMarks\tableofcontents
+
+\renewcommand{\tableofcontents}{%
+ \protect\hypersetup{pdfborderstyle={/W 0}}%
+ \tableofcontentsWithoutRefMarks
+ \protect\hypersetup{pdfborderstyle={/S/U/W 1}}%
+}
diff --git a/common/99_sidebar.tex b/common/99_sidebar.tex
new file mode 100755
index 0000000..ab599a0
--- /dev/null
+++ b/common/99_sidebar.tex
@@ -0,0 +1,28 @@
+\newlength{\notesep}
+
+\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
+\let\endchangemargin=\endlist
+
+\ifdefinedcolor{backsidecolor}{%
+ \backgroundcolor{c[0]}{backsidecolor}
+}{}
+
+% Une commande dédiée pour les notes de marge
+\newcommand{\DUsidebar}[1]{%
+ \switchcolumn[0]
+ \begin{changemargin}{0.7cm}{0.7cm}
+ % Sélectionne la police alternative
+ \AltFont\selectfont
+ \ifdefinedcolor{textsidecolor}{\color{textsidecolor}}{}
+ #1
+ \end{changemargin}
+ \vspace{\notesep}
+ \switchcolumn
+ \ifdefinedcolor{textsidecolor}{\color{black}}{}
+}
+
+\AtEndDocument{%
+ % Make the column go to the bottom
+ \flushpage
+ \end{paracol}
+}
diff --git a/common/Parmenides.jpg b/common/Parmenides.jpg
new file mode 100644
index 0000000..e9e64fa
--- /dev/null
+++ b/common/Parmenides.jpg
Binary files differ