Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. usepackage[latin1]{inputenc}
  4. usepackage{tikz}
  5. usetikzlibrary{shapes,arrows,positioning,fit}
  6. begin{document}
  7. pagestyle{empty}
  8.  
  9.  
  10. % Define block styles
  11. tikzstyle{block} = [rectangle, draw, fill=yellow,
  12. text width=5em, text centered, rounded corners, minimum height=2em]
  13. tikzstyle{line} = [draw, -latex']
  14.  
  15. begin{tikzpicture}[node distance = 1cm, auto]
  16. % Place nodes
  17. node [cylinder, draw, shape aspect=.5, shape border rotate=90, minimum height=1cm] (A) {A};
  18. node [block, below =of A] (B) {B};
  19. node [block, below =of B] (C) {C};
  20. node [block, below =of C] (D) {D};
  21. node [draw, fit= (C) (D)] (G) {};
  22. node [block, below =of D] (E) {E};
  23. node [text centered, below =of E] (F) {F};
  24. % Draw edges
  25. path [line] (A) -- (B);
  26. path [line] (B) -- (G);
  27. path [line] (G) -- (E);
  28. path [line] (E) -- (F);
  29. end{tikzpicture}
  30.  
  31.  
  32. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement