我如何标记维恩图的相交部分?

我如何标记维恩图的相交部分?
        \begin{tikzpicture}[fill=gray]
        % left hand
        \scope
        \clip (-2,-2) rectangle (2,2)
              (1,0) circle (1);
        \fill (0,0) circle (1);
        \endscope
        % right hand
        \scope
        \clip (-2,-2) rectangle (2,2)
              (0,0) circle (1);
        \fill (1,0) circle (1);
        \endscope
        % outline
        \draw (0,0) circle (1) (0,1)  node [text=black,above](A) {$L(A)$}
              (1,0) circle (1) (1,1)  node [text=black,above](B) {$L(B)$}
              (-2,-2) rectangle (3,2) node [text=black,above] {$H$};
        \node[below] at (barycentric cs:A=1/2,B=1/2 ) {$A \cap B$};%I don't know how to orient here
        \end{tikzpicture}
        \end{center}

I want the intersecting portion to be labeled as 

答案1

像这样吗?

\documentclass{article}

\usepackage{venndiagram}

\begin{document}

\begin{venndiagram2sets}[labelAB={$A\cap B$},overlap=1cm]
\end{venndiagram2sets}
\end{document}

确保您拥有此软件包的更新版本。

在此处输入图片描述

相关内容