\xrightarrow is supported 'natively'.
Just make sure to enable AMS.
The problem is the optional argument, not just using \xrightarrow
If it is indeed imposible, might it be better if there was an option within math mode to enter pure latex, without Lyx "helping" in the middle.
Even that work.
No it doesn't (for me), the moment I press "[" to start the optional argument I'm out of LaTeX mode and into LyX's math mode. I would like something in which LyX will not "interfere" (like in the ERT box in plain text after pressing ctrl-L) - This should be used only for special cases. The use of "\" to turn on math-mode is good (and much more convenient) for 99.99% of the cases.
I'm using Lyx 1.2.1 (Xforms)
Brr... I think it should work there, too, but I've not checked. Especially the native xrightarrow support might be a 1.3.x feature.
Not the optional argument (just the text above the arrow).
Thanks again,
Amir.
P.S.
1.3.x is not exactly an option, I would like to have compatibilty with the university computer.
