LaTeX forum ⇒ BibTeX, biblatex and biberUndefined references

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

Undefined references

Postby jbrajkovic » Sun Jun 27, 2010 1:09 pm

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}
}

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

Postby frabjous » Sun Jun 27, 2010 1:44 pm

Are you re-rerunning BibTeX on your file, or just re-running latex?

jbrajkovic
Posts: 6
Joined: Thu Mar 19, 2009 8:01 pm

Postby jbrajkovic » Sun Jun 27, 2010 3:15 pm

sorry not sure what re-running bibtex means. I build the document again.

jbrajkovic
Posts: 6
Joined: Thu Mar 19, 2009 8:01 pm

Postby jbrajkovic » Sun Jun 27, 2010 3:47 pm

I don't know what happened but I changed the name of bib file and everything works fine. ?

User avatar
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Postby meho_r » Sun Jun 27, 2010 11:40 pm

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

Postby beast » Mon Jul 26, 2010 2:32 pm

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: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Mon Jul 26, 2010 4:59 pm

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
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

tiekenei
Posts: 2
Joined: Sun Aug 01, 2010 5:55 pm

Postby tiekenei » Wed Aug 04, 2010 10:26 pm

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.

User avatar
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Postby meho_r » Sat Aug 07, 2010 12:54 am

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

Postby tiekenei » Wed Aug 11, 2010 8:03 am

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


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests