Consider two circles with long text nodes inside:
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) circle (1.5cm) node[text width=3cm] {This is a relatively long text};
\draw (5,0) circle (1.5cm) node[text width=3cm] {This is another very long text};
\end{tikzpicture}
\end{document}
I want to have the text centered and wrapped in each circle. I've tried two solutions so far:
Using
label=center:<my_text>insidenode, as suggested here. This centers the text, but does not wrap it. So the text goes outside the circle.Using
pos=0.5ormidwayinsidenode, as suggested here. This works fine for one circle, but not for two. The text is placed on top of each other in the first circle.
How can I achieve what I want?



align=centerto the node options. – Alan Munn Nov 13 '19 at 17:37