0

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'!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.