使用维恩图表示以下集合,
- A∪(B∩C)。
- A'∩(B∪C)。
- A∩(B∪C').'表示集合的补集。
首先我有以下代码,
\begin{venndiagram3sets}[labelA= ,labelB= , labelC= ,radius=2cm, overlap=2cm]%
\setkeys{venn}{shade=OliveDrab!40}
\fillBCapC
\fillA
\setpostvennhook
{%
\draw (labelA) ++(-120:1.8cm) node{$ A$};
\draw (labelB) ++(-60:1.8cm) node{$B$};
\draw (labelC) ++(90:1.2cm) node{$C$};
\draw (labelABC) ++(90:0.1cm) node{$A\cap B\cap C$};
}%
\end{venndiagram3sets}
但我不知道该如何填写该代码后面的其他内容,他们能帮助我吗?谢谢。
答案1
这例子可能会帮助你:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\begin{scope}[blend group = soft light]
\fill[red!30!white] ( 90:1.2) circle (2);
\fill[green!30!white] (210:1.2) circle (2);
\fill[blue!30!white] (330:1.2) circle (2);
\end{scope}
\node at ( 90:2) {Typography};
\node at ( 210:2) {Design};
\node at ( 330:2) {Coding};
\node [font=\Large] {\LaTeX};
\end{tikzpicture}
\end{document}
多一个带有文字
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\tikzset{venn circle/.style={draw,circle,minimum
width=6cm,fill=#1,opacity=0.4}}
\node [venn circle = red] (A) at (0,0) {$A$};
\node [venn circle = blue] (B) at (60:4cm) {$B$};
\node [venn circle = green] (C) at (0:4cm) {$C$};
\node[left] at (barycentric cs:A=1/2,B=1/2 ) {$A \cap B$};
\node[below] at (barycentric cs:A=1/2,C=1/2 ) {$A \cap C$};
\node[right] at (barycentric cs:B=1/2,C=1/2 ) {$B \cap C$};
\node[below] at (barycentric cs:A=1/3,B=1/3,C=1/3 ){$A \cap B \cap C$};
\end{tikzpicture}
\end{document}