On Mon, Nov 04, 2002 at 04:47:09PM +0100, Andre Poenitz wrote:
> On Mon, Nov 04, 2002 at 09:38:21AM -0600, Bo Peng wrote:
> > enter math-mode, \alpha, C-m into text mode, b (in text mode),
> > \math-insert \beta (I map to C-g b), c (still in text mode). 
> > 
> > Lyx automatically enter mathmode and get out when I use \math-insert 
> > \beta because I am in text mode. More complicated formula like 
> > \sum_{i=1}^{\infty} etc are allowed.
> 
> The problem is in 1.2.1 "real math" or "math text" is a binary switch.
> 
> In 1.3 they nest. And that's the proper way to do it, otherwise
> \mbox or similar never could be implemented.

It shouldn't be much of problem. The solution is to do something similar
to what is done when pressing ctrl+b inside \mathbf inset:
When the user inserts any math element inside \textrm,
lyx should exit the \textrm inset if the cursor is at the end of the inset,
and otherwise the inset should be broken into two.

Reply via email to