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.

I'd like to know if there's a symbol in math mode like \frown but with an arrow in its end. Like this:

enter image description here

(I just love using paint hahaha) Thanks! :)

share|improve this question
2  
You can prove \stackrel\curvearrowright{\text{AB}} –  mle May 4 at 19:58
    
I didn't think about it. Thanks! :) –  mvfs314 May 4 at 20:00

2 Answers 2

up vote 7 down vote accepted
\documentclass[12pt]{report} 
\usepackage[T1]{fontenc} 
\usepackage{mathtools,mathabx}
\newcommand\AR[1]{\makebox[0pt][l]{$#1$}\kern0.5em\raisebox{1.5ex}{$\curvearrowright$}}
\begin{document}

$\AR{AB}$ \Huge\AR{AB}

\end{document}

enter image description here

share|improve this answer

Another solution with TiKz spreading more than two letters:

\documentclass[]{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}

\newcommand\source[1]{%
    \tikz[remember picture,baseline,inner sep=0pt] {%
        \node [name=source,anchor=base]{$#1$};
    }%
    \setcounter{target}{0}
}
\newcounter{target}
\newcommand\target[1]{%
    \tikz[remember picture,baseline,inner sep=0pt] {%
        \node [name=target-\thetarget,anchor=base]{$#1$};
    }%
    \stepcounter{target}%
}
\newcommand\drawarrows{
    \tikz[remember picture, overlay, bend left=45, -latex] {
        \foreach \i [evaluate=\i as \n using int(\i-1)] in {1,...,\thetarget} {
            \draw ([xshift=-1mm,yshift=0.5mm]source.north) to ([xshift=1.5mm,yshift=0.5mm]target-\n.north);
        }
    }
}

\begin{document}
  $$  \source{A}\target{B}  \drawarrows $$
  $$  \source{A} B \target{C}  \drawarrows $$
  $$  \source{A} BC \target{D}  \drawarrows $$
\end{document}

enter image description here

share|improve this answer

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.