书目/参考文献不具有任何作用

书目/参考文献不具有任何作用

这是我的序言,我尝试了几种方法,包括通过 pdflatex 运行它(没有 fontspec 等)并尽可能正确地遵循文档(尽管很明显我没有)。我使用过 TeXworks 和 TexStudio。

\documentclass[12pt]{article}
\usepackage[a4paper]{geometry}
\usepackage{fontspec}
\linespread{1.5}
\setmainfont{Times New Roman}
\usepackage{siunitx}
\title{a title}
\author{a name}
\newpage
\setcounter{page}{1}
\bibliography{essay}
\bibliographystyle{apalike}
\begin{document}

这是我尝试编译时的日志

Missing \begin{document}. \begin{thebibliography}{}
Missing \begin{document}. \begin{thebibliography}{}
Empty `thebibliography' environment
Citation `Pyne05' on page 2 undefined
Citation `loturco15' on page 2 undefined
Citation `till15' on page 2 undefined
Citation `Haguenauer05' on page 2 undefined
Citation `baptista16' on page 2 undefined
Citation `atkinson98' on page 2 undefined
Citation `atkinson98' on page 2 undefined
Citation `safrit' on page 2 undefined
Citation `buckthorpe12' on page 2 undefined
Citation `leard' on page 2 undefined
Citation `comyns23' on page 2 undefined
Citation `buckthorpe12' on page 2 undefined
Citation `buckthorpe12' on page 2 undefined
Citation `klavora' on page 2 undefined
Citation `buckthorpe12' on page 2 undefined
Citation `leard' on page 2 undefined
Citation `buckthorpe12' on page 2 undefined
Citation `leard' on page 2 undefined
Citation `comyns23' on page 2 undefined
Citation `buckthorpe12' on page 2 undefined
Citation `leard' on page 2 undefined
Citation `comyns23' on page 2 undefined
Citation `buckthorpe12' on page 2 undefined
Citation `comyns23' on page 2 undefined
Citation `buckthorpe12' on page 2 undefined
Citation `leard' on page 2 undefined
Citation `buckthorpe12' on page 2 undefined
Citation `comyns23' on page 2 undefined
Citation `leard' on page 2 undefined
Underfull \hbox (badness 10000) in paragraph
Underfull \hbox (badness 10000) in paragraph
Underfull \hbox (badness 10000) in paragraph
Underfull \hbox (badness 10000) in paragraph
Underfull \hbox (badness 10000) in paragraph
Underfull \hbox (badness 10000) in paragraph
There were undefined references.

我不知道从哪里开始查找问题所在,在看了几篇故障排除文章之后,我找不到任何明显值得我注意的东西。

相关内容