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.

For some reason the arrow between S/V/NP and V'V is not drawn. I have no idea why ...

\documentclass{article}



\usepackage{tikz-qtree}
\tikzset{every roof node/.append style={inner sep=0.1pt,text height=2ex,text depth=0.3ex}}

\usetikzlibrary{tikzmark}

\newcommand{\sliste}[1]{%
\mbox{%
$\left\langle\mbox{\scshape #1}\right\rangle$}%
}


\begin{document}

\begin{tikzpicture}[
level 1+/.style={level distance=3\baselineskip},
frontier/.style={distance from root=15\baselineskip},
connect/.style={semithick,<->,color=green}]
\Tree[.S
        [.\node (NP) {NP}; bogen ]
        [.\node (S/NP) {S/NP};
          [.{V \sliste{ S//V }} 
            [.V læser$_k$ ] ]
           [.\node (S//V/NP) {S/V/NP};
             [.NP Jens ]
             [.\node (V/V) {V$'$V};
               [.{V//V}  trace ]
               [.\node (NP/NP) {NP/NP}; trace ] ] ] ] ] ]
\draw[connect] (NP/NP.north east) [bend right] to (V/V.south east);
\draw[connect] (V/V.north east) [bend right] (S//V/NP.south east);
\draw[connect] (S//V/NP.north east) [bend right] to (S/NP.east);
\draw[connect] (S/NP.north east) [bend right] to (NP);
\end{tikzpicture}


\end{document}
share|improve this question
    
Just a curious question: why are you naming the node by (S//V/NP) with double slash if its contents is {S/V/NP} with single slash (between S and V)? –  Sigur Jan 25 at 13:28
    
This is what the node was in the original example, I simplified the stuff in the tree but left it in the node labels. Linguistically this tree does not make sense ... –  Stefan Müller Jan 25 at 14:39

1 Answer 1

up vote 5 down vote accepted

It is missing to between the nodes (V/V.north east) and (S//V/NP.south east)

\draw[connect] (V/V.north east) [bend right] to (S//V/NP.south east);

enter image description here

Sugestion

What do you think to change some anchors to obtain new arrows, as below?

enter image description here

\draw[connect] (NP/NP.north east)   [bend right] to (V/V.east);
\draw[connect] (V/V.north east)     [bend right]    (S//V/NP.east);
\draw[connect] (S//V/NP.north east) [bend right] to (S/NP.east);
\draw[connect] (S/NP.north west)    [bend right] to (NP);
share|improve this answer
    
Well, yes in principle your suggestion looks better, but the idea is to connect the NPs. I asked in another question about a way to do this, but this seems to be impossible with tikz-qtree. –  Stefan Müller Jan 25 at 14:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.