Angus Leeming wrote: >>I wonder if this is intended, and why: >> >>Despite enabling "use natbib" in Document, \usepackage{natbib} is inserted >>to the preamble only if the user has inserted a citation inset. >>This has bugged me while I wanted to create a list of the whole database >>with a nifty \nocite* >>I admit that it is easy enough to work around this, though. >> >>Regards, >>Jürgen >> > > It is intended in that we call InsetCitation::validate to ascertain whether > we need a \usepackage{natbib}. > > I guess that the place to add support for \nocite would be to insetbibtex > which would then have a similar check in its validate method.
what about a checkbox "nocite" similiar to "AddBibToToc" in the bibtex-gui? Then we can easily add natbib. Herbert -- http://www.lyx.org/help/