[patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: A Requires tag, as a counterpart of the Provides tag. patch attached. I guess this needs a layout format increment, right? Jürgen Index: src/TextClass.cpp === --- src/TextClass.cpp (Revision 22411) +++

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread rgheck
Jürgen Spitzmüller wrote: Jürgen Spitzmüller wrote: A Requires tag, as a counterpart of the Provides tag. patch attached. I guess this needs a layout format increment, right? Yes, it would. Something like this will work. Just a couple thoughts. First, I don't think we want to

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread Jürgen Spitzmüller
rgheck wrote: Yes, it would. OK. I'll do this before I commit anything. Something like this will work. Just a couple thoughts. First, I don't think we want to tie this too tightly to LaTeXFeatures, so that we have to hardcode what packages can be Required. This will make maintenance

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread rgheck
Jürgen Spitzmüller wrote: rgheck wrote: Yes, it would. OK. I'll do this before I commit anything. Something like this will work. Just a couple thoughts. First, I don't think we want to tie this too tightly to LaTeXFeatures, so that we have to hardcode what packages can be

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread rgheck
Jürgen Spitzmüller wrote: rgheck wrote: I think this is a different issue. If someone wants to Require a package we don't have listed in LaTeXFeatures, then, yes, we can't check for it, and so we ought to ignore it for that purpose. But that's different from saying they can't Require such a

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread Jürgen Spitzmüller
rgheck wrote: I think this is a different issue. If someone wants to Require a package we don't have listed in LaTeXFeatures, then, yes, we can't check for it, and so we ought to ignore it for that purpose. But that's different from saying they can't Require such a package at all. Actually,

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread Jürgen Spitzmüller
rgheck wrote: Right, of course. We should document, then, that Requires only works for packages known to LyX. I'll do that. What we can do, eventually, is to simply add a \usepackage call with all remaining unknown required packages at the very end. For this, though, we need to know

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread Richard Heck
The idea is that there can be incompatible modules: The Theorems and Theorems (AMS) modules are an example. And there may be modules that require other ones. So this will provide a facility for tracking that. I understand. But I don't understand the relation to the optional argument.

[patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > A "Requires" tag, as a counterpart of the "Provides" tag. patch attached. I guess this needs a layout format increment, right? Jürgen Index: src/TextClass.cpp === --- src/TextClass.cpp (Revision 22411)

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread rgheck
Jürgen Spitzmüller wrote: Jürgen Spitzmüller wrote: A "Requires" tag, as a counterpart of the "Provides" tag. patch attached. I guess this needs a layout format increment, right? Yes, it would. Something like this will work. Just a couple thoughts. First, I don't think we want

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread Jürgen Spitzmüller
rgheck wrote: > Yes, it would. OK. I'll do this before I commit anything. > Something like this will work. Just a couple thoughts. > > First, I don't think we want to tie this too tightly to LaTeXFeatures, > so that we have to hardcode what packages can be Required. This will > make maintenance

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread rgheck
Jürgen Spitzmüller wrote: rgheck wrote: Yes, it would. OK. I'll do this before I commit anything. Something like this will work. Just a couple thoughts. First, I don't think we want to tie this too tightly to LaTeXFeatures, so that we have to hardcode what packages can be

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread rgheck
Jürgen Spitzmüller wrote: rgheck wrote: I think this is a different issue. If someone wants to Require a package we don't have listed in LaTeXFeatures, then, yes, we can't check for it, and so we ought to ignore it for that purpose. But that's different from saying they can't Require such a

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread Jürgen Spitzmüller
rgheck wrote: > I think this is a different issue. If someone wants to Require a package > we don't have listed in LaTeXFeatures, then, yes, we can't check for it, > and so we ought to ignore it for that purpose. But that's different from > saying they can't Require such a package at all.

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread Jürgen Spitzmüller
rgheck wrote: > Right, of course. We should document, then, that Requires only works for > packages known to LyX. I'll do that. > > What we can do, eventually, is to simply add a \usepackage call with all > > remaining "unknown" required packages at the very end. For this, though, > > we need to

Re: [patch] Re: bug in linguistics module or modules in general

2008-01-07 Thread Richard Heck
The idea is that there can be incompatible modules: The Theorems and Theorems (AMS) modules are an example. And there may be modules that require other ones. So this will provide a facility for tracking that. I understand. But I don't understand the relation to the optional argument.