Is there an easy and efficient way to put multiple venn-diagrams in a single line? Either force the compiler to ignore the line break or shift all of the coordinates in the second one? I'm open to any solution.
\documentclass{article}
\usepackage{tikz}
\def \setA{ (0,0) circle (1cm) node {$A$}}
\def \setB{ (1.5,0) circle (1cm) node {$B$}}
\def \myrectangle{ (-2, -1.5) rectangle (3.5, 1.5) }
\begin{document}
\begin{center}
\begin{tikzpicture}[scale=0.6]
\draw \myrectangle node[below left]{$U$};
\fill[gray] (0,0) circle (1cm);
\fill[gray] (1.5,0) circle (1cm);
\draw \setA;
\draw \setB;
\end{tikzpicture}
\begin{tikzpicture}[scale=0.6]
\draw \myrectangle node[below left]{$U$};
\begin{scope}
\clip \setA ;
\fill[gray] \setB ;
\end{scope}
\draw \setA;
\draw \setB;
\end{tikzpicture}
\end{center}
\end{document}
tikzis not involved at all here comparexxwithx xandx<blank line>xthextouch, or have a word space or are stacked vertically depending what you put between them – David Carlisle May 29 '17 at 13:39