natbib undefined citationsAdd tags
11 posts
• Page 1 of 2 • 1, 2
natbib undefined citationsI'm having all sorts of trouble with my BiBTeX. The main problem of course is that citations are not being properly referenced in the final document.
I'm working in Windows and when I try to build my .tex document to DVI I get multiple errors akin to this: Package natbib Warning: Citation `number1' on page 1 undefined on input line 76. . . . Package natbib Warning: Empty `thebibliography' environment on input line 5. Package natbib Warning: There were undefined citations. A couple of notes: (1) my .bib file has a ä character and I was getting encoding issues...current encoding is ISO-8859-1 (Latin-1) to resolve character conflicts (2) if i run bibtex myfile from command prompt I get a I couldn't open database file references.bib (3) of course i'm not using \begin{thebibliography} but my .bbl file looks like this:
(4) line 5 has
Trying to avoid manual entry for thesis...any help GREATLY appreciated. Also: probably unrelated, but if I comment out \usepackage{pdfpages} in the preamble, I get: missing number treated as zero, all illegal unit of measure, and undefined control sequence errors for each *.eps figure. I don't get it...
Re: natbib undefined citationsThis could be a number of things, both in the BibTeX file (.bib) and in the LaTeX file (.tex).
First, make sure your database is in a location in which BibTeX can find it (the current directory works well). This should clear up the "I couldn't open database file references.bib" message. The .aux file and .bib file must both be in BibTeX's search path (which is often different than LaTeX's search path; move it to the current directory to make sure). Second, I recommend removing any non-ASCII files from your BibTeX database. For example, an entry with the name Koeln in it (spelled with the umlaut instead of the oe) might look like:
Once that's fixed, see if you've fixed your problems.
Re: natbib undefined citationsDear kaiserkarl13!
I have the same prob here. Looks to me that everything is according to your advices: .aux file and .bib file are in the same folder. I am using Latex on Linux. Error message looks like this: [PDFLaTex] .tex => .pdf (pdflatex) ./.bbl:8: Empty 'thebibliography' environment on input line 8. [BibTex] .aux => .bbl (bibtex) [BibTex] finished with exit code 2 Thanks for your help beforehand. Sincerely, Kahlan
Re: natbib undefined citations
The message suggests that you are not using \cite commands in your document; try adding \nocite{*} (this command will include all the entries of the .bib file in the references section, even if not explicitly cited) in the body of your document. If that was not the problem, we will need to see some of the actual code that you are using (a minimal, compilable version including only the code relevant to the problem mentioned). 1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: natbib undefined citationsHello,
I got the same problem. My .bib files are in folder: /home/UserName/Area de Trabalho/Documentos/ReferenciasArtigos.bib I put this path into command \bibliography{'/home/UserName/Area de Trabalho/Documentos/ReferenciasArtigos.bib'}. I have used quotes because of the blank spaces at Area de Trabalho folder. Got no positive results, so I moved ReferenciasArtigos.bib to the project folder (I am using Kile), nothing happens. What can I do? BTW, I am using multiple documents im my dissertation. Does anybody can help me? One more thing: I am using JabRef, so that it automatically inserts citation into latex text. Appararently it works fine (when I use LyX processor...) Thanks in advance.
Re: natbib undefined citationsI've been having similar problems with natbib. There was an obscure message at the end of the undefined citations suggesting that there was an inappropriate ampersand (&) in the .bbl file.
Turned out that some citations retrieved from Medline put a URL field into the .bib file, and these contain the '&' which apparently confuses natbib. Not clear whether this is sometimes used, but I just deleted these by hand and then it all worked.
Re: natbib undefined citationsHey People,
I just had the same problem as you and, for me, the solution was very easy: I included my .bib file as follows:
I was getting used to write everything with ending, coz I got some problems earlier on when including graphics. But here, it can cause an error. Probably this is of help for some of you. Cheers, elstefano Last edited by cgnieder on Tue Feb 19th, 2013, edited 1 time in total.
Reason: added code markup
Re: natbib undefined citations.
In my case, what solved the problem was changing
to
Re: natbib undefined citationsHi!
My solution of the Bibtex error compilation is different. I was using latex on Windows through MikTeX. No problem. I then moved to latex linux using texlive2009 and had the "[BibTex] finished with exit code 2" error message each time I compiled Bibtex. The former posts would not solve my problem in my case. The error occured because I had a duplicate reference (with same name) in my .bib file. Apparently, with MikTeK, Bibtex can overpass this duplication but bibtex with texlive can't. Hope this helps.
|





