[Tex/LaTex] Venn Diagram in LaTeX for $C\setminus (A \cap B \cap C)$

venn-diagrams

\begin{tikzpicture}[fill=gray]
    \scope
        \clip (2.7,-2.54) rectangle (-1.5,1.5)
         (0,0) circle (1)
         (1.2,0) circle (1);
         \fill (0.6,-1.04) circle (1);
    \endscope
        \draw (0,0) circle (1) (0,1)  node [text=black,above] {$A$}
              (1.2,0) circle (1) (0,1)  node [text=black,above right,shift={(1,0.01)}] {$B$}
              (0.6,-1.04) circle (1) (1.1,-0.6) node [text=black, shift={(0.6,-1.1)}] {$C$}
              (2.7,-2.54) rectangle (-1.5,1.5) node [text=black,above] {};
\end{tikzpicture}

This is the output of the above code – not quite what I want. If you understand the set notation in my question you'll understand that I want C to be filled in except for the little middle section of the diagram where A and B and C are all intersecting (i.e. I want to not shade in the region corresponding to the set whose members are common to A and B and C).

I am not smart enough to work out how to use clipping to achieve this. Please help me!

Best Answer

You can use the vendiagram package. Its very easy to use. Do you mean something like this?

\documentclass[]{article}
\usepackage{tikz,venndiagram}

\begin{document}

\begin{venndiagram3sets}
\fillOnlyC
\fillBCapCNotA
\fillACapCNotB
\end{venndiagram3sets}
\[ C\setminus (A \cap B \cap C) \]
\end{document}

enter image description here

Related Question