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
86
87
88
89
90
91
92
|
%% For a wider writing width.
\newcommand\Wider[2][3em]{%
\makebox[\linewidth][c]{%
\begin{minipage}{\dimexpr\textwidth+#1\relax}
\raggedright#2
\end{minipage}%
}%
}
%% TiKZ
\usepackage{tikz}
\usetikzlibrary{graphs}
\usetikzlibrary{positioning}
\tikzset{ bbox/.style={
rectangle,
minimum width=2.5cm,
rounded corners=2mm,
very thick,draw=blue!50,
top color=white,
bottom color=blue!20 } }
\tikzset{ rbox/.style={
rectangle,
dotted,
minimum width=2.5cm,
rounded corners=2mm,
very thick,draw=red!50!black!50,
top color=white,
bottom color=red!50!black!20 } }
\tikzset{ gbox/.style={
rectangle,
minimum width=2.5cm,
very thick,
draw=green!50!black!50,
top color=white,
bottom color=green!50!black!20 } }
%% For the make demo
\newcommand{\makedemoslide}[2] {
\begin{frame}{#2}
\begin{center}\includegraphics[width=0.8\linewidth]{#1}\end{center}\par
\vspace{-8mm} \footnotesize \textcolor{green!50!black}{Green
boxes} with sharp corners: \emph{source} files (hand
written).\\\textcolor{blue}{Blue boxes} with rounded corners:
\emph{built} files (automatically
generated),\par \hspace{1cm}built files are shown in the Makefile
that contains their build instructions.
\end{frame}
}
%% Nodes in make-demo graph
\tikzset{node-terminal/.style={
rectangle,
very thick,
draw=blue!50,
text centered,
top color=white,
minimum size=6mm,
text width=2.1cm,
rounded corners=3mm,
bottom color=blue!20,
font=\ttfamily}}
\tikzset{node-nonterminal/.style={
rectangle,
very thick,
text centered,
top color=white,
text width=2.1cm,
minimum size=6mm,
draw=green!50!black!50,
bottom color=green!80!black!50,
font=\ttfamily}}
\tikzset{node-makefile/.style={
thick,
rectangle,
anchor=south,
minimum width=2.6cm,
minimum height=5cm,
draw=green!50!black!50,
rounded corners=2mm,
fill=black!10!green!12!white,
}}
\tikzset{node-point/.style={
circle,
black!50,
inner sep=0pt,
minimum size=0pt,
fill=white}}
|