On Fri, Feb 14, 2003 at 04:26:59PM +0200, Dekel Tsur wrote:
> On Fri, Feb 14, 2003 at 02:50:22PM +0100, Andre Poenitz wrote:
> > 
> > It only happens if there is a macro taking arguments which is neither
> > defined as LyX math macro nor otherwise known to mathed _and_ if that
> > argument needs its braces. 
> > 
> > In any case: try fixing it. You will be surprised how "trivial" this is.
> 
> Can you explain line 749 in math_parser.C ?
>        if (p->nuc().size() == 1 && p->nuc().back()->asNestInset() &&
>                    p->nuc().back()->extraBraces())
>              p->nuc() = p->nuc().back()->asNestInset()->cell(0);

We have encountered something with super or subscripts an keep that in a
ScriptInset * in p.

Now: If the 'nucleus' (i.e. the base part) has size 1  (i.e. is just a
single other inset) _and_ this thing is a NestInset (i.e. something that
contains other "cells" (blue boxes)) _and_ the has a suspicion, that it
wrote unneeded braces by itself, replace the NestInset with the contents of
its first cell.

"suspicious" are \displaystyle, ..., \rm, ..., and {}-Insets.

Andre'


-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to