2

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! :)

  • 3
    You can prove \stackrel\curvearrowright{\text{AB}} – mle May 4 '14 at 19:58
  • I didn't think about it. Thanks! :) – mvfs314 May 4 '14 at 20:00
7
\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

6

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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