so I'm trying to get to grips with the biblatex package and so far I can't get a citation or my bibliography to print properly onto PDF. Here's my .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}
}
@online{knuthwebsite,
author = "Donald Knuth",
title = "Knuth: Computers and Typesetting",
url = "http://www-cs-faculty.stanford.edu/~uno/abcde.html",
keywords = "latex,knuth"
}
@inbook{knuth-fa,
author = "Donald E. Knuth",
title = "Fundamental Algorithms",
publisher = "Addison-Wesley",
year = "1973",
chapter = "1.2",
keywords = "knuth,programming"
}
...
And here's my .tex file:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
%\usepackage{csquotes}% Recommended
%\usepackage[style=authoryear-ibid,backend=biber]{biblatex}
\usepackage{comment}
\usepackage[backend=biber,style=authoryear,sorting=ynt]{biblatex}
\addbibresource{ref.bib}
%\usepackage{natbib}
\usepackage{bibentry}
\title{Bibliography management: \texttt{biblatex} package}
\author{\LaTeX}
\date{ }
\begin{document}
\maketitle
\section{First section}
\begin{enumerate}
\item A citation command in parentheses: \parencite{einstein}.
\item A citation command for use in the flow of text: As \textcite{Smith:2013jd} said \dots
\item A citation command which automatically switches style depending on location and the option setting in the package declaration (see line 12 in the LaTeX source code). In this case, it produces a citation in parentheses: \autocite{Other:2014ab}.
\end{enumerate}
\medskip
\nocite{*}
\printbibliography
\end{document}
And the result it produces:

bibentrypackage (\usepackage{bibentry}) sincebiblatexhas its own facilities to produce full citations (\fullcite). And it is probably just a copy-and-paste error, but in your.bibfile the entryeinsteinis missing the@in@articleat the beginning. Furthermore, the posted.bibfile does not include the entriesSmith:2013jdandOther:2014ab, so if those contain grave errors, we can't see that. – moewe Sep 24 '19 at 15:36