# Undefined citations

I have been putting references into my document with no problems until today. Now all of a sudden when I put a new reference in I get two error messages and get told the following:

Package natbib warning: Citation xzy on page x undefined on line y

Package natbib warning: There were undefined citations

I am using windows, MiXTeX 2.9, TeXnic center, and JabRef. I have looked at the bib file that JabRef generates and the citation information is in the file.

The citations I had in previously still compile ok and can be entered in new parts of the document without error. Its just the new citation that I put into the Jabref program today that wont work.

\documentclass{article}

\usepackage[a4paper,hmargin={2cm,2cm},vmargin={2cm,2cm}]{geometry}
\usepackage{setspace}
\usepackage[maxauthors=20,etalmode=truncate,biblabel=period]{achemso}
\usepackage[journal=rsc]{chemstyle}
\usepackage{chemscheme}
\usepackage[version=3]{mhchem}
\usepackage{textcomp}
\usepackage{threeparttable}
\usepackage{textcomp}
\usepackage{lmodern}
\usepackage{color, colortbl}
\usepackage{array}
\usepackage{float}
\usepackage{color}
\usepackage{soul}
\usepackage{picins}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{longtable}
\usepackage{caption}
\usepackage{subcaption}

\begin{document}

text goes here.\cite{Global2013}

\bibliography{References}

\end{document}


The offending part of the .bib file follows:

@TECHREPORT{Global2013,
author = {Future Markets, Inc},
title = {The Global Market for Quantum Dots},
year = {2013},
owner = {x},
timestamp = {2013.06.17}
}

• Are you using for the argument of \cite the exact same key you used in the .bib file? – Gonzalo Medina Jun 16 '13 at 23:02
• Yes, even copy pasted it to make sure – Cole Jun 16 '13 at 23:16
• Can you please edit your question and add a simple complete document showing the relevant settings and allowing us to reproduce the problem? Add the offending entry of the .bib file too. – Gonzalo Medina Jun 16 '13 at 23:18
• You forgot to add the offending entry of the .bib file. – Gonzalo Medina Jun 16 '13 at 23:35
• Is that ok? not sure if I have it edited right – Cole Jun 16 '13 at 23:44

The package natbib is automatically loaded by the achemso package. That's why you get those warnings from the natbib package.

Supposing that your .tex file is named test.tex, I suggest you first to delete the files test.aux and test.bbl.

After that, run, in the following sequence:

pdflatex test

bibtex test

pdflatex test

pdflatex test

You shouldn't have problems with the MWE you've provided.

Also remember that the achemso package automatically loads the achemso bibliography style, which is the same as inserting the line

\bibliographystyle{achemso}


so you don't have to add such a line in your document.

• This worked perfectly for me. Texworks' default option is pdfLaTex+MakeIndex+BibTex, which is not the same as what is in this answer, so if you are having this issue, make sure you run pdfLaTex+BibTex+pdfLaTex+pdfLatex. There must be a way to add this sequence as a shortcut, but I'm not sure how. – Vivek Subramanian Jul 26 '18 at 5:31
• to sum it up run bibtex yourfile everytime you add a new citation! – Greenish Oct 30 '18 at 18:18

I had this message pop up in my console output for all my citations, although the bibliography and citations displayed correctly in the TeXworks pdf preview.

In my case, I had a few references in my .bib file where words with diacritics weren't surrounded in curly braces. Changing all such instances got rid of the messages. For example:

publisher = {Universidad Nacional de Río Negro},

Changed to:

publisher = {Universidad Nacional de {Río} Negro},