# How to typeset converge in probability in lyx or latex?

I'm a new user for lyx, and I am wondering how you can put the p above that right arrow?

You can insert the LaTeX command overset:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$a \overset{p}{\to} b$
\end{document}


Just insert it as red text.

This is natively possible in LyX (as many other math commands!).

Start math mode (e.g., by Ctrl+M). Then type

\overset + space + \to + space + up (cursor key) + p + space

This produces .

• Why CW? This perfectly answers the OPs question. Apr 17, 2013 at 22:25
• Yes, but "how to do it in LyX" really is the point here. You answered it and deserve the rep; the chance (and necessity) for somebody else to contribute further to this answer is pretty low, so CW doesn't make a lot of sense here. Apr 18, 2013 at 5:33
• @Daniel Thanks, changed! I'll keep this in mind for future... Apr 18, 2013 at 20:13