This has been an ongoing problem, and it appears to be possibly an mnras
problem, primarily. I see others have had the same difficulties, but never with a sufficient resolution, so if anyone has tips or a full resolution, it would be greatly appreciated. Here is a sample of my .tex:
\documentclass[fleqn,usenatbib]{mnras}
% Latex packages
%\usepackage{times}
\usepackage{newtxtext,newtxmath}
\usepackage{graphicx} % Including figure files
\usepackage{amsmath} % Advanced maths commands
\usepackage{amssymb} % Extra maths symbols
\usepackage{wasysym}
\usepackage[T1]{fontenc}
\usepackage{ae,aecompl}
...
\bibliographystyle{mnras}
\bibliography{paper}
And a sample of my .bib:
@ARTICLE{Field1965,
author = {{Field}, G.~B.},
title = "{Thermal Instability.}",
journal = {\apj},
year = 1965,
month = aug,
volume = 142,
pages = {531},
doi = {10.1086/148317},
adsurl = {http://adsabs.harvard.edu/abs/1965ApJ...142..531F},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
I have attempted to compile in both ShareLatex (online) and Windows MikTeX with (pdfLaTeX+MakeIndex+BibTeX). I have attempted to delete the temp aux and bbl files and start fresh, to no avail. IF I change everything to APJ style, all citations show up normally. I also attempted to add \usepackage{natbib}
(although it should not be needed, given the option call to the mnras
class), but nothing. I have the most current versions of mnras.bst and mnras.cls to my knowledge.
I am hoping someone can help me figure out how to get my citations to appear, even if I have to use a different LaTeX editor. It is challenging to check my work without being able to review the paper as it will appear in the journal.
Here is a sample error message from Sharelatex:
Package natbib Warning: Citation `H01' on page 1 undefined on input line 77.
Best Answer
Thanks for the input everyone. It looks like this has been solved with an alternative solution, posted here: Problem with new MNRAS style files / newtx on arXiv
The details - replace
with
When I remove the
newtxtext
andnewtxmath
packages, my references show up again!