As a teacher, I really appreciate the venndiagram usepackage with its functionality. Is there a way to fill the sets with patterns instead of a solid color (for better printing)? Something along the lines of \begin{venndiagram2sets}[shade={pattern=horizontal lines}]
, or \begin{venndiagram2sets}[tikzoptions={pattern=horizontal lines}]
?
A working example without pattern fills follows. Thanks in advance!
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usepackage{venndiagram}
%
\begin{document}
\begin{venndiagram2sets}[shade=orange,tikzoptions={red}]
\fillA
\end{venndiagram2sets}
\end{document}
\path[fill=\@venn@shade] ...
, where=\@venn@shade
is the color that you specify withshade=...
(orange in your example),The IMHO simplest way to do what you want is to copy thevenndiagram.sty
file to a new file in which you replace all ``\path[fill=\@venn@shade] ` by\path[\@venn@shade]
and then do\begin{venndiagram2sets}[pattern=north east lines,tikzoptions={red}]
after loading your own package. Or send a request to the package author.\newcommand*{\@venn@shade}{lightgray}
to\newcommand*{\@venn@shade}{pattern=north east lines}
, however no luck so far. I'll keep trying, because I really like the idea.fill={pattern=north east lines}
. The issue is to get rid of the hardcodedfill=
and I think LoopSpace made a brilliant suggestion to accomplish that.