BibTeX, biblatex and biberUndefined references

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
jbrajkovic
Posts: 6
Joined: Thu Mar 19, 2009 8:01 pm

Undefined references

Post by jbrajkovic »

I have been using Jabref for reference management and everything worked fine. Recently I started adding new entries, which show up correctly in Jabref, but for some reason BibTex does not recognize them. I get the following message:
1. Package natbib Warning: Citation "XYZ" on page X undefined on input line Y
2. Package natbib Warning: There were undefined references.

Now this is really strange, because my old references work fine (they are all in the same file), but I cannot get my new references to work. Any suggestions?

The code is very simple:
\documentclass[12pt, oneside, a4paper]{article}
\usepackage{natbib}
\begin{document}

\cite{Greene2002}
\cite{Overbeck}

\bibliographystyle{plain}
\bibliography{bibliography}
\end{document}

So for example, above citation for "Green2002" does not work while for "Overbeck" it works. BibTex entries are:

@BOOK{Greene2002,
title = {Econometric Analysis},
publisher = {Prentice Hall},
year = {2002},
author = {William H. Greene},
owner = {jbrajkovic},
timestamp = {2010.06.27}
}

@ARTICLE{Overbeck,
author = {Ludger Overbeck and Tobias Ryden},
title = {Estimation in the Cox-Ingersoll-Ross Model},
journal = {Econometric Theory},
year = {1997},
volume = {13 (3)},
pages = {430-461},
owner = {jbrajkovic},
timestamp = {2010.02.18}
}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Undefined references

Post by frabjous »

Are you re-rerunning BibTeX on your file, or just re-running latex?
jbrajkovic
Posts: 6
Joined: Thu Mar 19, 2009 8:01 pm

Re: Undefined references

Post by jbrajkovic »

sorry not sure what re-running bibtex means. I build the document again.
jbrajkovic
Posts: 6
Joined: Thu Mar 19, 2009 8:01 pm

Re: Undefined references

Post by jbrajkovic »

I don't know what happened but I changed the name of bib file and everything works fine. ?
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Undefined references

Post by meho_r »

What frabjous asked is if you were following the proper procedure when compiling your document, i.e.:

1. Run LaTeX
2. Run BibTeX
3. Run LaTeX
4. Run LaTeX

So, after every change in your .bib file, you have to run BibTeX again, followed by running LaTeX two times afterward. Of course, if you're using pdflatex (or xelatex), the same applies for it: pdflatex > BibTeX > pdflatex > pdflatex.

Changing the name of your .bib file shouldn't have any effect on the issue.
beast
Posts: 1
Joined: Mon Jul 26, 2010 2:28 pm

Re: Undefined references

Post by beast »

I am having a very similar problem. I had all my references working ok on Friday. I went home at the weekend, collected a couple more, then put them into my document this morning but now they won't work. The old ones still work.

I compile everything in the correct order: Latex, bibtex, latex, latex
The bibliography is in the same folder as the .tex document

The only thing I noticed was that my bib file is now quite large (>1000 lines)

It says "warning, line 92, citation Ahn_2009 on page 3 undefined"
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Undefined references

Post by localghost »

This can only mean that the additional entries (or at least one of them) in your bibliography are erroneous. Cut the problem down to a minimal working example (MWE) that contains the critical entries of bibliography [1]. This will help to get closer to a solution.

[1] View topic: Avoidable mistakes


Best regards and welcome to the board
Thrsten
tiekenei
Posts: 2
Joined: Sun Aug 01, 2010 5:55 pm

Re: Undefined references

Post by tiekenei »

I'm having the same issue.

I'm using JabRef 2.6 and am also noticing that new additions to my .bib file aren't being recognized anymore. I tried renaming my references file, but that didn't help.

When I temporarily moved my .bbl-file to another folder to force LaTeX to make a new one, suddenly none of my citations was working. I then put my original file back and all of the old citations worked again, not the new ones.

This behaviour is new, I added other references last week and those worked fine.

I need to hand in my thesis next week and this is not helping to make me feel less stressed, any help is greatly appreciated!

edit: I'm also using natbib btw.
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Undefined references

Post by meho_r »

tiekenei, if you haven't read localghost's post (the one just before yours), please go back and do so.
tiekenei
Posts: 2
Joined: Sun Aug 01, 2010 5:55 pm

Re: Undefined references

Post by tiekenei »

Yes, it was indeed as stupid a mistake as not running BibTeX properly. :roll: Thanks for the heads up!
Post Reply