Texmaker 书目问题

Texmaker 书目问题

我在尝试使用 TexMaker 编制参考书目时遇到了问题(我对 LaTex 还很陌生)。我在 Google 上找到了多个结果,它们都出现了和我一整天遇到的相同的错误消息

The top-level auxiliary file:..... I found no \bibdata command-"

我找到了一个使用biblatex剑桥大学的演练

http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/biblatex.html

但由于某种原因,我仍然无法编制参考书目。这是我的 MWE:

%test1.tex
\documentclass{article} 

\usepackage{biblatex} 
\bibliography{refs} 

\begin{document} 
Hello\cite{KandR}
\printbibliography 
\end{document} 

如下refs.bib

%refs.bib

@BOOK
  {KandR,
   AUTHOR  = "Kernighan, Brian W. and Ritchie, Dennis M.",
   TITLE   = "{The C Programming Language Second Edition}",
   PUBLISHER = "Prentice-Hall, Inc.",
   YEAR = 1988
  }

我执行PDFLatex -> Bibtex -> PDFLatex -> PDFLatex。第一次执行时PDFLatex,我收到以下错误消息。

No "backend" specified, using Biber backend.
Citation 'KandR' on page 1 undefined
Empty bibliography
>There were undefined references.
Please (re)run Biber on the file:(biblatex) test1(biblatex) and rerun LaTeX afterwards.

以及与之相关的错误消息BibTex

Process started
This is BibTeX, Version 0.99d (MiKTeX 2.9) The top-level auxiliary file: test1.aux I
found no \citation commands---while reading file test1.aux I found no \bibdata command---
while reading file test1.aux I found no \bibstyle command---while reading file test1.aux
(There were 3 error messages)
Process exited normally

我是否遗漏了什么?

答案1

错误

No "backend" specified, using Biber backend.

给出提示,即biblatex正在使用biber。但您bibtex在编译期间正在使用。默认情况下biblatex使用biber(当未指定后端时)。您可以使用以下方法克服这个问题:

\usepackage[backend=bibtex]{biblatex}

强制biblatex使用bibtex作为后端。

相关内容