math-mode inserts \text instead of \mbox when already in math mode,
since this supports accented characters.
I'd like is to let LyX know about TeX's scoping rules...
-Yves Bastide:
-
-- use AMS's \text instead of \mbox. It supports accented characters,
- among others... (selected via validate()?)
-
Angus:
if (currentMode() <= Inset::TEXT_MODE)
cur.plainInsert(MathAtom(new InsetMathEnsureMath(buffer_)));
else
- cur.plainInsert(MathAtom(new InsetMathBox(buffer_, from_ascii("mbox"))));
+ cur.plainInsert(createInsetMath("text", buffer_));
cur.posBackward();
cur.pushBackward(*cur.nextInset());
cur.niceInsert(save_selection);