> > ;-) What do the validate methods do anyway. Does InsetCitation need one?
> 
> This put's \usepackage{whatever} into the preamble if it is needed by some
> feature! So if natbib needs a special package we should be sure to add the
> \usepackage{} if we REALLY use natbib features in the text (and only in that
> case!)

Jürgen, have a medal for clear and simple answers!

The question now becomes
        how do I check whether natbib exists (I guess I must parse the output of 
chkconfig.ltx or invoke some method that's sone this for me.) I guess that 
I'm looking for something like
        bool packageExists("natbib");
???

I'd use this method to alter the output of the Citation dialog appropriately.
I'd also use it in InsetCitation::latex to choose whether to output the 
natbib-specific citation command or to use the default \cite[]{} command 
instead.

Finally, InsetCitation::validate would contain the psuedo-code
{
        if (packageExists("natbib") &&
            inset uses a natbib-specific citation command) {
                features.natbib = true;
        }
}

Have I got the right end of this stick?

Angus

> -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
> Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
> Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
> I-39100 Bozen           Web:     http://www.sad.it/~jug
> -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
> 
> Wouldn't this be a great world if being insecure and desperate were a 
turn-on?
>                 -- "Broadcast News"
> 
> 

-- 
Dr Angus Leeming
Dept. of Bioengineering
Imperial College
London SW7 2BX

Tel +44 (0) 20 7594 5186
Fax +44 (0) 20 7584 6897

Reply via email to