答案1
再举一个例子:
\documentclass[tikz, 12pt, margin=3.141592]{standalone}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}[
E/.style = {ellipse, draw,
minimum height=#1, minimum width=#1*2},
every label/.append style = {inner sep=2pt, font=\small}
]
\node[E=3em, label=part 2] {part 3};
\node[E=6em, label=part 1] {};
\end{tikzpicture}
\end{document}
答案2
\documentclass[border=10pt]{standalone}%[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{shadows,arrows,shapes,positioning,calc}
\tikzset{
ell/.style={draw,ellipse,minimum height=2em,minimum width=8em,align=center},
elll/.style={draw,ellipse,minimum height=4em,minimum width=10em,align=center},
every label/.style={font=\scriptsize},
}
\begin{document}
\begin{tikzpicture}
\node[ell, label=90:text] at (0,0) {};
\node[elll, label=90:text] at (0,0) {};
\node[]at (0,0){\scriptsize t};
\end{tikzpicture}
\end{document}