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
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.
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
grandchild_4_1 overlap with
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)?