Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. documentclass[a4paper,12pt,headsepline,dvipsnames,bibliography=totocnumbered]{scrartcl}
  2.  
  3. usepackage{tikz}
  4. usepackage{tikz-qtree}
  5.  
  6. usetikzlibrary{trees}
  7.  
  8. begin{document}
  9.  
  10. tikzset{
  11. attackTree/.style={
  12. auto,
  13. font=small,
  14. edge from parent fork down,
  15. level distance=2.5cm,
  16. every node/.style=
  17. { rectangle,
  18. minimum height=15mm,
  19. minimum width=30mm,
  20. draw=black,
  21. align=center,
  22. text depth = 0pt
  23. },
  24. edge from parent/.style=
  25. { draw=black}
  26. },
  27. treeOperator/.style={
  28. minimum width=0,
  29. minimum height=0,
  30. draw=none
  31. }
  32. }
  33.  
  34. begin{tikzpicture}[
  35. attackTree,
  36. sibling distance=35mm
  37. ]
  38. node {Open safe}
  39. child{
  40. node {Pick lock}
  41. }
  42. child{node {Learn combo}
  43. child{node {Find written\combo}}
  44. child{node {Get combo\from target}
  45. child{node{Threaten}}
  46. child{node{Blackmail}}
  47. child{node{Eavesdrop}
  48. child{node(listen){Listen to\conversation}}
  49. child{node(state){Get target to\state combo}}
  50. }
  51. child{node{Bribe}}
  52. }
  53. }
  54. child{node {Cut open safe}}
  55. child{node {Install\improperly}};
  56.  
  57. draw[draw=none] (listen) -- (state) node[treeOperator,midway] {$wedge$};
  58. end{tikzpicture}
  59. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement