I am drawing trees in LATEX. The qtree library seems to be what I need but the parent is always placed in the center of its children like this:
parent
/ \
child_1 child_2
(I'm a new user and does not have enough reputation to post an image.)
What I want is a right-growing tree like this:
root -- child_1 -- grandchild_1_1
\- child_2
\- child_3 -- grandchild_3_1
\- grandchild_3_2 -- great-grandchild_3_2_1
\- child_4 -- grandchild_4_1
Rotating the qtree to right-growing is insufficient since the parent nodes are then vertically aligned to the center of their children, but I need them to remain on the top of their subtrees.
I've tried trees library of TikZ, which allows customized "growth function" to specify the position of children. However it does not consider the size of subtrees, so in this case child_4 would follow immediately under child_3, making grandchild_4_1 overlap with grandchild_3_2.
Is there a simple way to just "disable" the centering of parents in qtree? Or is there any better solution (may be writing my own macro)?





!. Then someone with enough reputation can edit it back in. – mafp May 21 '13 at 15:05!? – user31039 May 21 '13 at 15:14![description][link], there is a!in front of it. But now you have enough rep to do it yourself anyway, and your ASCII art explains it fine, indeed. Good question, btw. – mafp May 21 '13 at 15:18