Andre Poenitz wrote:
>
> > I propose the following. Upon cursor movement:
> > If the new cursor location is between mathtext character then enable
> > mathtext mode.
>
> How would you insert "normal math" between two math text chars then?
Get in there and use C-m, of course. Just like you would if you were
typing mathtext and wanted to insert some normal math.
> > If the new cursor location is between non-mathtext thingies then disable
> > mathtext mode.
> > Otherwise: for <left> and <right> preserve current mathmode modality,
> > for the rest disable mathtext mode.
> > Above, "between X" also includes "at beginning of inset and before X"
> > and "at end of inset and after X".
>
> Too complex for my taste. I don't want to look at "contextual information".
I do see your point, but that's really the behavior I would expect as a
user. Principle of Least Astonishment, etc.
> I'd rather have either:
> - leave it as it is, or
It's currently horrible. <left> into mathtext while in mathtextmode
leaving mathtextmode?!
> - C-m toggle math text mode, or
Doesn't it already?
> - make math text an proper inset with all pro's and con's
The end result would be exactly like I described, except for the
transition points (mathtext<->math) where you'll have to use extra
"logical" cursor movements to decide whether you're in or out of the
inset instead of relying on heuristics and C-m.
Could a mathtext inset include nested math? If so, how do you export
that? If not, typing mixed math+mathtext would be very unnatural.
> > BTW, I noticed that lately it's possible to enter digits, hiphens etc.
> > in mathtext -- that's a very good thing
>
> That was done in Italy.
Hmmm. Last time I was in Italy I spent most of my time avoiding the
suicidial drivers in Rome. Staying in my hotel room and coding indeed
would have been, uhm, much safer. :-)
Regards,
Eran Tromer