Tag Info

9

Basically, with this approach to drawing trees, you have to figure out suitable spacing for the tree. TikZ doesn't do it for you. In this case, the bag nodes need to be wider (or you need to break the lines when mathematical expressions are too long). To avoid the crossings of edges and mixing up of nodes, you need to increase the sibling distance for level ...

3

Some small tweak suggestions: Increase the size of the text in the nodes bag, so your edges do not overlap text. That is, instead of 4em in the definition, use something like: \tikzstyle{bag} = [text width=5em, text centered] Change the vertical stretching with a global option. For instance when beginning the tikzpicture environment, use something like: ...

3

Do you want this? \documentclass{article} \usepackage{qtree} \begin{document} \Tree [.X [.leaf_1 leaf_4 node ] [.Y leaf_2 [.Z leaf_3 last !{\qbalance} ] ] ] \end{document} For the fancier tree, you will need a fancier package. Here's an example using Forest: \documentclass[tikz,border=10pt]{standalone} \usepackage{forest} \usetikzlibrary{shadows} ...

1

To typeset the tree itself, you just need to load prooftrees in the preamble and define any special symbols required by the particular content of the tree. In this case \lif is non-standard and we need the turnstile package for the turnstile. So, \documentclass[border=10pt,tikz,multi]{standalone} \usepackage{prooftrees,turnstile} ...

Top 50 recent answers are included