The attached file, patch.tar.bz2, contains a directory, patch, which contains
four files
angus.patch cite.fd insetcite.C insetcite.h
angus.patch was created against current CVS with
cvs diff -p -u > angus.patch
(Sorry, JMarc, -N doesn't work!)
cite.fd, the xforms dialog goes in forms/, insetcite.[Ch] go in src/insets/
========================================================
This is a patch for a brand new citation dialog, together with new
files insetcite.[Ch] to control it. Please try it out and tell me what you
think.
This patch is for a modified citation dialog only. Its sole additional
functionality is to allow the user to input multiple citation keys in
one inset easily. It makes no attempt to wrap the citation inset over multiple
lines, nor does it support any new citation packages.
What does it do?
* Bibliography keys and citation keys for the current inset are visible in two
separate browsers.
* These browsers (and the dialog as a whole) resize automatically so that the
number of visible keys lies in the range 4 <= noKeys <= 15. Ie, if there are 2
keys in the bibliography, then the dialog will be small. If there are 10000, it
will be big, but not soooooo big!
* Users can add and remove keys from the list of the current inset, but they
cannot add the same key twice.
* If there are no keys in the bibliography, adding is disabled.
* Clicking on a key in the current inset list highlights this key in the
bibliography (if it exists).
Quite enough for one day, I think!
Have a good weekend,
Angus
Incidentally, I wasn't going crazy with my report of a bug in the old citation
dialog. It didn't display the list of references because I was running lyx from
the src/ directory and the .lyx file (together with the references) was
elsewhere. LyX couldn't cope with this. I live and learn!
A.
patch.tar.bz2