Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. begin{tikzpicture}[sharp corners=2pt,inner sep=7pt,node distance=.8cm,every text node part/.style={align=center}]
  2. tikzstyle{block} = [rectangle, draw, fill=orange!30,
  3. text width=10em, text centered, rounded corners, minimum height=4em]
  4.  
  5. % Draw rectangular nodes (switch sharp to smooth for different corners)
  6. node[draw, minimum height = 1cm, minimum width = 1cm] (state0){Lecture hall A };
  7. node[draw,below=1cm of state0, minimum height = 1cm, minimum width = 1cm](state2){ Female students };
  8. node[draw,right=1cm of state0, minimum height = 1cm, minimum width = 1cm](state1){Lecture hall A };
  9. node[draw,below=1cm of state1, minimum height = 1cm, minimum width = 1cm](state3){Male students};
  10. width = 1cm](state2){ Female students };
  11. node[draw,right=2cm of state3, minimum height = 1cm, minimum
  12. width = 1cm](state4){ Female students };
  13. node[draw,right=1cm of state4, minimum height = 1cm, minimum width = 1cm](state5){Male students};
  14. node [block, right=3cm of state1] (state6) {Lecture hall A};
  15. %Draw arrows
  16. draw[-triangle 60] (state0) -- (state2) node [midway, above, left = 0.1cm]{};
  17.  
  18. draw[-triangle 60] (state1) -- (state3) node [midway, above, right = 0.1cm]{};
  19.  
  20. draw[-triangle 60] (state6) -- (state4) node [midway, above, right = 0.1cm]{};
  21. draw[-triangle 60] (state6) -- (state5) node [midway, above, right = 0.1cm]{};
  22.  
  23. documentclass{article}
  24. usepackage{tikz}
  25. usetikzlibrary{positioning,shapes,arrows}
  26.  
  27. begin{document}
  28.  
  29. centering
  30. begin{tikzpicture}[sharp corners=2pt,inner sep=7pt,node distance=.8cm,every text node part/.style={align=center}]
  31.  
  32. % Draw rectangular nodes (switch sharp to smooth for different corners)
  33. node[draw] (state0){Lecture hall A };
  34. node[draw,below=2.5em of state0](state2){ Female students };
  35. node[draw,right=2em of state0](state1){Lecture hall A };
  36. node[draw,below=2.5em of state1](state3){Male students};
  37. %Blank node for positioning
  38. node[right=2em of state1](blank){};
  39. %Arrow
  40. node[single arrow, draw=black, fill=black!25, minimum height=4em, below=0.9em of blank](arrow){};
  41. node[draw, right=7em of state1, minimum height = 5em, minimum width =9em](state4){Lecture hall A};
  42. %Blank node for positioning
  43. node[below=4em of state4](invis){};
  44. node[draw, below left=1em of invis](state5){Female students};
  45. node[draw, below right=1em of invis](state6){Male students};
  46.  
  47. %Draw arrows
  48. draw[-triangle 60] (state0) -- (state2) node [midway, above, left = 0.1cm] {};
  49. draw[-triangle 60] (state1) -- (state3) node [midway, above, right = 0.1cm] {};
  50. draw[-triangle 60] (state4.south) -- (state5);
  51. draw[-triangle 60] (state4.south) -- (state6);
  52.  
  53. end{tikzpicture}
  54.  
  55. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement