I'm a linguist rather than a mathematician and the problem I have has to do with a particular type of notation we use in linguistics but I am pretty sure that somebody in this forume might be able to help me with this. A friend of mine who is also a linguist has asked me if he can use the TeX filter in Moodle to produce an image of what in theoretical linguistics we call AVMs (Attribute Value Matrices). It would be a bit involved to explain what an AVM is and what it represents but you can get an idea by having a look at the graph I enclose below.

My friend says that in order to get these kinds of structures in LaTex for regular print documents he introduces a reference to a specific stylesheet or to a specific package in the preamble (I can see, for instance, that at the beginning of some of the documents that he has given me to play with he has something like \usepackage{pstricks,pst-node,pst-tree}). My problem is that, while it seems obvious to me that I shouldn't introduce any code that refers to packages or style sheets between the $$ symbols, since these are not, strictly speaking, TeX commands, if I don't introduce them I cannot get the graphs for these kinds of structures either.

My question is: is it possible to get a graph like the one below with the current TeX filter contained in Moodle? If so, what do I need to do to get it? I don't know whether this is too much work, but could somebody give me the string of TeX code that would generate what you see in the graph? This would help me figure out what I'm doing wrong and I could go on from there. If anybody could lend me a hand with this, I would really appreciate it.

Josep M

.