至少,我有以下代码:
\documentclass[8pt]{article}
\usepackage{tikz-qtree}
\usepackage{tikz-qtree-compat}
\begin{document}
\ex.
\begin{tikzpicture}[baseline]
\Tree[.CP Op$_c$ [.C' [.C is ] [.TopP \qroof{this task}.NP [.Top
[.Top is ] [.TP \qroof{\textit{pro}}.NP [.T' [.T ] \qroof{this task}.vP ] ] ]
] ] ]
\end{tikzpicture}
\end{document}
我想在 C 节点中的单词“is”上绘制一条单行删除线。我尝试将 \st{is} 添加到相关节点以创建删除线,但树无法打印。有什么想法可以做删除线吗?非常感谢!
答案1
您需要加载包soul
...
\documentclass[8pt]{article}
\usepackage{tikz-qtree}
\usepackage{tikz-qtree-compat}
\usepackage{soul}% <--- added
\begin{document}
%\ex. what is this?
\begin{tikzpicture}[baseline]
\Tree[.CP Op$_c$ [.C' [.C \st{is} ] [.TopP \qroof{this task}.NP [.Top
[.Top is ] [.TP \qroof{\textit{pro}}.NP [.T' [.T ] \qroof{this task}.vP ] ] ]
] ] ]
\end{tikzpicture}
\end{document}