References created when natbib is not enabled gives correct output in the form of [1], [2], etc. and the corresponding Reference list in the text. However, since I want to have the references in the form of ie Guttormsen(2004) etc. I try to enable natbib in Insert -> layout -> bibliography. When I try converting the document to DVI now, several errors occur. They go something like this:

"! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.3 \bibitem{hydropowerplanning}

Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit."

This error occurs three times. In the end of the logfile, this is stated:

"Package natbib Warning: Empty `thebibliography' environment on input line 8.

) [2

] (newfile1.aux

Package natbib Warning: Citation(s) may have changed.
(natbib)                Rerun to get citations correct."

I have attached the .lyx-file.

When I try to convert to DVI once more, output is generated without errors in LyX, but the reference output in the DVI-file is now something like: "(Author?) [1]" which clearly is not what I want.

I do not think my Bibtex-files are flawed, since I have downloaded several files from this forum which are supposed to be flawless, and they have all resulted in the problem stated above. Too many hours have been lost in attempts to find a solution to this problem, so now I turn to you. Is there any solution to this?

Regards,

Egil Andreas Vartdal

PS I have both used JabRef and BibEdit to generate .bib-files


Attachment: newfile1.lyx
Description: Binary data

Reply via email to