У меня есть две tikzpitctures в LaTeX, которые я надеялся получить рядом. Кто-нибудь знает solid способ сделать это? Я выложу код и скриншот того, как он выглядит сейчас. Если нет, есть ли другой подход к созданию диаграмм Венна бок о бок? Спасибо!
% %%%%%%%%%%%%%%%%%%%
\section*{Question 1}
% %%%%%%%%%%%%%%%%%%%
{\bfseries Determine the relationship between $P = (A-B)-C$ and $Q = (A-C)-(B-C)$}
{\bfseries Answer: $P = Q$}
% %%%%%%%%%%%%%%%%%%%
\subsection*{Justification 1: Venn Diagram}
% %%%%%%%%%%%%%%%%%%%
\def\firstcircle{ (0.0, 0.0) circle (1.5)}
\def\secondcircle{(2.0, 0.0) circle (1.5)}
\def\thirdcircle{ (1.0,-1.5) circle (1.5)}
\def\rectangle{ (-1.5,-3.0) rectangle (3.5,1.0) }
\colorlet{circle edge}{black}
\colorlet{circle area}{blue!30}
\tikzset{filled/.style={fill=circle area, draw=circle edge, thick},
outline/.style={draw=circle edge, thick}}
\begin{tikzpicture}
\begin{scope}
\fill[filled] \firstcircle;
\fill[white] \secondcircle;
\fill[white] \thirdcircle;
\end{scope}
\draw[outline] \firstcircle node[left] {$A$};
\draw[outline] \secondcircle node[right] {$B$};
\draw[outline] \thirdcircle node[below] {$C$};
\node[anchor=south] at (current bounding box.north)
{$P = (A - B) - C$};
\end{tikzpicture}
\begin{tikzpicture}
\begin{scope}
\fill[filled] \firstcircle;
\fill[white] \secondcircle;
\fill[white] \thirdcircle;
\end{scope}
\draw[outline] \firstcircle node[left] {$A$};
\draw[outline] \secondcircle node[right] {$B$};
\draw[outline] \thirdcircle node[below] {$C$};
\node[anchor=south] at (current bounding box.north)
{$Q = (A - C) - (B - C)$};
\end{tikzpicture}
\pagebreak