I'm using MikTex 2.9 on Windows 7. I also have python 2.7 installed and added to my path. I'm trying to install and use lingtrees to draw syntax trees. Unfortunately it doesn't have a MikTex distribution, so I have to install it by hand. I am using this distribution (the documentation by itself is here). I've create a local tex mf directory and added it as a root in MikTex options. I added each of the necessary sty files to that directory, and trees.py is also in my path. I tried compiling this minimal document that comes with the distribution:
\documentclass[12pt]{article}
\usepackage{cm-lingmacros, lingtrees}
\begin{document}
Here is a very simple example:
\begin{example}
.[
S
NP
John
VP
V
bit
NP|tri
Fido's best mate|tri
.]
\end{example}
That was easy, wasn't it?
\end{document}
But instead of producing a tree, the bracketed notation is output (minus the newlines). "That was easy, wasn't it?" Not really. Any ideas?
lingtrees? I would recommendqtreeortikz-qtree(especially the latter) as a much simpler alternative. See e.g. How to draw syntactical trees with parallel leafs for a natural language? for some examples. – Alan Munn Nov 10 '11 at 23:42qtreecertainly works in figure environments. Maybe you should post a minimal example of what you don't think works withqtreeand we can fix that. – Alan Munn Nov 11 '11 at 00:02Treeitself. – Alan Munn Nov 11 '11 at 00:22