# [Tex/LaTex] How to label sets in Venn diagram using venndiagram package

labels

How do I have the labels (A and B) outside the circles? I would like a solution that uses the venndiagram package.

Code:

\documentclass{article}
\usepackage{venndiagram}
\begin{document}
\fillOnlyA
\end{venndiagram2sets}
\end{document}


Solution 1.:

(Modified after the comment of @CarLaTeX)

\documentclass{article}
\usepackage{venndiagram}
\begin{document}
\fillOnlyA
\setpostvennhook
{
\draw (labelA) node[above=2pt] {A};
\draw (labelB) node[above=2pt] {B};
}
\end{venndiagram2sets}
\end{document}


Solution 2.:

You could use tikzlibrary calc, and with its help, it's easy to put the labels on certain coordinates.

(I used @Jake's answer for TikZ: Node at same x-coordinate as another node, but specified y-coordinate?)

\documentclass{article}
\usepackage{tikz}
\usepackage{venndiagram}
\usetikzlibrary{calc}
\begin{document}