Fig2.tex 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. \tikzset{pics/folder/.style={code={%
  2. \node[inner sep=0pt, minimum size=#1](-foldericon){};
  3. \node[folder style, inner sep=0pt, minimum width=0.3*#1, minimum height=0.6*#1, above right, xshift=0.05*#1] at (-foldericon.west){};
  4. \node[folder style, inner sep=0pt, minimum size=#1] at (-foldericon.center){};}
  5. },
  6. pics/folder/.default={20pt},
  7. folder style/.style={draw=foldercolor!80!black,top color=foldercolor!40,bottom color=foldercolor}
  8. }
  9. \forestset{is file/.style={edge path'/.expanded={%
  10. ([xshift=\forestregister{folder indent}]!u.parent anchor) |- (.child anchor)},
  11. inner sep=1pt},
  12. this folder size/.style={edge path'/.expanded={%
  13. ([xshift=\forestregister{folder indent}]!u.parent anchor) |- (.child anchor) pic[solid]{folder=#1}}, inner ysep=0.3*#1},
  14. folder tree indent/.style={before computing xy={l=#1}},
  15. folder icons/.style={folder, this folder size=#1, folder tree indent=2*#1, inner xsep=10pt},
  16. folder icons/.default={11pt},
  17. }
  18. \begin{forest}
  19. for tree={font=\sffamily, grow'=0,
  20. folder indent=.7em, folder icons}
  21. [dataset
  22. [metadata%, this folder size=20pt
  23. [children.csv, is file]
  24. [recordings.csv, is file]
  25. [annotations.csv, is file]]
  26. [recordings
  27. [raw
  28. [recording1.wav, is file]
  29. % [recording2.wav, is file]
  30. ]
  31. [converted
  32. [standard]
  33. [recording1.wav, is file]
  34. % [recording2.wav, is file]
  35. [vetted]
  36. [recording1.wav, is file]
  37. % [recording2.wav, is file]
  38. ]
  39. ]
  40. [annotations
  41. [its
  42. [raw
  43. [recording1.its, is file]
  44. % [recording2.its, is file]
  45. ]
  46. [converted,
  47. [recording1\_0\_0.csv, is file]
  48. % [recording2\_0\_0.csv, is file]
  49. ]
  50. ]
  51. ]
  52. ]
  53. \end{forest}