1

This question already has an answer here:

I've created a simple LaTeX file.

\documentclass{article}
\begin{document}

\bibliographystyle{plain}
\bibliography{bibliography.bib}

\end{document}

My bibliography.bib file is in my main working directory and looks like this

@book{1,
    author = {Bill Bezio},
    title = {Numerical Simulations},
    date = {August 2016},
}

When I build and view the pdf in TexStudio (OS is Ubuntu 16.04) I get one page with the word "References" at the top and nothing else. There is a footer of "1" at the bottom but no references. Where are the references?

marked as duplicate by Sean Allred, Kurt, Zarko, user13907, barbara beeton Aug 7 '16 at 19:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Also, welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Sean Allred Aug 7 '16 at 17:46
3

It doesn't look like you've actually made any cited references, so LaTeX isn't going to just add everything to your bibliography. Use \nocite{1} to instruct LaTeX to add citekey 1 to your bibliography even if it's not used in your document. You could use * instead to put everything from your .bib file into your bibliography, but your .bib file could easily grow beyond what you're using for this paper.

% arara: pdflatex
% arara: bibtex
% arara: pdflatex
% arara: pdflatex
\begin{filecontents}{bibliography.bib}
@book{1,
    author = {Bill Bezio},
    title = {Numerical Simulations},
    year = 2016,
    month = August,
}
\end{filecontents}
\documentclass{article}

\begin{document}

\nocite{1} % <---

\bibliographystyle{plain}
\bibliography{bibliography.bib}

\end{document}

output

  • Thank you. That solved it. Any reason the date is not showing up? – Jason Hunter Aug 7 '16 at 18:00
  • @sixsigmar Edited. Looks like the plain style doesn't include the month, but date was never a key to begin with. – Sean Allred Aug 7 '16 at 18:04
  • I think you forgot the curly brackets around the month and the year. When I put those in it works exactly the way I want :) – Jason Hunter Aug 7 '16 at 18:10
  • @sixsigmar Ah, that makes more sense :) I could've sworn date was valid, but I wasn't getting it working and I wasn't finding it in the manuals… I'm out of practice! – Sean Allred Aug 7 '16 at 18:11
  • 1
    You can ask on meta if you have more questions, but my name would only show up if I would not be notified otherwise. Since this is a comment on my question, I'm going to be notified regardless. You can try pinging me as a comment on your own question if you'd like to try it out. – Sean Allred Aug 7 '16 at 18:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.