I have a manuscript which looks like:
\documentclass{article}
\usepackage{amsmath, amsthm, amssymb}
\begin{document}
[...]
\cite{ref}
[...]
\cite{anotherref}
[...]
\bibliography{references}
\bibliographystle{plain}
\end{document}
My .bib file, references.bib, looks like this:
@book{ref,
title = {String theory and M-theory},
isbn = {978-0521860697},
publisher = {Cambridge University Press},
author = {Schwarz, John and Becker, Katrin and Becker, Melanie},
date = {2007-01-15}
}
@article{anotherref,
title = {Locality problem for the Liouville field},
volume = {274},
issn = {0370-2693},
url = {http://www.sciencedirect.com/science/article/pii/037026939291992I},
doi = {10.1016/0370-2693(92)91992-I},
pages = {323-330},
number = {3},
journaltitle = {Physics Letters B},
author = {Balog, J. and Palla, L.},
date = {1992-01-16},
}
For some reason, my manuscript does not compile properly. Instead of the inline references coming up as numbers, I get [?]'s. The bibliography does not appear at all.
What's very surprising is that even the example in BibTeX's official website results in the same bug.
Another manuscript that had previously compiled properly for me, now produces the same error.
I am very puzzled by this. The bug is observed both in TeXmaker's Quick Build, and ShareLaTeX.
Anybody knows the cause of this bug?
Thanks!
P.S. Please feel free to vote to close this if it is off-topic.
\bibliographystle{plain}with\bibliographystyle{plain}and run latex, bibtex, and latex twice more on the main file, you'll be in business. Incidentally, you should encaseLiouvillein curly braces, i.e., write it as{Liouville}, to prevent theLfrom being converted tol. In the other bib entry, you may want to replaceM-theorywithM\nobreakdash-Theorysince a line break betweenM-andTheorywould seem to be quite undesirable. – Mico Jun 29 '14 at 06:49