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 want to have a flat arc over some letters. How is it possible?

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

\begin{document}

\bigfrown{PQR}    

\end{document}
share|improve this question

1 Answer 1

up vote 9 down vote accepted

Instead of scalebox you may use resizebox

\documentclass{article}
\usepackage{graphicx,amsmath}
\newcommand\bigfrown[2][\textstyle]{\ensuremath{%
  \array[b]{c}\text{\resizebox{6ex}{.7ex}{$#1\frown$}}\\[-1.3ex]#1#2\endarray}}

\begin{document}

\bigfrown{PQR}


\end{document}

This is very manual and you have to adjust the parameters of resizebox by yourself.

Edit:

Atleast with this code you don't have to guess the width:

\documentclass{article}
\usepackage{graphicx,amsmath,calc}
\newlength{\mywidth}
\newcommand\bigfrown[2][\textstyle]{\ensuremath{%
  \array[b]{c}\text{\resizebox{\mywidth}{.7ex}{$#1\frown$}}\\[-1.3ex]#1#2\endarray}}

\begin{document}
\settowidth{\mywidth}{PQRSPQ}
\bigfrown{PQRSPQ}

%\setlength{\mywidth}{0pt}
\settowidth{\mywidth}{PQR}
\bigfrown{PQR}


\end{document}

enter image description here

share|improve this answer
    
Thank you very much. –  user12290 Dec 8 '12 at 2:24
    
@user12290: You are welcome. Glad it helped. –  Harish Kumar Dec 8 '12 at 3:43

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.