Guest User

Untitled

a guest
Nov 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. documentclass[10pt]{article}
  2.  
  3. usepackage{mathtools}
  4. usepackage{tikz}
  5. usetikzlibrary{arrows, positioning, shapes, matrix}
  6.  
  7. tikzset{>=stealth}
  8.  
  9. tikzset{%
  10. main/.style = {},
  11. wait/.style = {rectangle,minimum width=0.5cm, minimum height = 0.5cm},
  12. }
  13.  
  14. begin{document}
  15.  
  16. newcommand{bx}[1]{|[box, label=#1]|}
  17.  
  18. begin{tikzpicture}
  19. matrix (m) [matrix of nodes,
  20. nodes = {node distance=10cm, anchor = center},
  21. continue/.style={draw, rectangle, anchor=center, node distance=10cm},
  22. box/.style={draw, node distance=10cm}]
  23. {
  24. BC & |[continue]| & $phantom{neg}$ BC & \
  25. & |[box]|BPM & $neg$ BC & \
  26. & & $phantom{neg}$ MP & \
  27. & |[box]|BPM & & \
  28. RC & |[continue]| & $phantom{neg}$ RC & \
  29. & & $ neg $ RC & \
  30. & & & \
  31. & & & \
  32. & |[box]|RP & & \
  33. PH & |[continue]| & $phantom{neg}$ PH & \
  34. & & $ neg $ PH & \
  35. };
  36.  
  37. % S0 -> AO
  38. draw[->] (m-1-1) -- (m-1-2);
  39. draw[->] (m-1-1) -- (m-2-2);
  40.  
  41. draw[->] (m-5-1) -- (m-4-2);
  42. draw[->] (m-5-1) -- (m-5-2);
  43.  
  44. draw[->] (m-10-1) -- (m-9-2);
  45. draw[->] (m-10-1) -- (m-10-2);
  46.  
  47. % AO
  48. path[->] (m-1-2.south) edge [bend left=90,looseness=1] (m-2-2.north);
  49. path[->] (m-5-2.north) edge [bend left=90,looseness=1] (m-4-2.south);
  50. path[->] (m-9-2.south) edge [bend left=90,looseness=1] (m-10-2.north);
  51.  
  52. % A0 -> S1
  53. draw[->] (m-1-2) -- (m-1-3);
  54. draw[->] (m-2-2) -- (m-2-3);
  55. draw[->] (m-2-2) -- (m-3-3);
  56.  
  57. draw[->] (m-5-2) -- (m-5-3);
  58. draw[->] (m-4-2) -- (m-6-3);
  59. draw[->] (m-4-2) -- (m-3-3);
  60.  
  61. draw[->] (m-10-2) -- (m-10-3);
  62. draw[->] (m-10-2) -- (m-11-3);
  63.  
  64. % S1
  65. path[-] (m-1-3.south) edge [bend left=90,looseness=1] (m-2-3.north);
  66. path[-] (m-6-3.north) edge [bend left=90,looseness=1] (m-5-3.south);
  67. path[-] (m-10-3.south) edge [bend left=90,looseness=1] (m-11-3.north);
  68.  
  69. end{tikzpicture}
  70.  
  71. end{document}
Add Comment
Please, Sign In to add comment