\documentclass{article} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{tikz} \usetikzlibrary{trees} \usepackage{verbatimbox} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt} \begin{document} \tikzstyle{every node}=[draw=black,thick,anchor=west] \tikzstyle{selected}=[draw=red,fill=red!30] \tikzstyle{foot}=[fill=gray!50] \tikzstyle{rel}=[fill=blue!70] \tikzstyle{partition}=[draw=white] \begin{tikzpicture}[% 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)}] \node {/ or C:} child { node {home} child { node {knut} child { node {pictures}} child { node {docs} child { node [foot] {latex} child { node [rel] { main.tex}} child {node [foot] {sections} child { node [selected] {part1.tex}} } } } } }; \end{tikzpicture} \end{document}