答案1
可以轻松完成pstricks
,在相关位置定义节点,并使用节点连接将它们链接起来:
\documentclass[svgnames]{article}
\usepackage{geometry}
\usepackage{upgreek}
\usepackage{soulutf8}
\usepackage{pst-node}
\begin{document}
[John\textsubscript{[3.S\rnode{G}{G}.M]} managed-$\nu$ [\textsubscript{Fin P}PRO\textsubscript{[$\upphi$: \rnode{3}{3}.\rnode{SG}{SG}.M]-i}%
Fin[\textsubscript{TP} \st{PRO}\textsubscript{[$\upphi$:3\rnode{S}{.S}G.M]-i} to stay healthy]]]%
\psset{linejoin=1, linearc=0.05, arrows=->, arrowinset={0.1}, nodesep=3pt, angle=-90}\vskip 5ex
\ncbar{G}{3}\nbput{\bfseries by predication}
\ncbar{SG}{S}\nbput{\bfseries by movement}
Some more text. Some more text. Some more text. Some more text.
\end{document}
答案2
加载包
\usepackage{tikz} \usetikzlibrary{tikzmark}% needed for \tikzmarknode
使用命令包裹箭头的起点或终点部分
\tikzmarknode{name}{part of text}
添加部分
\begin{tikzpicture}[remember picture,overlay] \draw commands that use the names from \tikzmarknode \end{tikzpicture}
运行 pdflatex 至少两次。
\documentclass{article}
\usepackage{geometry}
\usepackage{tikz}
\usetikzlibrary{tikzmark}% needed for \tikzmarknode
\usetikzlibrary{arrows}% only used for arrow tip stealth'
\begin{document}
[John\textsubscript{\tikzmarknode{1}{[3.SG.M]}} managed-$\nu$
[\textsubscript{Fin P}PRO
\textsubscript{\tikzmarknode{2}{[$\phi$:3.SG.M]-i}}Fin
[\textsubscript{TP} PRO\textsubscript{\tikzmarknode{3}{[$\phi$:3.SG.M]-i}}
to stay healthy]]]
\begin{tikzpicture}[remember picture,overlay,>=stealth']
\draw[->] (1) -- ++(0,-0.5) -| node[below,pos=0.25]{\bfseries by predication} ([xshift=-5pt]2);
\draw[<-] (3) -- ++(0,-0.5) -| node[below,pos=0.25]{\bfseries by movement} ([xshift=5pt]2);
\end{tikzpicture}
\end{document}