\documentclass{article}
\usepackage{tikz-dependency}
\begin{document}
\begin{center}
\begin{dependency}[arc edge, arc angle=80, text only label, label style={above}]
\begin{deptext}[column sep=.7cm]
My \& dog \& also \& likes \& eating \\
PRP \& NN \& RB \& VBZ \& VBG \\
\end{deptext}
\depedge{2}{1}{poss}
\end{dependency}
\end{center}
\end{document}
哪个键控制圆弧和其上方的标签之间的空间?(在上面的例子中,为文本poss
。)
答案1
使用该positioning
库,并在您的样式定义中给出above=10pt
(或至少是您想要的距离)。
\documentclass{article}
\usepackage{tikz-dependency}
\usetikzlibrary{positioning}
\begin{document}
\begin{center}
\begin{dependency}[arc edge, arc angle=80, text only label, label style={above=10pt}]
\begin{deptext}[column sep=.7cm]
My \& dog \& also \& likes \& eating \\
PRP \& NN \& RB \& VBZ \& VBG \\
\end{deptext}
\depedge{2}{1}{poss}
\end{dependency}
\end{center}
\end{document}