Advertisement
JoelSjogren

Untitled

Mar 3rd, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. % Author: Frantisek Burian
  2. \documentclass{minimal}
  3. \usepackage{tikz}
  4. %%%<
  5. \usepackage{verbatim}
  6. \usepackage[active,tightpage]{preview}
  7. \PreviewEnvironment{tikzpicture}
  8. \setlength\PreviewBorder{5pt}%
  9. %%%>
  10. \begin{comment}
  11. :Title: Filesystem tree
  12. :Tags: Trees; Styles
  13. :Author: Frantisek Burian
  14. :Slug: filesystem-tree
  15. \end{comment}
  16. \usetikzlibrary{trees}
  17.  
  18. \newcommand{\cm}{child [missing] {}}
  19.  
  20. \begin{document}
  21. \tikzstyle{every node}=[draw=black,thick,anchor=west]
  22. \tikzstyle{selected}=[draw=red,fill=red!30]
  23. \tikzstyle{optional}=[dashed,fill=gray!50]
  24. \begin{tikzpicture}[%
  25. grow via three points={one child at (0.5,-0.7) and
  26. two children at (0.5,-0.7) and (0.5,-1.4)},
  27. edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}]
  28. \node {texmf}
  29. child { node {doc}}
  30. child { node {fonts}}
  31. child { node {source}}
  32. child { node [selected] {tex}
  33. child { node {generic}}
  34. child { node [optional] {latex}}
  35. child { node {plain}}
  36. }
  37. child [missing] {} % TAG change this to \cm and the output changes
  38. child [missing] {}
  39. child [missing] {}
  40. child { node {texdoc}};
  41. \end{tikzpicture}
  42. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement