From ae7fceb51b16fbaa493d62561d276e68a4b50245 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Sun, 7 Apr 2013 13:43:31 +0200 Subject: [PATCH] doc: improved style consistency of adg-web.tex --- doc/adg-web.tex | 39 ++++++++++++++++++++------------------- doc/base.tex | 19 ++++++++++++------- 2 files changed, 32 insertions(+), 26 deletions(-) diff --git a/doc/adg-web.tex b/doc/adg-web.tex index fd02000..2a1876d 100644 --- a/doc/adg-web.tex +++ b/doc/adg-web.tex @@ -4,29 +4,30 @@ \begin{tikzpicture}[->,>=stealth'] - \node[state, minimum width=2cm, outer sep=2pt] (USER) at (0:5cm) {% + \node[state] (USER) at (0:5cm) {% \textbf{USER}}; - \node[stage] (PHP) at (72:5cm) {% - \stage{PHP}{% + \node[actor] (PHP) at (72:5cm) {% + \ACTOR{PHP}{% \item SilverStripe \item silverstripe-adg - \item Piston.php}}; - - \node[stage] (LUA) at (144:5cm) {% - \stage{Lua}{% - \item adg-web.lua - \item piston.lua}}; - - \node[stage] (ADG) at (216:5cm) {% - \stage{ADG canvas}{% - \item libadg-1.so - \item libcpml-1.so}}; - - \node[stage] (CAIRO) at (288:5cm) {% - \stage{Cairo library}{% - \item libcairo.so - \item Pango + \item \FILE{Adg.php} + \item \FILE{Piston.php}}}; + + \node[actor] (LUA) at (144:5cm) {% + \ACTOR{Lua}{% + \item \FILE{adg-web.lua} + \item \FILE{piston.lua}}}; + + \node[actor] (ADG) at (216:5cm) {% + \ACTOR{ADG canvas}{% + \item \FILE{libadg-1.so} + \item \FILE{libcpml-1.so}}}; + + \node[actor] (CAIRO) at (288:5cm) {% + \ACTOR{Cairo library}{% + \item \FILE{libcairo.so} + \item PangoCairo \item FreeType \item FontConfig}}; diff --git a/doc/base.tex b/doc/base.tex index 2f39c9b..09109aa 100644 --- a/doc/base.tex +++ b/doc/base.tex @@ -1,7 +1,7 @@ \documentclass[border=11pt]{standalone} -\usepackage{tikz,enumitem} -\usetikzlibrary{arrows,automata,calc,positioning} +\usepackage{enumitem,tikz} +\usetikzlibrary{arrows} \tikzset{ every edge/.style={ @@ -17,7 +17,7 @@ inner sep=8pt, outer sep=2pt }, - stage/.style={ + actor/.style={ anchor=center, rectangle, rounded corners, @@ -28,9 +28,14 @@ }, } -\newcommand\stage[2]{% - \parbox{3cm}{% - \textbf{#1}\vspace{2pt}% - \begin{itemize}[noitemsep,nosep,leftmargin=1.5em,labelsep=4pt] +\newcommand\FILE[1]{% + \texttt{#1}} + +\newcommand\ACTOR[2]{% + \parbox{32mm}{% + \textbf{#1}\vspace{3pt}% + \begin{itemize}[label={$\vcenter{\hbox{\tiny$\bullet$}}$}, + noitemsep,nosep,leftmargin=8pt,labelsep=3pt] + \small #2 \end{itemize}}} -- 2.11.4.GIT