I am using the share latex own example given on their website to build a bibliography.
Here is my 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{1}
\printbibliography
\end{document}
and here is my sample.bib file
@article{1,
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"
}
I do this and the thing outputted as a reference in the document is whatever I have out in \cite{}.
Why is this not working?
I get an error now, It says
cannot find 'mybibliography.bib'!
biberin between runs of pdfLaTeX, see e.g. Question mark or bold citation key instead of citation number and Biblatex with Biber: Configuring my editor to avoid undefined citations – Torbjørn T. Jul 28 '16 at 13:47\cite{1}), then I must have changed it by accident, so thanks! – Torbjørn T. Jul 28 '16 at 13:58.bibfile calledmybibliography.bib? Is it in the same folder as the.texfile? – Torbjørn T. Jul 28 '16 at 14:05It won't work unless the file name of the bibliography is
– Rolf Marvin Bøe Lindgren Jul 28 '16 at 14:08sample.bib, of course.\addbibresource{sample.bib}as well, judging by the error message you posted you have used\addbibresource{mybibliography.bib}. – Torbjørn T. Jul 28 '16 at 14:18\cite{1}is going to be very confusing once there are more references and it gets numbered 27 or whatever. – David Carlisle Jul 28 '16 at 17:26