summaryrefslogtreecommitdiff
path: root/resources/admonitions.tex
diff options
context:
space:
mode:
Diffstat (limited to 'resources/admonitions.tex')
-rw-r--r--resources/admonitions.tex36
1 files changed, 36 insertions, 0 deletions
diff --git a/resources/admonitions.tex b/resources/admonitions.tex
new file mode 100644
index 0000000..5ab78ca
--- /dev/null
+++ b/resources/admonitions.tex
@@ -0,0 +1,36 @@
+\usepackage{DUStyle}
+\definecolor{orangeColor}{RGB}{255, 165, 0}
+\definecolor{redColor}{RGB}{211, 38, 38}
+\definecolor{blueColor}{RGB}{38, 38, 211}
+\definecolor{lightBlueColor}{RGB}{0, 89, 255}
+\definecolor{greenColor}{RGB}{38, 211, 38}
+
+
+\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}
+
+\let\oldttfamily\ttfamily
+
+\newenvironment{DUCLASScode}{%
+ \begin{mdframed}[topline=false,%
+ bottomline=false,%
+ rightline=false,%
+ leftline=false,%
+ linecolor=black,%
+ linewidth=3pt,%
+ skipabove=0.5cm,%
+ backgroundcolor=black!5]
+ %\small
+ %\let\ttfamily\DejaVuSansMono
+}{%
+ \let\ttfamily\oldttfamily
+ \end{mdframed}
+}
+
+