4

How to be codes for trigonometric arc AB like that:enter image description here

( not using kpfonts ). Thanks.

percusse
  • 157,807
Exdata
  • 63
  • 4
  • 4
    Welcome! What have you tried? Where have you looked? Why are you stuck? If you are particular about fonts, which are you using? A minimal example would be the ideal way to provide some of this information. – cfr Feb 08 '16 at 02:30
  • Are you using XeTeX or LuaTeX? – JRN Feb 08 '16 at 12:16
  • Thank you for replying. I can use kpfonts to make it but all fonts in the document changed. Is there a way to make that symbol but reserving all the other fonts. I don't know using XeTex or LuaTex. – Exdata Feb 08 '16 at 13:42

2 Answers2

3

You could draw this with tikz:

Sample output

\documentclass{article}

\usepackage{amsmath,tikz}

\newcommand{\curvearc}{\tikz[trim left]{\draw[->] (0,0) to[bend left] (1em,0);}}

\begin{document}

\( \stackrel{\curvearc}{AB} \)

\end{document}

If you would like the width of this arrow symbol to vary with the material underneath and then you can use the following more complicated definition:

Sample output

\documentclass{article}

\usepackage{amsmath,tikz}

\newlength{\curvearclength}
\newcommand{\curvearcover}[1]{\mathpalette\curvearcoverhelper{#1}}
\newcommand{\curvearcoverhelper}[2]{%
  \settowidth{\curvearclength}{\( #1#2 \)}%
  \setlength{\curvearclength}{0.6\curvearclength}%
  \stackrel{\tikz[trim left]{\draw[->] (0,0) to[bend left] 
    (\the\curvearclength,0);}}{#1#2}}

\begin{document}

\( \curvearcover{AB} \)

\bigskip

\( \curvearcover{IJ} \)

\bigskip

\( \scriptstyle\curvearcover{AB} \)

\end{document}
Andrew Swann
  • 95,762
2

\usepackage{fourier}

Then

$\wideOarc{AB}$

However, as Andrew Swann noted in a comment, loading the fourier package changes all the fonts in the document.

JRN
  • 294
  • 1
    This will change all fonts in the document. – Andrew Swann Feb 08 '16 at 09:59
  • Could you at least convert it to a LuaTeX solution like this http://tex.stackexchange.com/questions/38402/how-to-pick-a-specific-symbol-from-a-specific-font ? – percusse Feb 08 '16 at 10:42
  • @percusse, thank you for the suggestion. However, I am not familiar with XeTeX or LuaTeX. (I use pdfLaTeX.) – JRN Feb 08 '16 at 12:20