这是我尝试过的:
\usepackage{qtree}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usepackage{tikz-qtree-compat}
\usepackage{xytree}
\usepackage{tikz-dependency}
\usepackage{graphicx}
\usepackage{gb4e}
\begin{tikzpicture}[every tree node/.style={align=center,anchor=north}]
\Tree[.CP {} [.C\1 C
[.TP \qroof{Stacey}.DP{\textsubscript{i}} [.T\1 T\\did
[.VP $t_i$ [.V\1 V\\{$\bm{\varnothing}$}\textsubscript{ACTIVE}
[.VP {} [.V\1 V\\break \node[draw,circle]{\qroof{what}.DP}; ] ] ] ] ] ] ] ]
\end{tikzpicture}
但这会导致:
我如何才能阻止“DP”、三角形和“什么”分离并使圆圈恰到好处?
答案1
减少inner sep
。我还通过加载它正在使用的包来编译你的代码。
\documentclass[tikz,border=3.14mm]{standalone}
\usepackage{tikz-qtree}
\usepackage{tikz-qtree-compat}
\usepackage{bm,amssymb}
\begin{document}
\begin{tikzpicture}[every tree node/.style={align=center,anchor=north}]
\Tree[.CP {} [.C\1 C
[.TP \qroof{Stacey}.DP{\textsubscript{i}} [.T\1 T\\did
[.VP $t_i$ [.V\1 V\\{$\bm{\varnothing}$}\textsubscript{ACTIVE}
[.VP {} [.V\1 V\\break \node[draw,circle,inner sep=0pt]{\qroof{what}.DP}; ] ] ] ] ] ] ] ]
\end{tikzpicture}
\end{document}