0

I believe I have everything configured correctly (having looked at other questions). I have replaced bibtex % with biber % in the Commands and I have selected PdfLaTex + Bib(la)tex + PdfLaTex (x2) + View Pdf. Minimal working example as follows:

\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}

The example bilbliography:

@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}
}

Running biber then Quick Build produces the following error:

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

1 Answers1

1

What you did is correct. For me there's just a small problem with your code: the apa style requires a \DeclareLanguageMapping declaration. Also, you should load csquotes. So add these lines to your preamble:

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

enter image description here

Edit (20/02/2019): As indicated by @moewe's comment below, \DeclareLanguageMapping is now automatic in recent versions of biblatex-apa.

Bernard
  • 271,350
  • I have added those three lines but the uniqueprimaryauthor error remains the same. – Ton Jun 09 '16 at 17:25
  • With only the code and bibliography you posted? – Bernard Jun 09 '16 at 17:27
  • Also which versions of biber and biblatex do you use? – Bernard Jun 09 '16 at 17:36
  • I took on board the advice by @moewe to update everything and it is all working now. Thanks very much Bernard and moewe – Ton Jun 10 '16 at 08:11
  • In recent versions of biblatex-apa the \DeclareLanguageMapping will be applied automatically, so there is no need for a manual mapping any more. – moewe Feb 20 '19 at 08:46
  • @moewe: I didn't know that. Thanks for the information! I've edited my answer accordingly, to be sure anyone who reads the answer sees it. – Bernard Feb 20 '19 at 09:23