Commit ff8c7c40 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Fixed a spacing issue and changed 'newcommand' to '\def' where possible.

parent 55b52593
......@@ -5,7 +5,6 @@
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground} % Layer order
\newcommand{\grouppadding}{0.5}
\newcommand{\group}[5]{
\begin{pgfonlayer}{background}
% Left top corner
......@@ -63,7 +62,7 @@
\end{figure}
}
\newcommand{\driverdiagram}{
\def\driverdiagram{
\begin{figure}[H]
\center
\architecture{
......@@ -86,7 +85,7 @@
\end{figure}
}
\newcommand{\multipledriversdiagram}{
\def\multipledriversdiagram{
\begin{figure}[H]
\center
\begin{tikzpicture}[node distance=6em]
......@@ -154,7 +153,7 @@
\end{figure}
}
\newcommand{\examplediagram}{
\def\examplediagram{
\begin{figure}[h!]
\center
\architecture{
......@@ -198,7 +197,7 @@
\end{figure}
}
\newcommand{\examplefigureone}{
\def\examplefigureone{
\begin{figure}[h]
\center
% TODO: draw finger touch points as circles with rotating arrow
......@@ -214,7 +213,7 @@
\end{figure}
}
\newcommand{\examplefiguretwo}{
\def\examplefiguretwo{
\begin{figure}[h]
\center
\begin{tikzpicture}
......@@ -244,7 +243,7 @@
\end{figure}
}
\newcommand{\eventpropagationfigure}{
\def\eventpropagationfigure{
\begin{figure}[h!]
\center
\vspace{-2em}
......@@ -260,7 +259,7 @@
\draw node[block, yshift=-10em, xshift=-3em] (driver) {Event driver};
\draw node[block, below of=driver] (gray) {Gray area}
edge[linefrom] node[left=5] {1} (driver);
edge[linefrom] node[left] {1} (driver);
\draw node[block, below of=gray] (white) {White area}
edge[linefrom, bend left=15] node[left] {2} (gray)
edge[lineto, bend right=15] node[right] {6} (gray);
......@@ -286,7 +285,7 @@
\draw node[block, yshift=-10em, xshift=-3em] (driver) {Event driver};
\draw node[block, below of=driver] (gray) {Gray area}
edge[linefrom] node[left=5] {1} (driver);
edge[linefrom] node[left] {1} (driver);
\draw node[block, below of=gray] (white) {White area};
\draw node[block, right of=white, xshift=4em] {\emph{rotation} tracker};
\draw node[block, right of=gray, xshift=4em] {\emph{rotation} tracker}
......@@ -307,9 +306,9 @@
\end{figure}
}
\newcommand{\daemondiagram}{
\def\daemondiagram{
\begin{figure}[h!]
\center
\centering
\begin{tikzpicture}[node distance=4em]
\node[block] (daemon) {Daemon};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment