I'm trying to draw suffix trees in latex for a report. Since I'm programming trees I just print them in qtree format from my code so that I don't have to bother making them manually.
For small trees this works great. (The usual "banana" example incoming)
\documentclass{article}
\usepackage{graphics}
\usepackage{qtree}
\begin{document}
\begin{center}
\Tree[. [.\$ ]
[.banana\$ ]
[.a [.n [.a [.na\$ ]
[.\$ ]
] ] [.\$ ]
] [.n [.a [.na\$ ]
[.\$ ]
] ] ]
\end{center}
\end{document}
But if I want to draw a bigger tree, like "idontknowsomethingbig" I use the same process:
\documentclass{article}
\usepackage{graphics}
\usepackage{qtree}
\begin{document}
\begin{center}
\Tree[. [.\$idontknowsomethingbig\$ ]
[.i [.dontknowsomethingbig\$ ]
[.ngbig\$ ]
[.g\$ ]
] [.dontknowsomethingbig\$ ]
[.o [.ntknowsomethingbig\$ ]
[.wsomethingbig\$ ]
[.methingbig\$ ]
] [.n [.tknowsomethingbig\$ ]
[.owsomethingbig\$ ]
[.gbig\$ ]
] [.t [.knowsomethingbig\$ ]
[.hingbig\$ ]
] [.knowsomethingbig\$ ]
[.wsomethingbig\$ ]
[.somethingbig\$ ]
[.methingbig\$ ]
[.ethingbig\$ ]
[.hingbig\$ ]
[.g [.big\$ ]
[.\$ ]
] [.big\$ ]
]
\end{center}
\end{document}
All I get is this
Depending on the input I may get the last branch or just a word like in this case.
My guess is the code is syntactically correct and that the problem lies in it being to big and latex getting confused by it. But afaik it could be anything.



QobiTeX warning--- Can't handle 14 branching– David Carlisle Jan 22 '17 at 12:01