I would like to have a command \simrightarrow, that is, a \rightarrow with a \sim over it. Stealing code from @egreg, I got:
\documentclass{article}
\usepackage{unicode-math}
\newcommand{\simrightarrow}{\mathrel{\ooalign{
$\to$\cr
\hidewidth\raise.3em\hbox{$\sim\mkern3mu$}\cr
}
}
}
\begin{document}
\( M \simrightarrow N \)
\end{document}
However, the tilde is still too big. How can I scale it down?


$\scriptstyle\sim? but as you are usingunicode-mathanyway then using\similarrightarrowseems most natural as that is a single glyph not an oalign construct – David Carlisle May 18 '19 at 05:39\similarrightarrow. That's why I got into\ooalign. – May 18 '19 at 05:42\scriptstylebecause I did not expect it to behave correctly under scaling (\simrightarrow_{\simrightarrow}) but it seems, it actually does. Thank you! – May 18 '19 at 05:47