參考書目/參考文獻不起作用

參考書目/參考文獻不起作用

這是我的序言,我已經嘗試了幾件事,包括透過 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.

在看了幾篇故障排除文章後,我不知道從哪裡開始解決問題,我找不到任何足夠明顯的東西讓我自己注意到。

相關內容