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 need something like \stackrel{\frown}{MM'} to express the fact that MM' is some path. But I am not really satisfied by the look of the result. The \frown is too high. Would you please have a suggestion?

Edit 1: I just discovered that the font I'm using, ie kpfonts, offers a nice widearc command which suits my needs.

share|improve this question

7 Answers 7

up vote 9 down vote accepted

You may try \wideparen from the yhmath package:

\usepackage{yhmath}
...
$\wideparen{MM'}$
share|improve this answer

I don't know if in practice (I'm not mathematician, sorry) someone will need ever arcs wider than 4 or 5 lowercase characters. If this could be a real scenario, then \widearc of kpfonts, or \wideparen of yhmath or mathdesign, or \bigfrown, probably are not the best solution, since like others extensible accents, are unable to expand too much:

MWE MWE

This problem seem well solved with \overparent in Aditya answer, but this require ConTeX. For pdflatex, I think that a decent alternative could be \overgroup from mathabx package:

MWE

\documentclass{minimal}
\usepackage{mathabx}
\begin{document}
$\overgroup{M'}$
$\overgroup{MM'}$
$\overgroup{MMMM'}$
$\overgroup{MMMMMMMM'}$
\end{document}
share|improve this answer
    
The context solution replies on the font, so it should also work with lualatex –  Aditya Nov 5 '13 at 3:24

In ConTeXt, this accent is provided by \overparent:

\starttext
$\overparent{MMM}$

\startformula
  \int_{\overparent{MM'}} f(x) dx
\stopformula

\stoptext

which gives

enter image description here

share|improve this answer

from fourier added in preamble

\DeclareFontEncoding{FMX}{}{}%%%
\DeclareFontSubstitution{FMX}{futm}{m}{n}%%%
\DeclareSymbolFont{largesymbols}{FMX}{futm}{m}{n}
\DeclareMathAccent{\widearc}{\mathord}{largesymbols}{216}

Use

\[\widearc{MM'} + \int\limits_{\widearc{MM'}}\]
share|improve this answer
    
Welcome to tex.sx! A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "101010" on it). You can also use backticks ` to mark your inline code‌​. –  Gonzalo Medina May 24 '11 at 3:01

Accent seems like a way to go (example with XITS and XeTeX, in Plain):

\def\frown{\XeTeXmathaccent"0"1"23DC}
$$ \frown{MM'} \int\limits_{\frown{MM'}} $$
\bye

enter image description here

share|improve this answer
\documentclass{article}
\usepackage{graphicx,amsmath}
\newcommand\bigfrown[2][\textstyle]{\ensuremath{%
  \array[b]{c}\text{\scalebox{2}{$#1\frown$}}\\[-1.3ex]#1#2\endarray}}

\begin{document}

foo \bigfrown{MM'} bar

\[\int\limits_{\protect\bigfrown[\scriptstyle]{MM'}}\]

\end{document}

enter image description here

share|improve this answer
    
thank you but it does not work for an integral \int_{\bigfrown{MM'}} –  pluton Apr 10 '11 at 15:04
    
@pluton: sure, as always \int_{\protect\bigfrown{MM'}}. However, the \bigfrowncan also be defined as a protected definition. –  Herbert Apr 10 '11 at 15:13
    
correct but it does not scale down as it should –  pluton Apr 10 '11 at 15:30
    
@pluton: true, could also be done by the command itself, but that need some more work. See edited example for a simple workaround when it is only needed once –  Herbert Apr 10 '11 at 15:45

You can use arcs package for this. It provide \overarc command. But this package seems broken on my computer. :(

You can also use \wideparen provided by yhmath font package. yhmath is compatible with default CM fonts.

\documentclass{article}
\usepackage{yhmath}

\begin{document}
$\wideparen{MM'}$
\end{document}

enter image description here

MnSymbol package, mathdesign package, and maybe some other math font packages, also provide \wideparen. It would be great if you use MinionPro with MnSymbol, or Utopia with mathdesign fonts.

For example:

\documentclass{article}
\usepackage[utopia]{mathdesign}

\begin{document}
$\wideparen{MM'}$
\end{document}

enter image description here

share|improve this answer
1  
In recent distributions, yhmath comes with a corresponding Type1 font. –  egreg Apr 10 '11 at 14:49
    
@egreg: Sorry, I didn't notice it. Then it's okey to use yhmath. BTW, \adots in yhmath is wrong for different font size, one should use \iddots from mathdots package instead. That's another reason I don't like yhmath. –  Leo Liu Apr 10 '11 at 14:55
    
Well, and amatrix env. in yhmath is not compatible with latest amsmath. Pity. It should be \newenvironment{amatrix}{\left\langle\begin{matrix}}{\end{matrix}\right\rangle}‌​ –  Leo Liu Apr 10 '11 at 15:21
    
I'd like to avoid another package. –  pluton Apr 10 '11 at 15:31
    
@pluton: See revision 2. tex.stackexchange.com/posts/15473/revisions –  Leo Liu Apr 11 '11 at 4:49

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.