我是 LaTeX 的初学者,所以我可能忽略了一些很明显的东西。我使用 TeXstudio 作为编辑器,看是否有什么不同。
我的文件中有以下代码.tex
:
\documentclass[12p,twoside,a4paper]{report}
\title{My title}
\usepackage[style=numeric,backend=bibtex]{biblatex}
\addbibresource{citations.bib}
....
\newpage
\printbibheading
\nocite{*}
\printbibliography
我的文件中citations.bib
有:
@book{rasmussen,
author = "C. E. Rasmussen & C. K. I. Williams",
title = "Gaussian Processes for Machine Learning",
year = "2006",
publisher = "MIT Press",
address = "Massachusetts Institute of Technology"
}
在我的.tex
文档中,我将其引用为\cite{rasmussen}
,但我的文件末尾没有引用。
总而言之,我的代码如下所示:
\documentclass[12p,twoside,a4paper]{report}
\title{My Title}
% For the citations
\usepackage[style=numeric,backend=bibtex]{biblatex}
\addbibresource{citations.bib}
\begin{document}
\par
Lorem ipsum dolor sit amet. \cite{rasmussen}
\newpage
\printbibheading
\nocite{*}
\printbibliography
\end{document}
运行时出现以下错误消息bibtex myFile
:
This is BibTeX, Version 0.99d (MiKTeX 2.9)
The top-level auxiliary file: dissertation.aux
The style file: biblatex.bst
I couldn't open database file citations.bib
---line 3 of file dissertation.aux
: \bibdata{dissertation-blx,citations
: }
I'm skipping whatever remains of this command
Database file #1: dissertation-blx.bib
Warning--I didn't find a database entry for "F1:2010:Online"
Warning--I didn't find a database entry for "rasmussen"
Warning--I didn't find a database entry for "GP:Columbia"
Biblatex version: 2.8
(There was 1 error message)
我错过了什么?