Re: Text in formula .. bug?

2000-03-01 Thread Jean-Marc Lasgouttes

> "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



Re: Text in formula .. bug?

2000-02-21 Thread Herbert Voss

Staffan Ringbom wrote:
> 
> Hello,
> 
> I've found a pequliar "feature" in the equation editor under
> lyx-1.1.2 and lyx-1.1.4
> 
> when i insert the following sequence in a math-formula cell:
> 
> f(x)\in (0,1)\quad\textrm{when}\quad x\in \left(
> \underline{x},\bar{x}\right) \quad\textrm{otherwise}\quad f(x)=0

> Would like to know if somebody else has the same problem

it's the same to me.
when I write the text in the formula with Alt-m m (for text in
mathmode),
saving the file and reread it, everything works well, because there is
no space between \textrm and {.

Herbert

-- 
[EMAIL PROTECTED]
http://www.perce.de/voss



Text in formula .. bug?

2000-02-20 Thread Staffan Ringbom

Hello,

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

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

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

Everything looks nice on screen and with view dvi.

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


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


If I edit the lyx-file such that
 \textrm {
is replaced by
 \textrm{

(i.e. a blank space is deleted) everything is nice again!
I am able to read and save the file and
it looks nice in lyx everytime I reload the file.

I can live this but it is a little bit trubblesome

Would like to know if somebody else has the same problem

Best,
 Staffan

Use a redhat 6.1. Compiled lyx with gcc-2.95.2