Overleaf:参考书目未出现

Overleaf:参考书目未出现

我已将示例复制并粘贴到这里: https://www.overleaf.com/learn/latex/Bibliography_management_in_LaTeX#The_bibliography_file

我创建了一个文件“example.tex”

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage{biblatex}
\addbibresource{sample.bib}

\begin{document}
Let's cite! The Einstein's journal paper \cite{einstein} and the Dirac's 
book \cite{dirac} are physics related items. 

\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",
    addendum = "(accessed: 01.09.2016)",
    keywords = "latex,knuth"
}

@inbook{knuth-fa,
    author = "Donald E. Knuth",
    title = "Fundamental Algorithms",
    publisher = "Addison-Wesley",
    year = "1973",
    chapter = "1.2",
    keywords  = "knuth,programming"
}

当我运行它时我得到了这个输出:

“您引用了参考书目中未包含的内容。请确保引用 (\cite{...}) 在您的参考书目中有对应的键,并且两者的拼写相同。”

并且没有显示参考书目。

答案1

试试这个代码:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

%\usepackage{biblatex}
%\addbibresource{sample.bib}

% *** CITATION PACKAGES ***
\usepackage{natbib}

\begin{document}
Let's cite! The Einstein's journal paper \cite{einstein} and the Dirac's 
book \cite{dirac} are physics related items. 


\ifCLASSOPTIONcaptionsoff
  \newpage
\fi

\bibliographystyle{unsrt}
\bibliography{sample.bib}

\end{document}

输出:“参考文献将位于单独的页面中” 在此处输入图片描述

在此处输入图片描述

答案2

在reference.bib文件中输入正确的内容。不要漏掉任何括号或逗号

@article{Yasahan2019Roted_object,
title = {Towards Scale-Aware Rotated
Object Detection in Aerial Imagery},
author = {Yasahan,wang and Yue, Zhang,and YI Zhang and Liangjin zhao and Xian,Sun and Guo},
year = "2019",
month = November,
day = "28",
doi = "10.1109/ACCESS.2019.2956569",
language = "English",
volume = "7",
pages = "173855-173865",
journal = "IEEE explore",
publisher = "IEEE",
}

并使用包

\usepackage[natbib=true,style=numeric,sorting=none]{biblatex}
\addbibresource{reference.bib}
\DefineBibliographyStrings{english}{%
  bibliography = {References},
}

相关内容