Georg Baum wrote:
It does do the right thing, the error is that creating mathematical things
inside \textrm should not be possible in LyX. This is a known bug
(unfortunately not easy to fix):
http://bugzilla.lyx.org/show_bug.cgi?id=1527
Why, when I erased the entire paragraph containing this string and
retyped it, did the textmf string REAPPEAR in exactly the same
place?? I had to go into the lyx file and manually delete the bugger.
You can always go at the first position inside the \textrm and press
backspace. Then it will disappear.
\textrm inside math is _valid_ LaTeX code, but makes no real sense,
because it takes the textfont instead of the roman math font. If
a user inserts \textrm then it is on his own risk. If you do not
allow this in math mode it is a regression, because it maybe useful
for _text_ inside math without using amsmath.
Herbert