Guest User

Untitled

a guest
Apr 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. documentclass{report}
  2. usepackage{tikz}
  3. usetikzlibrary{fit,shapes.misc}
  4.  
  5. begin{document}
  6. begin{tikzpicture}
  7. [
  8. mybox/.style={fill=#1!30,draw=#1,rounded corners}
  9. ]
  10. node[mybox=green] at (0,0) (a) {A};
  11. node[mybox=blue] at (0,3) (b) {B};
  12. node[mybox=orange] at (3,0) (c) {C};
  13. node[mybox=pink] at (5,3) (d) {D};
  14. draw[-latex] (a) -- (b);
  15. draw[-latex] (b) -- (c);
  16. draw[-latex] (c) -- (a);
  17. draw[-latex] (c) -- (d);
  18. node[fit=(a)(c), rounded rectangle, draw, inner sep=10pt] (fitnode) {};
  19. % How to remove
  20. fill[white,fill opacity=.75] [even odd rule]
  21. (current bounding box.south west) rectangle (current bounding box.north east)
  22. (fitnode.south west) rectangle (fitnode.north east);
  23. end{tikzpicture}
  24. end{document}
Add Comment
Please, Sign In to add comment