Code: Select all
\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-qtree}
\begin{document}
\noindent\makebox[\textwidth]{
\begin{tikzpicture}
\tikzset{edge from parent/.style=
{draw,
edge from parent path={(\tikzparentnode.south)
-- +(0,-8pt)
-| (\tikzchildnode)}}}
\tikzset{every tree node/.style={align=center,anchor=north}}
\tikzset{level distance=40pt}%,sibling distance=0pt}
\baselineskip=0pt
\Tree [ .{a} [ .{x} {b,\\c} [ .{d\\f\\g\\h}
[ .{d} {d} {f} ] [ .{g} {d}
\node(pr){gs}; ] ] ] [ .{dsfg} \node(lgst){asdf};
{sdg} ] ]
\draw[<-] (pr)..controls +(east:1) and +(south:1) .. (lgst);
\end{tikzpicture}}
\end{document}
Here, several lines per node is allowed by
\tikzset{style={align=center,anchor=north}}
but this messes up the tree (the length of the branches).
Can this be remedied?