I'm trying to draw a tree with double arrows. To that end, I have combined the file system tree from texample.net with the basic idea of double arrows a la chef:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{trees,decorations.markings}
\begin{document}
\tikzstyle{every node}=[draw=black,thick,anchor=west]
\tikzstyle{selected}=[draw=red,fill=red!30]
\tikzstyle{optional}=[dashed,fill=gray!50]
\newcommand{\arrowcolor}{red}
\newcommand{\arrowfillcolor}{white}
\begin{tikzpicture}[%
rightarr/.pic={\path[pic actions] (-0.4,0)--(-1,-0.35)--(-1,.35)--cycle;},
grow via three points={one child at (0.5,-0.7) and
two children at (0.5,-0.7) and (0.5,-1.4)},
edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)},
edge from parent/.style={
decoration={
markings,
mark=at position 1 with{\coordinate (0, 0) pic[\arrowcolor,fill=\arrowfillcolor,scale=0.22]{rightarr};},
},
draw = \arrowcolor,
line width = 3pt,
shorten >= 5.7pt,
shorten <= 2pt,
postaction = {decorate},
postaction = {draw,line width=1.4pt, white},
}]
\node {texmf}
child { node {doc}}
child { node {fonts}}
child { node {source}}
child { node [selected] {tex}
child { node {generic}}
child { node [optional] {latex}}
child { node {plain}}
}
child [missing] {}
child [missing] {}
child [missing] {}
child { node {texdoc}};
\end{tikzpicture}
\end{document}
This looks like so:
I don't understand why the vertical arrow lines run straight through at the junctions. Shouldn't the "draw" postaction replay the exact path and draw one inner, 1.4pt wide, white connected surface over the existing path?


edge from parentfromtexmftodocis overwritten by the edge fromtexmftofontsand so on. – Ignasi Apr 26 '16 at 15:07