aboutsummaryrefslogtreecommitdiffstats
path: root/libccnx-portal/ccnx/api/ccnx_Portal/documentation/Packages.tex
diff options
context:
space:
mode:
authorMichele Papalini <micpapal+fdio@cisco.com>2017-02-24 08:00:13 +0000
committerGerrit Code Review <gerrit@fd.io>2017-02-24 08:00:13 +0000
commit6d4b6878ceff22f9ec8d8e9423214f9666007472 (patch)
treefa27e0c747676519cb87ff8448bfed62fce5009d /libccnx-portal/ccnx/api/ccnx_Portal/documentation/Packages.tex
parentf28308bd99381ef5f1e178e2e1f870f245e35873 (diff)
parentd18ae43123fcd7604d1c36a1ec8450dbe6071824 (diff)
Merge "Initial commit: ccnxlibs." into ccnxlibs/master
Diffstat (limited to 'libccnx-portal/ccnx/api/ccnx_Portal/documentation/Packages.tex')
-rw-r--r--libccnx-portal/ccnx/api/ccnx_Portal/documentation/Packages.tex46
1 files changed, 46 insertions, 0 deletions
diff --git a/libccnx-portal/ccnx/api/ccnx_Portal/documentation/Packages.tex b/libccnx-portal/ccnx/api/ccnx_Portal/documentation/Packages.tex
new file mode 100644
index 00000000..b09403e8
--- /dev/null
+++ b/libccnx-portal/ccnx/api/ccnx_Portal/documentation/Packages.tex
@@ -0,0 +1,46 @@
+%
+% Specify packages that you need in this file.
+% If a package requires configuration, do that here.
+\usepackage{lipsum}
+
+\usepackage{tikz}
+\usetikzlibrary{shadows,arrows}
+% Define the layers to draw the diagram
+\pgfdeclarelayer{background}
+\pgfdeclarelayer{foreground}
+\pgfsetlayers{background,main,foreground}
+
+% Define block styles
+\tikzstyle{materia}=[draw, fill=blue!20, text width=6.0em, text centered,
+ minimum height=1.5em,drop shadow]
+\tikzstyle{component} = [materia, text width=9em, minimum width=10em,
+ minimum height=3em, rounded corners, drop shadow]
+\tikzstyle{texto} = [above, text width=6em, text centered]
+\tikzstyle{linepart} = [draw, thick, color=black!50, -latex', dashed]
+\tikzstyle{line} = [draw, thick, color=black!50, -latex']
+\tikzstyle{ur}=[draw, text centered, minimum height=0.01em]
+
+% Define distances for bordering
+\newcommand{\blockdist}{1.3}
+\newcommand{\edgedist}{1.5}
+
+\newcommand{\component}[3]{node (p#1) [component]%
+ {#2\\{\scriptsize\textit{#3}}}}
+
+% Draw background
+\newcommand{\background}[5]{%
+ \begin{pgfonlayer}{background}
+ % Left-top corner of the background rectangle
+ \path (#1.west |- #2.north)+(-0.5,0.5) node (a1) {};
+ % Right-bottom corner of the background rectangle
+ \path (#3.east |- #4.south)+(+0.5,-0.25) node (a2) {};
+ % Draw the background
+ \path[fill=orange!10,rounded corners, draw=black!50, dashed]
+ (a1) rectangle (a2);
+ \path (a1.east |- a1.south)+(0.8,-0.3) node (u1)[texto]
+ {\scriptsize\textit{#5}};
+ \end{pgfonlayer}}
+
+\newcommand{\transreceptor}[3]{%
+ \path [linepart] (#1.east) -- node [above]
+ {\scriptsize Transreceptor #2} (#3);}