Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{report}
- usepackage{tikz}
- usetikzlibrary{fit,shapes.misc}
- begin{document}
- begin{tikzpicture}
- [
- mybox/.style={fill=#1!30,draw=#1,rounded corners}
- ]
- node[mybox=green] at (0,0) (a) {A};
- node[mybox=blue] at (0,3) (b) {B};
- node[mybox=orange] at (3,0) (c) {C};
- node[mybox=pink] at (5,3) (d) {D};
- draw[-latex] (a) -- (b);
- draw[-latex] (b) -- (c);
- draw[-latex] (c) -- (a);
- draw[-latex] (c) -- (d);
- node[fit=(a)(c), rounded rectangle, draw, inner sep=10pt] (fitnode) {};
- % How to remove
- fill[white,fill opacity=.75] [even odd rule]
- (current bounding box.south west) rectangle (current bounding box.north east)
- (fitnode.south west) rectangle (fitnode.north east);
- end{tikzpicture}
- end{document}
Add Comment
Please, Sign In to add comment