I just want to place a tilde over $\mathcal{W}$
, and $\tilde\mathcal{W}$
is too small while $\widetilde{\mathcal{W}}$
is too big.
Is there a simple way to produce an in-between?
I just want to place a tilde over $\mathcal{W}$
, and $\tilde\mathcal{W}$
is too small while $\widetilde{\mathcal{W}}$
is too big.
Is there a simple way to produce an in-between?
It's a bit hacky, but does
\usepackage{amsmath}
$\overset{\sim}{\mathcal{W}}$
(which gives ) do what you're after?
Edit:
An alternative with adjustable height is
\newcommand\Wtilde{\stackrel{\sim}{\smash{\mathcal{W}}\rule{0pt}{1.1ex}}}
where you can change 1.1ex
to whatever you like.
Note, however, that in this implementation the tilde height is entirely independent of the size of the original W, so you may need to define several versions if you want to do this to lots of different letters.
\raisebox
or the like?
Commented
Aug 4, 2011 at 10:29
\newcommand\simcal[1]{\stackrel{\sim}{\smash{\mathcal{#1}}\rule{0pt}{1.1ex}}}
lets you write $\simcal{W}$
or whatever, and you can adjust the 1.1ex
to suit your spacing preferences.
\newcommand\Wtilde{\stackrel{\sim}{\smash{\mathcal{W}}\rule{0pt}{1.1ex}}}
is better. In this implementation the spacing is entirely independent of the size of the original letter, so making the letter an argument is not a brilliant idea.
Follow Ant's solution:
\documentclass{article}
\usepackage{accents}
\begin{document}
$\tilde W \widetilde W$
$\accentset{\sim}{W} \accentset{\textstyle\sim}{W}$
\end{document}
That's not very good. For more complicated solution, see How can I manually choose the size of a wide accent? (math mode)