我想用箭头将一些文本附加到此语法树中的特定节点。目前,我无法让文本跨越多行,因此一旦到达右边距,它就会被切断。这是我目前的代码:
\begin{tikzpicture}[every pin edge/.style={stealth-,shorten <=0.5pt},
Fit/.style={draw,inner sep=0.2pt,fit=#1},sibling distance=1em]
\Tree[.\textbf{T}
[.\node(not){\textbf{not}};
]
[.\textbf{F}
[.\node(T){\textbf{T}}; \edge[roof]; \node(T){the circle
\dots}; ]
[.\node(and){\textbf{and}};]
[.\node(F){\textbf{F}}; \edge[roof]; \node(FO){it is the
long \dots}; ]
]
]
%
\node[Fit=(F)(FO),pin=right:{\textbf{Because something in the
situation shown is perpendicular to the dotted line,
namely the short solid line, but the long solid line
isn’t perpendicular to the dotted line.}}]{};
\end{tikzpicture}
以下是输出的图片:
如果可能的话,我还想使文本变小一些。