Re: [patch] Math macros not imported, Bug #21

2007-05-23 Thread José Matos
On Thursday 24 May 2007 00:25:46 Uwe Stöhr wrote: > As André gave his OK and me too this can go in right? Yep. :-) > regards Uwe -- José Abílio

Re: [patch] Math macros not imported, Bug #21

2007-05-23 Thread Uwe Stöhr
> I would like to hear what André has to say about this patch. :-) As André gave his OK and me too this can go in right? regards Uwe

Re: [patch] Math macros not imported, Bug #21

2007-05-23 Thread Stefan Schimanski
It should be included because it is not properly evaluated. LyX only has a global macro table at the moment. So "calling" a recursive macro twice will result in strange results. s/included/excluded/ Stefan PGP.sig Description: Signierter Teil der Nachricht

Re: [patch] Math macros not imported, Bug #21

2007-05-23 Thread Stefan Schimanski
Am 23.05.2007 um 01:52 schrieb Uwe Stöhr: First, I like your patch and give an OK. > FYI, I tried with these examples: > 5 \newcommand{\foo}[2][\frac{1}{2}]{(#1|#2)} $\foo 1{23}345$ > 6 \newcommand{\foo}[2][\frac{1}{2}]{(#1|#2)} $\foo 1{23}345$ What is the difference? Nothing :) Only for i

Re: [patch] Math macros not imported, Bug #21

2007-05-22 Thread Uwe Stöhr
First, I like your patch and give an OK. > FYI, I tried with these examples: > 5 \newcommand{\foo}[2][\frac{1}{2}]{(#1|#2)} $\foo 1{23}345$ > 6 \newcommand{\foo}[2][\frac{1}{2}]{(#1|#2)} $\foo 1{23}345$ What is the difference? Only for information: Why can't this and 5 and 6 not be imported in

Re: [patch] Math macros not imported, Bug #21

2007-05-22 Thread Stefan Schimanski
Am 22.05.2007 um 20:39 schrieb Andre Poenitz: On Tue, May 22, 2007 at 08:49:31AM +0100, José Matos wrote: On Tuesday 22 May 2007 7:08:55 am Stefan Schimanski wrote: I backported my fix to trunk as proposed by Uwe. The patch is attached to the bug report: http://bugzilla.lyx.org/show_bug.cgi? i

Re: [patch] Math macros not imported, Bug #21

2007-05-22 Thread Andre Poenitz
On Tue, May 22, 2007 at 01:58:42PM +0200, Stefan Schimanski wrote: > FYI, I tried with these examples: > > 1 \newcommand{\foo}{42} $\foo 1{23}345$ > 2 \newcommand{\foo}[1]{(#1)} $\foo 1{23}345$ > 3 \newcommand{\foo}[1]{(#1|#1)} $\foo 1{23}345$ > 4 \newcommand{\foo}[2]{(#1|#2)} $\foo 1{23}345$ > 5

Re: [patch] Math macros not imported, Bug #21

2007-05-22 Thread Andre Poenitz
On Tue, May 22, 2007 at 08:49:31AM +0100, José Matos wrote: > On Tuesday 22 May 2007 7:08:55 am Stefan Schimanski wrote: > > I backported my fix to trunk as proposed by Uwe. The patch is > > attached to the bug report: http://bugzilla.lyx.org/show_bug.cgi?id=21 > > I would like to hear what Andr

Re: [patch] Math macros not imported, Bug #21

2007-05-22 Thread Stefan Schimanski
FYI, I tried with these examples: 1 \newcommand{\foo}{42} $\foo 1{23}345$ 2 \newcommand{\foo}[1]{(#1)} $\foo 1{23}345$ 3 \newcommand{\foo}[1]{(#1|#1)} $\foo 1{23}345$ 4 \newcommand{\foo}[2]{(#1|#2)} $\foo 1{23}345$ 5 \newcommand{\foo}[2][\frac{1}{2}]{(#1|#2)} $\foo 1{23}345$ 6 \newcommand{\foo}[2

Re: [patch] Math macros not imported, Bug #21

2007-05-22 Thread Jean-Marc Lasgouttes
> "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: >> These should be detected and transformed to ERT. Stefan> They are. Look at the while loop. It looks for the { Stefan> character. As long as only proper #n arguments come, the macro Stefan> is assumed to be compatible (i.e. simple

Re: [patch] Math macros not imported, Bug #21

2007-05-22 Thread Stefan Schimanski
Am 22.05.2007 um 12:31 schrieb Jean-Marc Lasgouttes: "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> I backported my fix to trunk as proposed by Uwe. The patch is Stefan> attached to the bug report: Stefan> http://bugzilla.lyx.org/show_bug.cgi?id=21 What do you do with defi

Re: [patch] Math macros not imported, Bug #21

2007-05-22 Thread Jean-Marc Lasgouttes
> "Stefan" == Stefan Schimanski <[EMAIL PROTECTED]> writes: Stefan> I backported my fix to trunk as proposed by Uwe. The patch is Stefan> attached to the bug report: Stefan> http://bugzilla.lyx.org/show_bug.cgi?id=21 What do you do with definition more complicated than \def\foo#1{\bar{#1}}

Re: [patch] Math macros not imported, Bug #21

2007-05-22 Thread José Matos
On Tuesday 22 May 2007 7:08:55 am Stefan Schimanski wrote: > I backported my fix to trunk as proposed by Uwe. The patch is > attached to the bug report: http://bugzilla.lyx.org/show_bug.cgi?id=21 I would like to hear what André has to say about this patch. :-) > Stefan -- José Abílio

Re: [patch] Math macros not imported, Bug #21

2007-05-21 Thread Richard Heck
I'm sure this would be most welcome to people who exchange LyX files with pure LaTeX users. Stefan Schimanski wrote: > I backported my fix to trunk as proposed by Uwe. The patch is attached > to the bug report: http://bugzilla.lyx.org/show_bug.cgi?id=21 > > Stefan -- ==

[patch] Math macros not imported, Bug #21

2007-05-21 Thread Stefan Schimanski
I backported my fix to trunk as proposed by Uwe. The patch is attached to the bug report: http://bugzilla.lyx.org/show_bug.cgi?id=21 Stefan PGP.sig Description: Signierter Teil der Nachricht