# How do I adjust the height of a superscript?

I have an operation that I call \conv, that I defined as follows:

\newcommand\conv{{}^{\scriptstyle\smile}}


Sometimes I use it in this situation:

$a\conv$


and sometimes I use it in this situation:

$$\big(\prod a\big)\conv$$


In both cases, the superscript \conv is at the same level. However, in the second case, the \sum is so big, that the \conv seems to hit it at mid-level. I want it to somehow adjust to the larger size of the \sum so that it is up at the top of the \big), not so far down.

Please let me know how I can clarify my question.

-

There may a be a beeter way to do this. Using

\newcommand\conv{^{\scriptstyle\smile}}


Should do the job. The empty {} is responsible for the constant height of smile.

\documentclass{article}
\newcommand\conv{^{\scriptstyle\smile}}
\begin{document}
$\left(\prod a\right)\conv$
$a\conv$
\end{document}


I suggest using  instead of  and  for . Also instead of using static \big( and \big), it is better to use dynamic \left( and \right)

EDIT Different version:

\documentclass{article}
\newcommand{\conv}[1]{{#1}^{\scriptstyle\smile}}
% \newcommand\conv{^{\scriptstyle\smile}}
\begin{document}
$\conv{\left(\prod a\right)}$
$\conv{a}$
$$\conv{}\conv{}$$
\end{document}

-
But then it doesn't let me put $\conv\conv$.! Here is the error message that I get: Double superscript. \conv ->^ {\scriptstyle \smile } l.58 \item $a\conv\conv =a$ for all $a\in A$. ? –  MathTeacher Apr 14 '12 at 0:17
use $$\conv{}\conv$$ –  Harish Kumar Apr 14 '12 at 0:23
\end{document}


-