Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This is what I'm after: I'd like to have the sentence 'John loves his mother.' displayed with an arrow running from 'his' to 'John'. I looked at gb4e, but I found the documentation confusing and I haven't been able to make it work.

share|improve this question
6  
This one seems easier: let.uu.nl/~Alexis.Dimitriadis/personal/latex/underarrows.sty . In this case you would write: \linkto John \under loves \from his mother. –  Vivi Aug 17 '10 at 20:57
2  
@Vivi: Why is this a comment and not an answer? =) –  Dima Aug 17 '10 at 21:07
    
That seems to work fine, thanks. –  Tom Aug 18 '10 at 13:09
add comment

1 Answer 1

Use TikZ

\documentclass{article}
\usepackage{tikz}
\begin{document}
\tikzstyle{every picture}+=[remember picture]
\tikzstyle{na} = [shape=rectangle,inner sep=0pt]
\tikz\node[na](word1){John}; loves \tikz\node[na](word2){his}; mother.
\begin{tikzpicture}[overlay]
  \path[->,red,thick](word2) edge [out=90, in=90] (word1);
\end{tikzpicture}
\end{document}

output

I don't know what type of arrow you want =)

share|improve this answer
2  
The \usetikzlibrary{arrows,shapes,backgrounds} isn't needed. Also, remember to compile it twice to get the arrows set correctly. –  Loop Space Aug 17 '10 at 21:17
    
@Andrew Stacey: fixed. –  Dima Aug 17 '10 at 22:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.