I use a Mac. I have a a .tex file called references test.tex. I have (what I think is) a plaintext file called sample1.bib. The files are super minimal. The references test.tex file looks like this:
\documentclass[12pt]{article}
\usepackage{natbib}
\renewcommand{\refname}{References}
\begin{document}
\cite{blackholes}
\bibliographystyle{plain}
\bibliography{sample1}
\end{document}
And the sample1.bib file looks like this:
@article{blackholes,
author="Rabbert Klein",
title="Black Holes and Their Relation to Hiding Eggs",
journal="Theoretical Easter Physics",
publisher="Eggs Ltd.",
year="2010",
note="(to appear)"
}
Apologies for the way the output looks - I'm not so good at LaTeX, but it looks like the input if you were to try to edit this original post
They're even saved in the same place (macintosh HD/User/Documents). So why does my reference appear as "[?]"? Do I need to compile somehow or something? Really quite confused.




bibtex <File>on the command line, as you would typelatex <File>for a LaTeX run. I do not know how that works on Mac. But since Texmaker seems to be designed for compiling LaTeX, I am sure that somewhere you can adjust the editor so that it compiles the bibliography automatically. – Manuel Weinkauf Jan 28 '15 at 17:11