summaryrefslogtreecommitdiff
path: root/resources/admonitions.tex
blob: c53ab04b7b1cc5d531796ed775516f6526e994a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
\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}

\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}
}