%%%------------------------------------------------------------------------------------------------------------ %%% SPMT规则 \begin{tikzpicture} {\small \begin{scope} { \begin{scope}[level distance=20pt] \node[scale=0.8, inner sep=0.1cm,align=center,draw] (cfrag1) at (0,0.25) {\Tree[.\node(sn1){NP}; [.\node(sn2){PN}; 他 ]]}; \end{scope} \begin{scope}[level distance=20pt] \node[scale=0.8, inner sep=0.1cm,align=center,anchor=south west,draw] (cfrag2) at ([xshift=1.2em]cfrag1.south east) {\Tree[.\node(sn3){P}; 对 ]}; \end{scope} \begin{scope}[level distance=20pt] \node[scale=0.8, inner sep=0.1cm,align=center,anchor=south west,draw] (cfrag3) at ([xshift=1.2em]cfrag2.south east) {\Tree[.\node(sn4){NP}; [.NN 形式 ]]}; \end{scope} \begin{scope}[sibling distance=15pt,level distance=20pt] \node[scale=0.8, inner sep=0.1cm,align=center,anchor=south west,draw] (cfrag4) at ([xshift=1.4em]cfrag3.south east) {\Tree[.\node(sn5){VP}; [.\node(sn6){VV}; 表示 ] [.\node(sn7){NN}; 担心 ]]}; \end{scope} \begin{scope}[sibling distance=40pt,level distance=20pt] \node[scale=0.8, inner sep=0.1cm,align=center,anchor=south west,draw] (cfrag6) at ([xshift=0em,yshift=4em]cfrag2.north west) {\Tree[.\node(sn11){VP}; [.\node(sn9){P}; ] [.\node(sn10){NP}; ] [.\node(sn13){VP}; ]]}; \end{scope} \begin{scope}[sibling distance=75pt,level distance=18pt] \node[scale=0.8, inner sep=0.1cm,align=center,anchor=south east,draw] (cfrag7) at ([xshift=-4.6em,yshift=0.5em]cfrag6.north east) {\Tree[.\node(sn14){IP}; [.\node(sn15){NP}; ] [.\node(sn16){VP}; ]]}; \end{scope} \node[scale=0.9,anchor=north,minimum size=18pt] (tw11) at ([xshift=-0.3em,yshift=-1.2em]cfrag1.south){he}; \node[scale=0.9,anchor=west,minimum size=18pt] (tw12) at ([yshift=-0.1em,xshift=0.5em]tw11.east){was}; \node[scale=0.9,anchor=west,minimum size=18pt] (tw13) at ([yshift=0.1em,xshift=0.5em]tw12.east){worried}; \node[scale=0.9,anchor=west,minimum size=18pt] (tw14) at ([xshift=0.5em]tw13.east){about}; \node[scale=0.9,anchor=west,minimum size=18pt] (tw15) at ([xshift=0.5em]tw14.east){the}; \node[scale=0.9,anchor=west,minimum size=18pt] (tw16) at ([yshift=-0.1em,xshift=0.5em]tw15.east){situation}; \draw[dashed] ([xshift=-0.3em]cfrag1.south) -- ([yshift=-0.3em]tw11.north); \draw[dashed] (cfrag2.south) -- ([yshift=-0.4em]tw14.north); \draw[dashed] (cfrag3.south) -- ([yshift=-0.4em]tw15.north); \draw[dashed] (cfrag3.south) -- ([yshift=-0.4em]tw16.north); \draw[dashed] (cfrag4.south) .. controls +(south:0.6) and +(north:0.6) .. ([yshift=-0.4em]tw13.north); { \draw[dashed,red] (cfrag2.south) -- ([yshift=-0.4em]tw14.north); \draw[dashed,red] (cfrag3.south) -- ([yshift=-0.4em]tw15.north); \draw[dashed,red] (cfrag3.south) -- ([yshift=-0.4em]tw16.north); } \draw[*-*] ([xshift=0.0em,yshift=-0.2em]cfrag1.north) -- ([xshift=0.0em,yshift=6.3em]cfrag1.north); \draw[*-*] ([xshift=-0.1em,yshift=-0.2em]cfrag2.north) -- ([xshift=-0.1em,yshift=4.2em]cfrag2.north); \draw[*-*] ([xshift=0.1em,yshift=-0.2em]cfrag3.north) .. controls +(north:2.4em) and +(south:2.4em) .. ([xshift=1.1em,yshift=2.6em]cfrag3.north); \draw[*-*] ([xshift=0.0em,yshift=-0.2em]cfrag4.north) -- ([xshift=0.0em,yshift=2.6em]cfrag4.north); \draw[*-*] ([xshift=0.0em,yshift=-0.2em]cfrag6.north) -- ([xshift=0em,yshift=0.8em]cfrag6.north); { \node [fill=blue,circle,inner sep=2pt] (rlabel2) at (cfrag2.north east) {{\color{white} \footnotesize{2}}}; \node [fill=blue,circle,inner sep=2pt] (rlabel3) at (cfrag3.north east) {{\color{white} \footnotesize{3}}}; \node [fill=blue,circle,inner sep=2pt] (rlabel6) at (cfrag6.north east) {{\color{white} \footnotesize{5}}}; } \begin{pgfonlayer}{background} { \node [fill=green!20,inner sep=0pt] (cfrag2back) [fit = (cfrag2)] {}; \node [fill=green!20,inner sep=0pt] (cfrag3back) [fit = (cfrag3)] {}; \node [fill=green!20,inner sep=0pt] (cfrag6back) [fit = (cfrag6)] {}; } { \node [anchor=south west,draw=red,thick,fill=red!20,inner sep=0pt,minimum height = 2em, minimum width=5.4em] (ps) at ([xshift=0em,yshift=0em]cfrag2.south west) {}; \node [anchor=south west,draw=red,thick,fill=red!20,inner sep=0pt] (pt) [fit = (tw14) (tw15) (tw16)] {}; } \end{pgfonlayer} } \end{scope} } \end{tikzpicture}