Drawing lines between arbitrary words on a page

run it with xelatex

\documentclass{scrbook}
\usepackage{fontspec}
\usepackage{pst-node}

\begin{document}

\begin{tabular}{lllllll}
\ovalnode[linestyle=dashed]{bazas}{bāz-a\v{s}} & agar & mi-xāh-i  & fardâ  
   & \rnode{blk1}{~} & bo-kon-i\\
open-\textsc{3sg}        & if   & \textsc{ipf}-want-\textsc{2sg} & tomorrow & {}                  
   & \textsc{sbj}-do-\textsc{2sg}\\
\end{tabular}\\[2ex]
`If you want to open it tomorrow \ldots'
\ncbar[linestyle=dashed,arrows=->,angle=-90,arm=20pt]{blk1}{bazas}

\end{document}

enter image description here


Addition: A solution with tikz:

\documentclass{scrbook}

\usepackage{tikz}
\usetikzlibrary{shapes.geometric}

\begin{document}

\begin{tabular}{lllllll}
\tikz[remember picture,baseline]\node[anchor=base,ellipse,draw](bazas){baz-a\v{s}};
& agar
& mi-xah-i
& fardâ
% & \node{blk1}{}
& \tikz[remember picture,overlay]
    \draw[->,dashed] (0,0) -- ++(0pt,-4.75ex) coordinate(tmp1)
    -- (bazas |- tmp1) -- (bazas |- tmp1) -- (bazas);
& bo-kon-i
\\
open-\textsc{3sg}
& if
& \textsc{ipf}-want-\textsc{2sg}
& tomorrow & {}
& \textsc{sbj}-do-\textsc{2sg}\\
\end{tabular}\\[2ex]
`If you want to open it tomorrow \ldots'

\end{document}

Result with tikz

Tags:

Postscript