BibTeX, biblatex and biber ⇒ Undefined references
-
- Posts: 6
- Joined: Thu Mar 19, 2009 8:01 pm
Undefined references
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}
}
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}
}
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Undefined references
Are you re-rerunning BibTeX on your file, or just re-running latex?
-
- Posts: 6
- Joined: Thu Mar 19, 2009 8:01 pm
Re: Undefined references
sorry not sure what re-running bibtex means. I build the document again.
-
- Posts: 6
- Joined: Thu Mar 19, 2009 8:01 pm
Re: Undefined references
I don't know what happened but I changed the name of bib file and everything works fine. ?
Undefined references
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.
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.
Re: Undefined references
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"
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"
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Undefined references
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
[1] View topic: Avoidable mistakes
Best regards and welcome to the board
Thrsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Undefined references
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.
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.
Undefined references
tiekenei, if you haven't read localghost's post (the one just before yours), please go back and do so.
Re: Undefined references
Yes, it was indeed as stupid a mistake as not running BibTeX properly.
Thanks for the heads up!
