我在网上找到了这个示例。我在模板目录中创建了“references.bib”文件。我得到了以下输出:
你好世界[爱因斯坦]
并出现警告:citation einstein on page 1 undefined
我是否遗漏了什么?
我的references.bib包含以下内容:
@artikel{einstein,
author = {Albert Einstein},
title = {the true about tree},
journaltitle = {Annalen der Physik},
year = {1905},
volume = {322},
number = {10},
pages = {891-921}
}
\documentclass{article}
\usepackage[backend=bibtex]{biblatex}
%\bibliography{references}
%\addbibresource{<database>.<extension>}
\addbibresource{references.bib}
\begin{document}
Hallo world\cite{einstein}
\printbibliography
\end{document}
我感谢任何帮助。
答案1
改成:@artikel
@article
\documentclass{article}
\usepackage[hyperref=true,
natbib=true,
style=authortitle-dw,
backend=biber]{biblatex}
\begin{filecontents}{\jobname.bib}
@article{einstein,
author = {Albert Einstein},
title = {the true about tree},
journaltitle = {Annalen der Physik},
year = {1905},
volume = {322},
number = {10},
pages = {891--921}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Hallo world \\
\cite{einstein}
\printbibliography
\end{document}