Goal: I would like to have a more systematic way to draw a shape around multiple nodes in a tikz-qtree, where the nodes are connected by edges.
- Currently, I manually adjust
inner xsepandinner ysepand the rotation for each shape until it encircles just the nodes I want. - Otherwise, by default,
fitwill make a big regular shape (a square or circle) that tends to scoop up some nodes or labels I don't want. - How can I define a kind of shape once and for all and not have to manually adjust
xsepandysepandrotateeach time?
\documentclass{standalone}
\usepackage{tikz,tikz-qtree}
\begin{document}
\begin{tikzpicture}
\Tree[.\node(T){T}; Subject [.\node(Aux){Aux}; Aux [.\node(Asp){Asp}; Adverb [.\node(V){V}; Verb Object ] ] ] ]
\nodedraw,fit=(T)(Aux),style={ellipse,draw,red,inner xsep=0pt,inner ysep=-10pt,rotate=-40}{};
\node[draw,fit=(Asp)(V),style={rounded corners,inner ysep=-8pt,rotate=-28}]{};
\end{tikzpicture}
\end{document}

