Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I cannot, for the life of me, get biblatex's apa style to work. Other biblatex styles work fine, apa, however, does neither print a reference list, nor produce a citation at all (single output is key in boldprint). Warning "undefined references" is produced.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[german, ngerman]{babel}
\usepackage[babel]{csquotes}
\usepackage[style=apa, backend=biber]{biblatex}
\DeclareLanguageMapping{german}{german-apa}

\begin{filecontents}{apa-test-bib.bib}

@book{Labov1972,
    Address = {Philadelphia},
    Author = {William Labov},
    Publisher = {University of Pennsylvania Press},
    Title = {Sociolinguistic Patterns},
    Year = {1972}}

\end{filecontents}
\addbibresource{apa-test-bib.bib}

\begin{document}

Bla \cite{Labov1972}

\printbibliography

\end{document}

I run the newest version available of all packages. Can someone help, please? Am I just overlooking the obvious?

share|improve this question
    
Just checking, are you running bibtex or biber on the file? (You've specified backend=biber, which means you need to use it to sort the references, not bibtex.) –  Alan Munn Feb 9 '12 at 20:38
    
I used biber. As I said, it works fine for the other styles. I'm guessing it must be a problem with biblatex-apa. –  die Anne. Feb 9 '12 at 22:00
    
Your document works fine on my system (TeXLive 2011 on Mac). Have you deleted all the associated .aux and .bcf files etc.? If that doesn't change things can you add \listfiles to your document and add the console output to your question. –  Alan Munn Feb 9 '12 at 23:27
2  
Having just updated my system I can now reproduce your problem. –  Alan Munn Feb 10 '12 at 2:04
add comment

2 Answers

up vote 14 down vote accepted

This is a bug in biblatex 1.7 and the \RequireBiber[3] setting it appears. This was changed in biblatex-apa style 4.5. You can change the apa.bbx file to \RequireBiber[2] to fix it. I have released version 4.6 of the style with this setting and it should be in TL today.

share|improve this answer
    
Cool, looking forward to that. –  die Anne. Feb 10 '12 at 8:50
1  
I recently upgraded MikTek 2.9's packages and now I get biblatex Error: Option 'sorting=apa' invalid. (when not including backend=biber). If I use the example by die Anne I get the same error she had even if I edit apa.bbx to contain \RequireBiber[2] or \RequireBiber[1], as well as if I just replace it by the current v4.6 apa.bbx file. This was with biblatex v1.7 and biber v.0.9.8 –  Víctor H Cervantes Feb 20 '12 at 17:03
1  
Yes, you have to use Biber with the style now because it needs a custom sorting specification not possible with bibtex. –  PLK Feb 21 '12 at 6:48
    
Just a side note: You can see the version of biblatex-apa distributed by MiKTeX here: miktex.org/packages/biblatex-apa –  matth Feb 21 '12 at 10:52
    
Version 4.6 - that is the latest version –  PLK Feb 21 '12 at 11:00
add comment

I could replicate the error on my TeXLive 2011 Mac installation after updating to current packages via TeX Live Utility (biblatex 1.7, biblatex-apa 4.4, biber 0.9.8).

A quick fix for me was a change to the apa.bbx file in line 29:

\RequireBiber[3] % Biber is strictly required now due to custom sorting

to

\RequireBiber[1] % Biber is strictly required now due to custom sorting

I couldn't determine whether this is indeed a veritable cause for the "Empty bibliography" error you describe or an artefact due to some underlying problems. However the solution could reliably be repeated after a clean reinstall of all affected packages.

share|improve this answer
    
Nice fix. My system hadn't been updated in for a couple of days. –  Alan Munn Feb 10 '12 at 2:03
    
Great. That did the trick. –  die Anne. Feb 10 '12 at 8:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.