I have a book document and I want to use biblatex pacakage to cite a book (referring to author-year) and cite a url (referring to author) inside the text. It does not print any bibliography for me. Do you know how to do it?
\documentclass{book}
\usepackage[style=authoryear]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{mybook,
author = {Her Name},
date = {2010},
title = {Her title},
publisher = {City: publisher},
}
@online{myurl,
author = {his Name},
title = {his title},
organization = {Wikibooks},
url = {https://helping_each_other_and_i_help_u.com},
}
\end{filecontents}
\bibliography{\jobname}
\begin{document}
like to see \cite{mybook} try \cite{myurl}.
\printbibliography
\end{document}