Hi,
>From: Remy Kolessar <[EMAIL PROTECTED]>
>I reported some time ago a problem I had with LyX 1.02 (now 1.03p2) not
>displaying the entry list of the BibTeX file in the Key field of the
>Citation dialog box. Well this would of course be a nice feature to
>have, but I thought I could live without, and didn't care so much about
>it.
>
>But now I realized that the Key field is not displaying any entry list,
>not even the one from the entries I put "manually", as it was the case
>with Lyx 1.0. This feature is very convenient when you have to cite
>several time the same article, without having to manually reenter the
>entry. Does any one have an idea about that, or have experienced the
>same? I'm running HP-UX 10.2.
Well, as far as I remember LyX will only resort to listing the keys from the
entries already in the document, if it does not find a reference to a .bib
file. In your case the problem might be, that LyX finds a BibTeX reference,
but doesn't get any keys from parsing it. This could (at least) happen as a
result of two things:
1)
It can't find the .bib file. Make sure the file is in the same directory as
your document or in one of the directories listed in your BIBINPUTS
environment variable.
2)
It can't parse the .bib file correctly. When I wrote the patch to implement
this feature I designed a very simple and very stupid BibTeX parser to keep
the code simple, but I can now see that this should be improved in the
future (1.1.x branch). This all boils down to the fact that the entries in
your .bib file must be formatted like this:
@entrytype{citation_key,
title = "xxx",
author = "yyy",
....
i.e. the entry must start with @book, @article etc. followed by ( or { and
then the key, all on the SAME line. So this is not going to work:
@book{
citation_key,
title = "xxx",
author = "yyy",
...
I hope this helps. Otherwise ask again!
BTW, I think we should mention this limitation in the docs.
Greets
Jesper
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com