This is very closely related to a question about highlighting the overlap between circular nodes at Highlight overlap between nodes and draw arrow from node edge. But there is a new angle: how to generalize this to ellipses (and I suppose other shapes, but I care about ellipses for the moment).
You might expect that the following code would fill in the overlap between the ellipses with green:
\documentclass{article}
\usepackage{tikz}
\newcommand*{\MyRadius}{7cm}
\begin{document}
\def\A{(0,0) ellipse [minimum width = 2*\MyRadius, minimum height = \MyRadius]}
\def\B{(8,0) ellipse [minimum width = 2*\MyRadius, minimum height = \MyRadius]}
\begin{tikzpicture}
\node[draw, shape=ellipse, minimum width=2*\MyRadius, minimum height=\MyRadius, ultra thick] (A) at (0,0) {};
\node[draw, shape=ellipse, minimum width=2*\MyRadius, minimum height=\MyRadius, ultra thick] (B) at (8,0) {};
\begin{scope}
\clip \A;
\fill[green, opacity=0.2] \B;
\end{scope}
\end{tikzpicture}
\end{document}
But it doesn't. I also tried specifiying the height and width of the ellipses in (x, y) format, instead of in square brackets, but that is even worse (produces an error).





minimalclass (articleis a good substitute) as per why should theminimalclass be avoided?. – Peter Grill Jan 06 '15 at 20:17ellipse [x radius = \MyRadius, y radius = .5*\MyRadius]. The syntax is not the same as the ellipse shape for nodes. And to make your code compilable with TikZ 3.0 you have to add\usetikzlibrary{shapes.geometric}. – Kpym Jan 06 '15 at 20:35circleandrectanglefor\nodeshapes is quite different from other shapes. This one can be considered a more general question than the one linked to above - so if a question is to be closed I would recommend the one about circular shape be closed. – Peter Grill Jan 06 '15 at 21:23\usetikzlibrary{shapes.geometric}? – Peter Grill Jan 06 '15 at 22:01