This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
dev1.sty
85 lines (76 loc) · 2.07 KB
/
dev1.sty
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
\newcommand{\seance}[2]{\def\unitnb{#1}\def\unitname{#2}}
\date{2020 -- 2021}
\siglecours{DEV1 -- ENVL}
\libellecours{Laboratoire d'environnement système}
\libelledocument{TD \unitnb{} -- \unitname}
\sigleprof{}
\newcommand{\exergue}[2]{
\vspace{-1em}
\hfill
\begin{minipage}{.9\textwidth}
\begin{flushright}
{\color{colmain}\og{}\textit{#1}\fg{} -- #2}
\end{flushright}
\end{minipage}
\vspace{-1em}
}
\usepackage{environ}
\NewEnviron{theorie}[1]{%
\medskip
\begin{coltbox}{#1}
\BODY
\end{coltbox}
\bigskip
}
% \newtcolorbox{postit}[1][]{%
% enhanced, colback=yellow!10!white,
% boxrule=1pt, colframe=yellow!50!white, drop lifted shadow,
% attach boxed title to top left={yshift=-\tcboxedtitleheight},
% title={\color{yellow!80!black}\Large\texttt{#1}},
% boxed title style={
% size=small, colback=white,
% rounded corners, colframe=yellow!50!white,
% leftrule=0pt, bottomrule=1pt, rightrule=1pt, toprule=0pt
% }
% }
\environbodyname\faqBODY
\NewEnviron{faq}{%
\medskip
\begin{postit}{FAQ}
\faqBODY
\end{postit}
\bigskip
}
% \newtcolorbox{greenpostit}[1][]{%
% enhanced, colback=green!10!white,
% boxrule=1pt, colframe=green!50!white, drop lifted shadow,
% attach boxed title to top left={yshift=-\tcboxedtitleheight},
% title={\color{green!80!black}\Large\texttt{#1}},
% boxed title style={
% size=small, colback=white,
% rounded corners, colframe=green!50!white,
% leftrule=0pt, bottomrule=1pt, rightrule=1pt, toprule=0pt
% }
% }
\environbodyname\todoBODY
\NewEnviron{todo}{%
\medskip
\begin{postit}[green]{TODO}
\todoBODY
\end{postit}
\bigskip
}
% \DeclareDocumentCommand \kbd { m }{%
% \tcbox[on line, size=fbox, boxsep=0pt,%
% top=2pt, bottom=2pt, left=2pt, right=2pt,%
% colback=black!10!white,colframe=black!50!white]{%
% \small\texttt{\color{black!90!white}#1}%
% }%
% }%
\newnumbered[Expérience]{Experience}
\titleformat{\subsubsection}[hang]{\normalfont\large\sffamily\bfseries\color{colmain}}%
{%
\protect\makebox[0pt][r]{\thesubsubsection\hspace{7px}}
}%
{-5px}
{#1}