>>>>> "Staffan" == Staffan Ringbom <[EMAIL PROTECTED]> writes:

Staffan> Hello, I've found a pequliar "feature" in the equation editor
Staffan> under lyx-1.1.2 and lyx-1.1.4

Staffan> when i insert the following sequence in a math-formula cell:

Staffan> f(x)\in (0,1)\quad\textrm{when}\quad x\in \left(
Staffan> \underline{x},\bar{x}\right) \quad\textrm{otherwise}\quad
Staffan> f(x)=0

Staffan> Everything looks nice on screen and with view dvi.

Staffan> However, when I save the file, close it and read it again, I
Staffan> get it all screwed up. In fact when I read the lyx file I see
Staffan> this.

The problem is that mathed knows about \textrm, which can be obtained
via 'math-text-mode'. If you type M-m m in a formula, you'll get
exactly the effect of \textrm{}. This means that, since the parsing of
latex files is very fragile, it will break when it sees the extra
space. It took a quick look at it, but I am afraid to break everything
with each change I ponder :(

A similar problem (maybe the other one you described) is when people
add a \left( without the corresponding \right).

JMarc

Reply via email to