如何在 Texmaker 中正确使用 Biber 后端实现 Biblatex?

如何在 Texmaker 中正确使用 Biber 后端实现 Biblatex?

我相信我已经正确配置了所有内容(查看了其他问题)。我在命令中替换了bibtex %biber %选择了 PdfLaTex + Bib(la)tex + PdfLaTex (x2) + View Pdf。最小工作示例如下:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber,style=apa,natbib=true]{biblatex}

\addbibresource{Example.bib}

\begin{document}

\citet{Cocks2011} liked to play in the snow. The snow was rather cold \citep{Cocks2011}.


\printbibliography

\end{document}

参考书目示例:

@article{Cocks2011,
author = {Cocks, L. Robin M. and Torsvik, Trond H.},
doi = {10.1016/j.earscirev.2011.01.007},
issn = {00128252},
journal = {Earth-Science Reviews},
keywords = {Laurentia,Palaeozoic,palaeogeography},
number = {1-2},
pages = {1--51},
publisher = {Elsevier B.V.},
title = {{The Palaeozoic geography of Laurentia and western Laurussia: A stable craton with mobile margins}},
url = {http://linkinghub.elsevier.com/retrieve/pii/S001282521100016X},
volume = {106},
year = {2011}
}

运行 biber 然后运行 ​​Quick Build 会产生以下错误:

 ! Package keyval Error: uniqueprimaryauthor undefined.See the keyval package documentation for explanation.Type H <return> for immediate help.... ... dateabbrev=false}

答案1

你做的是正确的。对我来说,你的代码只有一个小问题:样式apa需要\DeclareLanguageMapping 声明。另外,你应该加载csquotes。因此,请在你的序言中添加以下几行:

\usepackage[english]{babel} 
\DeclareLanguageMapping{english}{english-apa}
\usepackage{csquotes}

在此处输入图片描述

编辑(2019 年 2 月 20 日):正如下面 @moewe 的评论所指出的,\DeclareLanguageMapping在最新版本中现在是自动的biblatex-apa

相关内容