Am Mittwoch, 19. Juli 2006 18:38 schrieb Andre Poenitz:
> On Mon, Jul 17, 2006 at 08:43:04PM +0200, Georg Baum wrote:
> > Martin reminded me that I forgot \over. This is a bit special, since 
> > {1\over 2} is equivalent to \frac{1}{2}, and LyX does therefore not 
> > distinguish is from \frac once it is read in.
> > This patch changes that so that the normalization is not done in 
> > createMathInset, but when a \over inset is written.
> > This goes in tomorrow if nobody objects.
> 
> This 'normalization' was intentional as \frac can do whatever \over can
> and is more robust to parse.

If you read the cited text above carefully you will see that the 
normalization is still done, but at write time.
Having a \over in memory is certainly better than adding a pair of braces 
for each read \over as it was before this patch. If you think that having 
a \over in memory should be avoided by all means then please send a patch 
that fixes the brace problem your way. I am pretty sure that such a patch 
would not be as clean as mine was, because extraBraces() can not be used 
if you convert \over to \frac in createMathInset().


Georg

Reply via email to