BibLaTeX 不打印参考书目

BibLaTeX 不打印参考书目

我正在使用 sharelatex 与同学一起完成一个项目,但我们无法打印 biblatex。我们用于参考书目的文件目前存储为 sample.bib。有人能看出我们做错了什么吗?

\documentclass[%
 aip,
 jmp,%
 amsmath,amssymb,
%preprint,%
 reprint,%
%author-year,%
%author-numerical,%
]{revtex4-1}

\usepackage{biblatex}
\addbibresource{sample.bib}
\usepackage{graphicx}
\usepackage{dcolumn}
\usepackage{bm}
\usepackage{lipsum}


\begin{document}



\title{Review essay: Here comes our title, which is very loooooooooooooooong}

\vspace{150px}
\begin{abstract}
\textbf{\begin{center}name 1 (student number) name 2 (student numeber \\ University \& Vrije University\\ \today \end{center}}

\end{abstract}

\maketitle

\begin{quotation}
\lipsum[1]

\end{quotation}

\section{\label{sec:level1}Introduction}
\lipsum[1-5]

\section{references}
\printbibliography


\end{document}

sample.bib

@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"
}

答案1

\nocite{*}在 前添加\printbibliography。默认情况下,文中未引用的参考文献不会出现在参考书目中。

相关内容