由于某种原因,S/V/NP 和 V'V 之间的箭头没有画出来。我不知道为什么...
\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}
答案1
to
节点(V/V.north east)
之间缺失(S//V/NP.south east)
\draw[connect] (V/V.north east) [bend right] to (S//V/NP.south east);
建议
您认为更换一些锚点以获得新的箭头怎么样,如下所示?
\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);