I have to write a report using APA style bibliography, using this minimal example:
\documentclass{article}
\usepackage[backend=biber,
bibstyle=apa,
]{biblatex}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{Knu86,
author = {Knuth, Donald E.},
year = {1986},
title = {The \TeX book},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\cite{*}
\printbibliography
\end{document}
Doesn't end processing, the bibliography is never printed, instead:
Package biblatex Info: No input encoding detected.
(biblatex) Assuming 'ascii'.
Package biblatex Info: Automatic encoding selection.
(biblatex) Assuming data encoding 'ascii'.
\openout3 = `test.bcf'.
Package biblatex Info: Trying to load bibliographic data...
Package biblatex Info: ... file 'test.bbl' found.
(./test.bbl)
Package biblatex Info: Reference section=0 on input line 19.
Package biblatex Info: Reference segment=0 on input line 19.
LaTeX Warning: Citation '*' on page 1 undefined on input line 21.
! Undefined control sequence.
<argument> \mkbibdateapalongextra
{year}{month}{day}\iffieldundef {endyear}{...
l.24
is found in the log file. If I use citestyle
, this error doesn't appear. style
produces the same problem. This answer makes allusion that I need to define just one language in babel, but using language=american
as recommended produce the same result.
english
toamerican-apa
with\DeclareLanguageMapping{english}{american-apa}
. I have now added a short paragraph about the general problem to the answer. But please let me know what I can do to avoid misunderstandings.