separate xmpp arch figure from text for reusablility
[skm-ma-ws1314.git] / fig-xmpparch.tex
1 \def\nodelist{
2 juliet/{(-1,-1)}/XMPP client \code{juliet@example.net}/below/computer,
3 examplenet/{(-1,1)}/XMPP server \code{example.net}/above/server,
4 imexampleorg/{(1,1)}/XMPP server \code{im.example.org}/above/server,
5 romeo/{(1,-1)}/XMPP client \code{romeo@im.example.org}/below/computer%
6 }
7 \foreach \name/\pos/\text/\tpos/\icon in \nodelist {
8 \node (\name) at \pos { \includegraphics[width=2em]{icon-\icon.pdf} };
9 \node[\tpos=of \name,iconlabel] (\name text) { \text };
10 }
11 \draw[<->,dashed] (juliet) -- node[anchor=east,label]{s2c} (examplenet);
12 \draw[<->] (examplenet) -- node[anchor=south,label]{s2s} (imexampleorg);
13 \draw[<->,dashed] (imexampleorg) -- node[anchor=west,label]{s2c} (romeo);
14
This page took 0.053418 seconds and 5 git commands to generate.