答案1
像这样:
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\draw (0,0) rectangle (8,5);
\node [at={(1,4)}] {$S$};
\draw[pattern=north east lines] (4.5,2) ellipse[x radius = 3,
y radius = 1.5];
\node [at={(1,1.5)}] {$B$};
\draw [fill, color=white] (5,2) ellipse [x radius =2,
y radius = 1];
\node [at = {(5,2)}] {$A$};
\end{tikzpicture}
\end{document}