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'm a new user for lyx, and I am wondering how you can put the p above that right arrow?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

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.

share|improve this answer
add comment

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 overset-to.

share|improve this answer
    
Why CW? This perfectly answers the OPs question. –  Daniel Apr 17 '13 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. –  Daniel Apr 18 '13 at 5:33
    
@Daniel Thanks, changed! I'll keep this in mind for future... –  e-birk Apr 18 '13 at 20:13
add comment

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.