Uwe Stöhr wrote:
> Hitting C-m in math-mode readily inserts an \mbox{}, such that the text inside is set in an
 > upright font - VERY USEFUL!
 >
 > I suggest however to use \text{} from amsmath instead.

I proposed the same recently:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg133423.html

Oh, sorry for not looking more carefully before posting!

That it was not implemented has a technical reason:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg133439.html

LyX 1.5.3 is already aware of the \text box. That means when I enter in math-mode "\text Space" LyX automatically displays that as a box/inset.

What do I have to put into my bind-file to get this same box (without typing \text), i.e. what is the function/LFUN name I have to use?

I'm too limited in C++ to check if the user has set in LyX to use AMS or not. When you know a bit C++ you could try to provide a patch starting with mine here:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg133424.html

I'm afraid that is above my C++ skills, too.

Thanks,
/Konrad

Reply via email to