On Tuesday 17 July 2001 16:21, Juergen Vigna wrote:
> On 17-Jul-2001 Angus Leeming wrote:
> 
> > Jürgen, have a medal for clear and simple answers!
> 
> #:O)
> 
> > The question now becomes
> >       how do I check whether natbib exists
> > I'm looking for something like
> >       bool packageExists("natbib");
> 
> Nope you don't have to check for the existance of the package on the system!

Hmmmm! Well, that's not what I understood of Lars' desires here. I'm pretty 
sure that he wanted LyX to change it's behaviour dependent on whether or not 
natbib was present.

The citation dialog will offer users a choice of citation commands:
        Vigna and Leeming (2001)
        (Vigna and Leeming 2001)
        Vigna and Leeming 2001
        Vigna and Leeming, 2001
        Vigna and Leeming
        2001
        (2001)

It only makes sense to do this if natbib exists. If not, the choice is no 
choice at all:
        (Vigna and Leeming 2001)

Similarly, it makes sense to output latex that will compile on this system, 
so if the inset contains 
        \citep[]{vigna_leeming:2001} 
because you sent me the document but my system does not have natbib, then I 
should output
        \cite[]{vigna_leeming:2001} 

Again, this requires knowledge of natbib's existence.

[snip validate code]...
> And the you need to put the right "\usepackage{}" LaTeX output I guess it
> is in LaTeXFeatures.C, isn't it?

Yup!

> Hope you got it now ;)

Well I get what you say (clear and straightforward). It's just not what 
earlier discussions on the list led me to believe was how things should be 
done.

Lars, since I'm blaming you for my confusion here (and maybe Jean-Marc too 
--- let's spread the muck-spreading around!) would you care to add your two 
agora (centimes) here please.

Angus

Reply via email to