Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Left-to-right Tree in LaTex, not top-to-bottom?

I'm looking to draw a tree where the root is on the left and each child node is drawn to the right.

It seems that the qtree package can't do this. Any one have any ideas?

I've found this document, which seems like it might help, but it's a bit obtuse.

like image 731
MSpeed Avatar asked Apr 06 '10 11:04

MSpeed


1 Answers

Take a look at TikZ trees, it can be done here, by setting the parameter grow=right.

For example:

http://media.texample.net/tikz/examples/PNG/probability-tree.png

[Taken from the TikZ website]

like image 66
Konrad Rudolph Avatar answered Sep 21 '22 22:09

Konrad Rudolph