diff options
author | Luca Muscariello <lumuscar+fdio@cisco.com> | 2017-02-23 20:44:26 +0100 |
---|---|---|
committer | Luca Muscariello <lumuscar+fdio@cisco.com> | 2017-02-23 19:51:14 +0000 |
commit | d18ae43123fcd7604d1c36a1ec8450dbe6071824 (patch) | |
tree | 2d49fc3aabd0f2607251c854565648d47b56b2e9 /libccnx-portal/ccnx/api/ccnx_Portal/documentation/Packages.tex | |
parent | 9b30fc10fb1cbebe651e5a107e8ca5b24de54675 (diff) |
Initial commit: ccnxlibs.
Change-Id: I1b376527a7dd01a6b9e083a6cb646955902f45c0
Signed-off-by: Luca Muscariello <lumuscar+fdio@cisco.com>
Diffstat (limited to 'libccnx-portal/ccnx/api/ccnx_Portal/documentation/Packages.tex')
-rw-r--r-- | libccnx-portal/ccnx/api/ccnx_Portal/documentation/Packages.tex | 46 |
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);} |