Here's how to do it with pstricks
. I also suggest a line with arms:
\documentclass[svgnames]{article}
\usepackage{pst-node}
% \usepackage{auto-pst-pdf} to compile with pdflatex --enable-write18 (MiKTeX)
% or pdflatex --shell-escape (TeXLive, MacTeX)
\begin{document}
This is a very long\Rnode{st}{ \underline{sentence that}} appears in this very \Rnode{ss}{\underline{short short}} document.
\ncarc[arrows = ->, linecolor =LightSteelBlue, arcangle = 15, nodesep = 1pt]{st}{ss}
\ncbar[arrows = ->, linecolor =LightCoral, angle = -90, arm = 0.75em]{ss}{st}
\end{document}
Some explanations on the concepts at work: the two sentences are defined as Rnodes
(aligned by their base line), then they're connected with an arc connection (\ncarc
) or a line with arms connection (\ncbar
). The parameters used are explained in detail in the documentation of pst-node
. Note these graphic elements have no dimension for TeX, so they don't modify
the layout.
