![尽管文中提供了引用,但 Printbibliography 命令不起作用](https://linux22.com/image/361287/%E5%B0%BD%E7%AE%A1%E6%96%87%E4%B8%AD%E6%8F%90%E4%BE%9B%E4%BA%86%E5%BC%95%E7%94%A8%EF%BC%8C%E4%BD%86%20Printbibliography%20%E5%91%BD%E4%BB%A4%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
首先,如果我没有提供足够的信息来帮助我,我很抱歉。我很少在这里提问。
我知道这是一个被广泛讨论的问题,但我试图寻找我的问题的答案,却根本找不到。
问题:我无法使用文档末尾的 \printbibliography 命令打印参考书目。
我的问题与我在其他所有问题中看到的不同之处在于,引用关键字是 [任意数字],而不是粗体。例如,如果引用关键字是 Williams2016,而这是我的第一个引用,那么我看到的是 [1],而不是威廉姆斯2016,这告诉我引用读得正确。
我认为这可能与 \input 命令有关。我在不同的 .tex 文件中编写不同的章节,并使用 \input 将所有内容放在同一个文档中。我在另一个文档中使用了相同的参考书目代码,其中我没有将章节放在单独的文件中,但它运行良好。
谁能帮我吗?
我的文档如下(我认为这是相关部分)。我使用的是此处提供的 MastersDoctoralThesis 模板https://www.latextemplates.com/template/masters-doctoral-thesis
\documentclass[
11pt,
english,
singlespacing,
parskip,
headsepline,
chapterinoneline,
]{MastersDoctoralThesis}
\usepackage[backend=bibtex,style=numeric,sorting=none]{biblatex} % Use the bibtex backend with the authoryear citation style (which resembles APA)
\bibliography{C:/Users/berna/Documents/Bibtex/Thesis.bib} % The filename of the bibliography
\begin{document}
\input{Chapters/Introduction}
\input{Chapters/Methods}
\printbibliography
\end{document}
答案1
谢谢TorbjørnT。我能够解决这个问题。问题是我\end{document}
在文件末尾添加了一个Methods.tex
。
自然,这会导致文档比要求的更早结束,并且命令\printbibliography
没有被读取。