I tried to compile the very basic example of biblatex in ShareLaTex from https://www.sharelatex.com/learn/Bibliography_management_with_biblatex in Texshop. I tried to compile first with LaTex and then with BibTex, but when I ran the BibTex, I got three errors as following:
I found no \citation commands---while reading file try2.aux
I found no \bibdata command---while reading file try2.aux
I found no \bibstyle command---while reading file try2.aux
The try2.tex file is directly copied from the ShareLaTex website:
% The main .tex file:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{biblatex}
\addbibresource{sample.bib}
\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}
The following is the sample.bib file, which is also a copy from the ShareLatex website:
% The sample.bib file:
@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",
keywords = "physics"
}
@book{dirac,
title={The Principles of Quantum Mechanics},
author={Paul Adrien Maurice Dirac},
isbn={9780198520115},
series={International series of monographs on physics},
year={1981},
publisher={Clarendon Press},
keywords = {physics}
}
I find ShareLaTex useful but sometimes cannot work offline, so I also use TexShop as a complimentary. I know that there must be difference between ShareLatex and TexShop, but I am not sure how I should modify this to make it compile in TexShop. Or, are there any alternative ways to make it work?
Thank you so much!