On Thursday 28 November 2002 12:45 pm, Jean-Marc Lasgouttes wrote: > >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> The idea is to store this generated .lyx file in a database > Angus> accessible through the BibTeX inset. Ie, it won't be visible to > Angus> the user, but he'll get things like pretty formatting of his > Angus> natbib labels, display of the contents in the citation dialog > Angus> and all for (almost) free. > > Why don't you just generate a text only version with a special .bst > format? It looked like a simpler and more useful scheme.
Maybe simpler to create a text version of the database, but I don't think it would be simpler to use within LyX. Correct me if I'm wrong of course... This script generates a LyX BibKey environment. We already have to handle such an environment. Many people actually use it together with natbib, so we've done all the hardwork there already. Using this script, we could through away /all/ the current BibTeX code (and boy is there lots of it). It would be replaced with something that merely generates/loads a hidden LyX buffer, to be stored either by the BibTeX inset or by a global store, à la graphics cache. (Moreover, is a "special .bst scheme" simpler than a 100 line shell script? The only complicated bit in it is the sed script to 1. throw away bibtex-generated specials and 2. handle a LyX parser bug.) Angus