Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Author: Frantisek Burian
- \documentclass{minimal}
- \usepackage{tikz}
- %%%<
- \usepackage{verbatim}
- \usepackage[active,tightpage]{preview}
- \PreviewEnvironment{tikzpicture}
- \setlength\PreviewBorder{5pt}%
- %%%>
- \begin{comment}
- :Title: Filesystem tree
- :Tags: Trees; Styles
- :Author: Frantisek Burian
- :Slug: filesystem-tree
- \end{comment}
- \usetikzlibrary{trees}
- \newcommand{\cm}{child [missing] {}}
- \begin{document}
- \tikzstyle{every node}=[draw=black,thick,anchor=west]
- \tikzstyle{selected}=[draw=red,fill=red!30]
- \tikzstyle{optional}=[dashed,fill=gray!50]
- \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 {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] {} % change this to \cm and the output changes
- child [missing] {}
- child [missing] {}
- child { node {texdoc}};
- \end{tikzpicture}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement