省略記号の境界上のサブノード

省略記号の境界上のサブノード

ノードの境界にいくつかのサブノードを配置したいと思います。これが私の持っているものです:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}

  \begin{tikzpicture}
    \node[rectangle, draw, inner sep=10pt] (Foo) {Foo};
    \node[rectangle, draw, fill=white, left=3pt of Foo.south] {\tiny S};
    \node[rectangle, draw, fill=white, right=3pt of Foo.south] {\tiny T};
  \end{tikzpicture}
\end{document}

結果は次のようになります:

しかし、今度は楕円を図形として使用したいと思います。

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{positioning,shapes}

\begin{document}

  \begin{tikzpicture}
    \node[ellipse, draw, inner sep=10pt] (Foo) {Foo};
    \node[ellipse, draw, fill=white, left=3pt of Foo.south] {\tiny S};
    \node[ellipse, draw, fill=white, right=3pt of Foo.south] {\tiny T};
  \end{tikzpicture}
\end{document}

そして、当然のことながら、サブノードは境界上に配置されなくなり、やや下に配置されます (ただし、ベース ノードに重なるのに十分な大きさです)。

これらのサブノードをベースノードの境界に正確に配置するにはどうすればよいですか?

答え1

配置の代わりに、次のように図形の境界に明示的に配置することもできます。

\node[ellipse, draw, fill=white] at (Foo.-70) {\tiny T};

十分です。必要に応じて、shift=(<x amount>,<y amount>)微調整に使用できます。

関連情報