summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikz-dependency
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-11-28 23:44:17 +0000
committerKarl Berry <karl@freefriends.org>2011-11-28 23:44:17 +0000
commit943060c95de767f07c7b00d0637d3fc96a08486f (patch)
tree6e14b901467218e23268032fbbaa77b4945a75d0 /Master/texmf-dist/tex/latex/tikz-dependency
parente19aadfa3678794d1a655f36f1c67ecf8cd78a56 (diff)
tikz-dependency (28nov11)
git-svn-id: svn://tug.org/texlive/trunk@24679 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikz-dependency')
-rw-r--r--Master/texmf-dist/tex/latex/tikz-dependency/tikz-dependency.sty37
1 files changed, 35 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/tikz-dependency/tikz-dependency.sty b/Master/texmf-dist/tex/latex/tikz-dependency/tikz-dependency.sty
index 6aa31c3c867..607d6c50a78 100644
--- a/Master/texmf-dist/tex/latex/tikz-dependency/tikz-dependency.sty
+++ b/Master/texmf-dist/tex/latex/tikz-dependency/tikz-dependency.sty
@@ -1,3 +1,12 @@
+% Copyright 2011 by Daniele Pighin
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU Public License.
+%
+% See the file doc/generic/tikz-dependency/licenses/LICENSE for more details.
+
\ProvidesPackage{tikz-dependency}[2011/01/08 v1.0 Macros to draw dependency trees]
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
@@ -57,17 +66,41 @@
text height=1.5ex, text depth = 0.25ex, % needed to center text vertically
inner sep = .5ex},
text style/.style = {reserved/text style/.append style = {#1}},
+ % group styling
reserved/group style/.style = {
inner sep = 0,
draw, solid,
outer sep = .5ex,
rounded corners = 2pt},
group style/.style = {reserved/group style/.append style = {#1}},
+ % themes for text
+ text theme/.is choice,
+ text theme/brazil/.style = {text style={blue!60!black}},
+ text theme/iron/.style = {text style={black!80}},
+ text theme/copper/.style = {text style={brown!60!black}},
+ text theme/night/.style = {text style={black}},
+ text theme/grassy/.style = {text style={green!40!black}},
+ % themes for labels
+ label theme/.is choice,
+ label theme/night/.style = {label style={text=white, fill=black, font=\bfseries}},
+ label theme/brazil/.style = {label style={thick, black, fill=yellow, text=black, font=\bfseries}},
+ label theme/iron/.style = {label style={top color=black!60, bottom color=black!80, draw=black!80, text=white, font=\bfseries}},
+ label theme/copper/.style = {label style={top color=brown!80!pink, bottom color=brown!60!black, draw=brown!80, text=white, font=\bfseries}},
+ label theme/grassy/.style = {label style={bottom color=green!60!black, top color=green!20!black, draw=green!40!black, text=white, font=\bfseries}},
+ % themes for edges
+ edge theme/.is choice,
+ edge theme/night/.style = {edge style={thick}},
+ edge theme/brazil/.style = {edge style={thick,green!60!black}},
+ edge theme/iron/.style = {edge style={thick, black!80}},
+ edge theme/copper/.style = {edge style={thick, brown!80}},
+ edge theme/grassy/.style = {edge style={thick, green!40!black}},
+ % themes styles
+ theme/.style = {label theme = #1, edge theme = #1, text theme = #1},
}
\newenvironment{dependency}[1][]{%
- \begin{tikzpicture}
- \begin{scope}[/depgraph/.cd, #1]
+ \begin{tikzpicture}[/depgraph/.cd, #1]
+ \begin{scope}
}{%
\end{scope}%
\end{tikzpicture}%