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 @@ ...@@ -5,7 +5,6 @@
\pgfdeclarelayer{background} \pgfdeclarelayer{background}
\pgfdeclarelayer{foreground} \pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground} % Layer order \pgfsetlayers{background,main,foreground} % Layer order
\newcommand{\grouppadding}{0.5}
\newcommand{\group}[5]{ \newcommand{\group}[5]{
\begin{pgfonlayer}{background} \begin{pgfonlayer}{background}
% Left top corner % Left top corner
...@@ -63,7 +62,7 @@ ...@@ -63,7 +62,7 @@
\end{figure} \end{figure}
} }
\newcommand{\driverdiagram}{ \def\driverdiagram{
\begin{figure}[H] \begin{figure}[H]
\center \center
\architecture{ \architecture{
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
\end{figure} \end{figure}
} }
\newcommand{\multipledriversdiagram}{ \def\multipledriversdiagram{
\begin{figure}[H] \begin{figure}[H]
\center \center
\begin{tikzpicture}[node distance=6em] \begin{tikzpicture}[node distance=6em]
...@@ -154,7 +153,7 @@ ...@@ -154,7 +153,7 @@
\end{figure} \end{figure}
} }
\newcommand{\examplediagram}{ \def\examplediagram{
\begin{figure}[h!] \begin{figure}[h!]
\center \center
\architecture{ \architecture{
...@@ -198,7 +197,7 @@ ...@@ -198,7 +197,7 @@
\end{figure} \end{figure}
} }
\newcommand{\examplefigureone}{ \def\examplefigureone{
\begin{figure}[h] \begin{figure}[h]
\center \center
% TODO: draw finger touch points as circles with rotating arrow % TODO: draw finger touch points as circles with rotating arrow
...@@ -214,7 +213,7 @@ ...@@ -214,7 +213,7 @@
\end{figure} \end{figure}
} }
\newcommand{\examplefiguretwo}{ \def\examplefiguretwo{
\begin{figure}[h] \begin{figure}[h]
\center \center
\begin{tikzpicture} \begin{tikzpicture}
...@@ -244,7 +243,7 @@ ...@@ -244,7 +243,7 @@
\end{figure} \end{figure}
} }
\newcommand{\eventpropagationfigure}{ \def\eventpropagationfigure{
\begin{figure}[h!] \begin{figure}[h!]
\center \center
\vspace{-2em} \vspace{-2em}
...@@ -260,7 +259,7 @@ ...@@ -260,7 +259,7 @@
\draw node[block, yshift=-10em, xshift=-3em] (driver) {Event driver}; \draw node[block, yshift=-10em, xshift=-3em] (driver) {Event driver};
\draw node[block, below of=driver] (gray) {Gray area} \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, below of=gray] (white) {White area}
edge[linefrom, bend left=15] node[left] {2} (gray) edge[linefrom, bend left=15] node[left] {2} (gray)
edge[lineto, bend right=15] node[right] {6} (gray); edge[lineto, bend right=15] node[right] {6} (gray);
...@@ -286,7 +285,7 @@ ...@@ -286,7 +285,7 @@
\draw node[block, yshift=-10em, xshift=-3em] (driver) {Event driver}; \draw node[block, yshift=-10em, xshift=-3em] (driver) {Event driver};
\draw node[block, below of=driver] (gray) {Gray area} \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, below of=gray] (white) {White area};
\draw node[block, right of=white, xshift=4em] {\emph{rotation} tracker}; \draw node[block, right of=white, xshift=4em] {\emph{rotation} tracker};
\draw node[block, right of=gray, xshift=4em] {\emph{rotation} tracker} \draw node[block, right of=gray, xshift=4em] {\emph{rotation} tracker}
...@@ -307,9 +306,9 @@ ...@@ -307,9 +306,9 @@
\end{figure} \end{figure}
} }
\newcommand{\daemondiagram}{ \def\daemondiagram{
\begin{figure}[h!] \begin{figure}[h!]
\center \centering
\begin{tikzpicture}[node distance=4em] \begin{tikzpicture}[node distance=4em]
\node[block] (daemon) {Daemon}; \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