2

Exactly like this. I can't figure out where to start. I don't know why Tikz confuses me so much.

8

Welcome to TeX.SE! The way this site is meant to work is that if you have problems with some TeX code, you can post it in form of a so-called MWE, i.e. a minimal document that starts with \documentclass and ends with \end{document} along with some information on where you got stuck. However, as you are new here, I'd like to give you a start, hoping that you find the time to try something yourself and find out how much more fun it is.

\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}[font=\sffamily]
\foreach \X [count=\Y starting from 2] in {C,B,A}
{\draw (-\Y,-\Y/2) circle ({1.5*\Y} and \Y);
\node at (1-2*\Y,-1.1*\Y) {class \X}; }
\draw ([xshift=-0.5cm,yshift=-0.5cm]current bounding box.south west)
rectangle ([xshift=0.5cm,yshift=0.5cm]current bounding box.north east);
\node[anchor=south] at (current bounding box.north) {Three classes};
\end{tikzpicture}
\end{document}

enter image description here

Of course there are dedicated packages for that, allowing you to do much more sophisticated things, just a Google search away.

  • 2
    +1 for the foreword :) – CarLaTeX Nov 14 '18 at 7:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.