I am struggling with inner node layout with Tikz. Basically, I want to add a line under the first text line inside a node, splitting it unevenly. Here is a try:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}[auto, node distance=3cm,
style1/.style={ellipse split, draw, align=center},
style2/.style={ellipse, draw, , align=center},
]
\node[style1] (1) {NODE1 \nodepart{lower} long name \\ foo \\ bar \\ baz};
\node[style2] (2) [right of=1] {NODE2 \\ long name \\ foo \\ bar \\ baz};
\end{tikzpicture}
\end{document}
The split
option seems to be able to split the ellipsis in half, leaving an enormous white space above the first line of text (see NODE1). I wish to render something like NODE2, but with a line separating the first line from the others. Here is an example of the desired output :
I tried to add \hrule
command just after the "NODE2
" text, but it does not seem to be possible. Do you have any idea on how to do this?
By the way, please note that I saw this related question and its accepted answer, but I believe it does not address my issue.