Re: Possible bug - Re: Math macros, how to use?
On 21-Apr-99 Etienne Grossmann wrote: indeed, LyX "sees" all the macros that have been defined in all its open documents (and apparently in those it has closed too). Sorry for not having thought about that ... That's ok -- now that it is known, it can be fixed! :) It might save on memory, too, come to think of it. Learning more every day, --- // Carl Hudkins ]=[ ICQ: 5723399 ]=[ PGP: 0x50238d9e // // Vida i am afraid of programs! // Vida uses Windoze :)
Re: Possible bug - Re: Math macros, how to use?
On 21-Apr-99 Etienne Grossmann wrote: indeed, LyX "sees" all the macros that have been defined in all its open documents (and apparently in those it has closed too). Sorry for not having thought about that ... That's ok -- now that it is known, it can be fixed! :) It might save on memory, too, come to think of it. Learning more every day, --- // Carl Hudkins ]=[ ICQ: 5723399 ]=[ PGP: 0x50238d9e // // Vida i am afraid of programs! // Vida uses Windoze :)
Re: Possible bug - Re: Math macros, how to use?
On 21-Apr-99 Etienne Grossmann wrote: > indeed, LyX "sees" all the macros that have been defined in all > its open documents (and apparently in those it has closed too). > > Sorry for not having thought about that ... That's ok -- now that it is known, it can be fixed! :) It might save on memory, too, come to think of it. Learning more every day, --- // Carl Hudkins ]=[ ICQ: 5723399 ]=[ PGP: 0x50238d9e // // i am afraid of programs! // Vida uses Windoze :)
Possible bug - Re: Math macros, how to use?
On 21-Apr-99 Etienne Grossmann wrote: Hello, so, you do "M-x msol" , then write a 'm' with a dot, then use, in math-mode, the macro '\msol', which appears fine on the screen, but LaTeX won't compile? Strange indeed. Exactly. Well, not exactly -- "M-x math-macro msol", to be precise. :) Could you create a short file, with e.g. just the macro definition and an instance of it, check whether LaTeX still complains, and send that file? I did that and it works. However, in so doing I was inspired to try changing the *Style* of the line on which I had defined the macro, and I discovered something. A math macro must be defined using the "Standard" style (at least that's the only one I've found that works), otherwise LaTeX complains that it hasn't been defined. So, no help needed -- now I've found the right way to do it. :) It's puzzling that this is so, however... some kind of hierarchy consideration, maybe? I also found that, even if the macro is defined in another currently opened document, but *not* in the one in which it is used, it will display correctly on-screen! This seems to me a definite bug -- macros should not carry over from one document to another, should they? The way I found this out is, when I made an empty file with just the macro definition and a macro use, I typed "M-x math-macro msol" and the symbol I had defined in the other document appeared! I can close and open that file, and the symbol still shows up even though there is now no definition of the macro there; it shows up again if I use "C-m \msol". This behavior still exists if I close all other documents and re-open the test one. It finally goes back to what I would expect to see -- that is, a red "msol" displayed instead of the M-with-dot symbol -- if I close LyX and re-open it. --- // Carl Hudkins ]=[ ICQ: 5723399 ]=[ PGP: 0x50238d9e // // Vida i am afraid of programs! // Vida uses Windoze :)
Possible bug - Re: Math macros, how to use?
On 21-Apr-99 Etienne Grossmann wrote: Hello, so, you do "M-x msol" , then write a 'm' with a dot, then use, in math-mode, the macro '\msol', which appears fine on the screen, but LaTeX won't compile? Strange indeed. Exactly. Well, not exactly -- "M-x math-macro msol", to be precise. :) Could you create a short file, with e.g. just the macro definition and an instance of it, check whether LaTeX still complains, and send that file? I did that and it works. However, in so doing I was inspired to try changing the *Style* of the line on which I had defined the macro, and I discovered something. A math macro must be defined using the "Standard" style (at least that's the only one I've found that works), otherwise LaTeX complains that it hasn't been defined. So, no help needed -- now I've found the right way to do it. :) It's puzzling that this is so, however... some kind of hierarchy consideration, maybe? I also found that, even if the macro is defined in another currently opened document, but *not* in the one in which it is used, it will display correctly on-screen! This seems to me a definite bug -- macros should not carry over from one document to another, should they? The way I found this out is, when I made an empty file with just the macro definition and a macro use, I typed "M-x math-macro msol" and the symbol I had defined in the other document appeared! I can close and open that file, and the symbol still shows up even though there is now no definition of the macro there; it shows up again if I use "C-m \msol". This behavior still exists if I close all other documents and re-open the test one. It finally goes back to what I would expect to see -- that is, a red "msol" displayed instead of the M-with-dot symbol -- if I close LyX and re-open it. --- // Carl Hudkins ]=[ ICQ: 5723399 ]=[ PGP: 0x50238d9e // // Vida i am afraid of programs! // Vida uses Windoze :)
Possible bug - Re: Math macros, how to use?
On 21-Apr-99 Etienne Grossmann wrote: > > Hello, > > so, you do "M-x msol" , then write a 'm' with a dot, then use, > in math-mode, the macro '\msol', which appears fine on the screen, > but LaTeX won't compile? Strange indeed. Exactly. Well, not exactly -- "M-x math-macro msol", to be precise. :) > Could you create a short file, with e.g. just the macro definition > and an instance of it, check whether LaTeX still complains, and send > that file? I did that and it works. However, in so doing I was inspired to try changing the *Style* of the line on which I had defined the macro, and I discovered something. A math macro must be defined using the "Standard" style (at least that's the only one I've found that works), otherwise LaTeX complains that it hasn't been defined. So, no help needed -- now I've found the right way to do it. :) It's puzzling that this is so, however... some kind of hierarchy consideration, maybe? I also found that, even if the macro is defined in another currently opened document, but *not* in the one in which it is used, it will display correctly on-screen! This seems to me a definite bug -- macros should not carry over from one document to another, should they? The way I found this out is, when I made an empty file with just the macro definition and a macro use, I typed "M-x math-macro msol" and the symbol I had defined in the other document appeared! I can close and open that file, and the symbol still shows up even though there is now no definition of the macro there; it shows up again if I use "C-m \msol". This behavior still exists if I close all other documents and re-open the test one. It finally goes back to what I would expect to see -- that is, a red "msol" displayed instead of the M-with-dot symbol -- if I close LyX and re-open it. --- // Carl Hudkins ]=[ ICQ: 5723399 ]=[ PGP: 0x50238d9e // // i am afraid of programs! // Vida uses Windoze :)