On 2/22/11 4:38 PM, Eduardo de Oliveira Horta wrote:
Hello LyX community,

I'm facing a little problem which I'm sure is a recurrent (and
hopefully easy to solve) one.

I have a .bib file with all my references, and I've added the
bibliography as usual through

insert>  List/TOC>  BibTeX bibliography...

The file exports to pdf as a charm, with all citations numbered,
within brackets and no author names. Ok. Now I would like my citations
to be formated as author-year. I've changed the citation style to
Natbib (in Document>  Settings>  Bibliography>  Citation Style). The
LyX file displays the citations correctly, but when I compile it to
pdf, they appear messy, like

(author?) [1]

for example. Interestingly, the link [1] takes me to the correct place
in the bibliography.

Is there a way to overcome this issue?

This means that there is an error in your bib file that is preventing BibTeX from reading the author-year combination correctly. It can be many things that cause it, but a missing year is often the culprit. The best way to debug is to export to LaTeX and compile the file manually. Then you should see error messages sufficient to locate the problem.

rh

Reply via email to