On Wed, Oct 22, 2003 at 05:22:12PM +0200, Lars Gullik Bjønnes spake thusly: > Angus Leeming <[EMAIL PROTECTED]> writes:
> | That reminds me... > > > | I have had some correspondence recently with a user of the AGU latex > | classes. Apparently they add the equivalent of '\usepackage[AGU's set > | of options]{natbib}' and so latex complains when LyX adds > | '\usepackage[some minimal set of options]{natbib}' to the latex > | document. > > > | Our 'fix' (pronounced 'fudge' ;-) was to define a shell script wrapper > | for the latex compiler that used sed to delete this offending line. > | However, the real fix would be for LyX to interrogate the text class, > | see that natbib was already specified and so not output the line in > | the first place. > > > | Do the text classes have a mechanism to provide this sort of > | information? If so, can some kind soul point me in the right > | direction? > > Yes. > > It the provide support in .layout files. We do not have generic > support for this, but have > > providesamsmath > providesmakeidx > providesnatbib > providesurl > > So the natbib you need is already there, you just have to set it in > the .layout file. Sounds like the thing to do. > -- > Lgb - Martin
pgp00000.pgp
Description: PGP signature