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.

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?

share|improve this question

closed as too localized by Alan Munn, percusse, Stefan Kottwitz Jan 7 '12 at 21:29

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Is there some reason you need to use lingtrees? I would recommend qtree or tikz-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:42
    
qtree is not an option because it does not work in figure environments. I was trying to use this because a professor recommended it; however, he's a linux user. I'll investigate tikz-qtree. –  Nate Glenn Nov 10 '11 at 23:52
    
What? qtree certainly works in figure environments. Maybe you should post a minimal example of what you don't think works with qtree and we can fix that. –  Alan Munn Nov 11 '11 at 0:02
    
Huh. Looking at the documentation, I see that it is just automath that has trouble in figure environments in qtree. I feel silly. Except that now I've learned that tikz-qtree is way better. I'll leave the question just in case, though. Thanks! –  Nate Glenn Nov 11 '11 at 0:12
    
Even that doesn't appear to be quite true. A quick test shows that the automath stuff works inside figures as well as long as it's inside the Tree itself. –  Alan Munn Nov 11 '11 at 0:22
add comment