I need a node in the head element of a qroof in tikz-qtree (using tikz-qtree-compat). I need the 'np' to be a node so I can draw an arrow to it. However, the following breaks:
\documentclass[10pt]{article}
\usepackage{tikz-qtree}
\usepackage{tikz-qtree-compat}
\begin{document}
\begin{tikzpicture}
\Tree [ .TP I [ .T' T[past] [ .\node(vp){vP}; { } [ .v' v\\saw [ .VP { } [ .V' V(saw) \qroof{a man}.\node(nP){nP} ] ] ] ] ] ]
\end{tikzpicture}
\end{document}
The error is: Undefined control sequence \node(nP)nP.
Any ideas on how to accomplish a node there?
\documentclassand the appropriate packages so that those trying to help don't have to recreate it. That would not only clarify the question but also help to test that the solution does indeed fix your problem. – Peter Grill Nov 15 '11 at 18:55