-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.tex
79 lines (58 loc) · 2.15 KB
/
commands.tex
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
% Commands shared between most of the tutorial slides
% Homework deadlines
\newcommand{\hwVIIdeadline}{11. 5. 2023 - středeční cvičení, 19. 5. 2023 - čtvrteční cvičení}
\newcommand{\semIIdeadline}{19. 6. 2023 23:59 CET}
% Download icon and text with link relative to the root of the courseware site
\newcommand{\download}[1]{\hfill\faDownload\hspace{5pt}\href{https://cw.fel.cvut.cz/wiki/_media/courses/b4b36pdv/tutorials/#1}{\tt #1}\\[1.3em]}
% Draw eye icon
\newcommand{\see}[1]{\faEye\hspace{5pt}#1}
% Draw executable icon
\newcommand{\exe}[1]{\faPlay\hspace{5pt}#1}
\newcommand{\sep}{\hspace{10pt}/\hspace{10pt}}
\def\Ipe#1{\def\IPEfile{#1}\input{#1}}
% Draw pacman icon
\newcommand{\pacman}[1]{\tikz[baseline=.1em,scale=.6]{
\useasboundingbox (.02,0) rectangle (.6,.6);
\draw [fill=#1] (.3,.3) -- ++(25:.3) arc (+25:+335:.3) -- cycle;
}}
% Draw ghost icon
\newcommand{\ghost}[1]{\tikz[baseline=.1em,scale=.5]{
\draw [fill=#1] (0,0) -- (0,.5) arc (+180:0:.3) -- (.6,0) --
(.5,.15) -- (.4,0) -- (.3,.15) -- (.2,0) -- (.1,.15) -- cycle;
\coordinate (eye) at (360*rand:.03);
\foreach \x in {.17,.43}{
\fill[white] (\x,.5) circle[radius=.1];
\fill[black] (\x,.5) ++(eye) circle[radius=.05];
}
}}
\newcommand{\desc}[2]{
#1
\vspace{-0.6em}
\hfill\begin{minipage}{0.9\linewidth}
#2
\end{minipage}
\vspace{0.2em}
}
\newcommand{\redc}{\tikz\draw[red,fill=red] (0,0) circle (.5ex);}
\newcommand{\greenc}{\tikz\draw[green,fill=green] (0,0) circle (.5ex);}
% Default url for generating QR code with feedback form.
\newcommand{\defaultfeedbackurl}{https://forms.gle/yi7FWBEw3mxgnJ9P7}
% Generate frame with QR code to a feedback form.
\newcommand{\framefeedback}[1][\defaultfeedbackurl]{
\begin{frame}[standout]
\begin{minipage}{0.4\linewidth}
\begin{center}
\textbf{\LARGE Díky za pozornost!}
\end{center}
\vspace{3em}
\raggedleft\small Budeme rádi za Vaši\\zpětnou vazbu! $\rightarrow$
\end{minipage}
\hfill
\begin{minipage}{0.5\linewidth}
\vspace{4em}
\centering\qrcode[height=\linewidth]{#1}\\
\vspace{0.8em}
\url{#1}
\end{minipage}
\end{frame}
}