summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/forest/forest-lib-edges.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-12-06 00:28:11 +0000
committerKarl Berry <karl@freefriends.org>2016-12-06 00:28:11 +0000
commit98c0bc5c3d62d24f3f39fcc797792e70029c65aa (patch)
tree25cf0a9b31ec1d1c699632069b6a07cd2fcb8446 /Master/texmf-dist/tex/latex/forest/forest-lib-edges.sty
parent0490ce6a2a0e554c8e241df1699801decea844b8 (diff)
forest (5dec16)
git-svn-id: svn://tug.org/texlive/trunk@42640 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/forest/forest-lib-edges.sty')
-rw-r--r--Master/texmf-dist/tex/latex/forest/forest-lib-edges.sty21
1 files changed, 12 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/forest/forest-lib-edges.sty b/Master/texmf-dist/tex/latex/forest/forest-lib-edges.sty
index 5c737aabfeb..e982d849f2c 100644
--- a/Master/texmf-dist/tex/latex/forest/forest-lib-edges.sty
+++ b/Master/texmf-dist/tex/latex/forest/forest-lib-edges.sty
@@ -8,7 +8,7 @@
%%
%% `forest-libs' is a collection of libraries for package `forest'.
%%
-%% Copyright (c) 2015 Saso Zivanovic
+%% Copyright (c) 2016 Saso Zivanovic
%% (Sa\v{s}o \v{Z}ivanovi\'{c})
%% saso.zivanovic@guest.arnes.si
%%
@@ -29,30 +29,33 @@
%% `forest.dtx', or the derived `forest.sty'.
%%
\RequirePackage{forest}
-\ProvidesForestLibrary{edges}[2015/11/14 v0.1]
+\ProvidesForestLibrary{edges}[2016/12/05 v0.1.1]
\forestset{
declare dimen={fork sep}{0.5em},
- forked edge/.style={
- edge={rotate/.pgfmath=grow()},
+ forked edge'/.style={
+ edge={rotate/.option=!parent.grow},
edge path'={(!u.parent anchor) -- ++(\forestoption{fork sep},0) |- (.child anchor)},
},
- forked edges/.style={
- for tree={parent anchor=children},
- for descendants={child anchor=parent,forked edge}
+ forked edge/.style={
+ on invalid={fake}{!parent.parent anchor=children},
+ child anchor=parent,
+ forked edge',
},
+ forked edges/.style={for nodewalk={#1}{forked edge}},
+ forked edges/.default=tree,
}
\forestset{
declare dimen register=folder indent,
folder indent=.45em,
folder/.style={
- parent anchor=parent last,
+ parent anchor=-children last,
anchor=parent first,
calign=child,
calign primary child=1,
for children={
child anchor=parent,
anchor=parent first,
- edge={rotate/.pgfmath=grow()},
+ edge={rotate/.option=!parent.grow},
edge path'/.expanded={
([xshift=\forestregister{folder indent}]!u.parent anchor) |- (.child anchor)
},