I'm brand new to Latex and BibTex and am having more trouble than I should generating a bibliography. Just using the example from the ShareLatex website won't work.
I used their text of
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{biblatex}
\addbibresource{sample2}
\begin{document}
Let's cite! The Einstein's journal paper \cite{einstein} and the Dirac's
book \cite{dirac} are physics related items.
\printbibliography
\end{document}
and made a separate file called sample2.bib wherein I put
@article{einstein,
author = "Albert Einstein",
title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
[{On} the electrodynamics of moving bodies]",
journal = "Annalen der Physik",
volume = "322",
number = "10",
pages = "891--921",
year = "1905",
DOI = "http://dx.doi.org/10.1002/andp.19053221004"
}
@book{latexcompanion,
author = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
title = "The \LaTeX\ Companion",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@misc{knuthwebsite,
author = "Donald Knuth",
title = "Knuth: Computers and Typesetting",
url = "http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html"
}
Then, from TexWorks I run pdflatex -> bibtex -> pdflatex -> pdflatex, and just end up with a one page pdf with all the citation names in bold. But NO bibliography.
How can I get this working? What am I doing wrong?
Thanks for the help,
The top-level auxiliary file: untitled-5.aux I found no \citation commands---while reading file untitled-5.aux I found no \bibdata command---while reading file untitled-5.aux I found no \bibstyle command---while reading file untitled-5.aux (There were 3 error messages)
. So...I guess not. What am I doing wrong though?