On Tue, Oct 24, 2000 at 08:44:14PM +0200, Stephen Reindl wrote:

> If I switch to math-text mode (via M-m m) I cannot enter digits and
> special characters in
> text mode. Everytime I enter a Digit or a closing paren (e.g. "2.2.3)")
> these digits are
> displayed and printed in math mode.
> 
> As an attachment I've included a patch which will stay in text mode
> until the user switches
> back to math mode via M-m m again.

This is very nice but there are few problems with your patch:

1. Special chars like $,%,{,etc. are not quoted when generating the latex
file, causing latex errors.

2. The special chars also cause problem when saving/loading the LyX file:
For example, after saving a file with a % in math text mode, when trying
to load the file LyX hangs.
Also, a file with {,} chars in math text mode will not load correctly.

3. If I go into math text mode, enter some chars, press backspace, and then
press a digit, the digit will not be in math text mode which is not what I
expect. In fact, if I have some text in math text mode, and I move the
cursor to the middle of the text and press a digit, it will not be in math
text mode.

4. Your patch also correct the indentation in several places. It might be
better to break your patch into two (one "real" patch, and an indentation
patch).

Reply via email to