Bernhard Reiter wrote:
> The attached adds basic \nocite functionality (as citation style option)
> to the citation dialog; the inset then actually reads \nocite{key} (as I
> wasn't able to come up with anything better; suggestions welcome)
> the citation style option in the dialog is "Add to bibliography only".

Excellent. Note, however, that this is a file format change (because "nocite" 
has to be reverted to ERT). You'll have to increment the file format and 
provide a lyx2lyx function to revert nocite (which should be very easy).

Regarding "\nocite" in the label: I think this is too LaTeX-centric. I would 
rather append something like _("not cited").

> This also fixes a bug I've stumbled across while working on it:
> In a document with citations, after changing the bibliography style (eg
> from plain to natbib or from natbib to jurabib), the citation style
> shown in the citation dialog is different from the actual inset. This is
> fixed by having initialiseParams re-evaluate getCitationStyles each time
> the dialog is opened no matter what -- which is required for the \nocite
> functionality anyway.
>
> If there's interest, I'll also roll out a patch for 1.5.

I don't see this neither in 1.5 nor 1.6 (or I didn't understand your receipt). 

Actually, your patch disables the optimization of the bibfiles cache, which 
means that opening the dialog needs very long when you have a big 
bibliography database. Why is it required for \nocite anyway?

> Regarding a \nocite{*} option: what about enabling the "Contents" combo
> in the BibTeX dialog also for non-sectioned bibliographies, just without
> the "all uncited references" option?

Yes.

> Bernhard

Jürgen

Reply via email to