Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How do I draw a tree upside down in qtree?

So root at the bottom and leaves at the top.

share|improve this question

1 Answer 1

up vote 7 down vote accepted

Page two in the manual should solve your problem.

The grow=direction and grow'=direction options control the orientation of trees just as for standard TikZ trees. However, direction must be one of up, down, left, or right. The difference between grow and grow' is that grow places children counterclockwise with respect to their parent and grow' places them clockwise:

\begin{tikzpicture}[grow'=up]
            \Tree [.NP [.Adj upside-down ] [.N tree ] ]
\end{tikzpicture}

enter image description here

share|improve this answer
    
Thanks very much! –  Zi Wang Apr 22 '12 at 16:36
1  
You're welcome! Make sure to mark your question as solved when this answer solved your problem. –  Ray Apr 22 '12 at 16:39
    
It might help to mention @ZiWang like this to get attention from him. Otherwise he might not see your comment. BTW: nice answer (+1) –  topskip Apr 22 '12 at 17:20
    
Just to be fair, tikz-qtree and qtree are different packages; you can't easily draw a tree upside down in regular qtree, so if Zi Wang was using the latter, he couldn't have found the answer in the manual. –  Alan Munn Apr 22 '12 at 17:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.