I am unsuccessfully trying to implement biblatex in my project, so that I can cite other content. I get an error that looks loke this:
Undefined control sequence. <argument> \mkbibdateapalongextra
{year}{month}{day}\iffieldundef {endyear}{... l.15 \printbibliography[heading=bibempty]
The control sequence at the end of the top line of your error message was never \def'ed. If
you have misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget
about whatever was undefined.
Can you help me to solve the problem? A minimum code example would look like this:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage[style=apa,citestyle=numeric,sorting=nyt,sortcites=true,autopunct=true,hyperref=true,abbreviate=false,backref=true,backend=biber]{biblatex}
\addbibresource{bibliography.bib} % BibTeX bibliography file
\defbibheading{bibempty}{}
\begin{document}
My text with a cite\cite{1_nielsen_2011}.
\printbibliography[heading=bibempty]
\end{document}
And the bibliography.bib file has this content:
@misc{1_nielsen_2011,
author={Nielsen, Oskar Herrik},
title={Oldmoney.dk | Din genvej til gamle penge},
url={http://www.oldmoney.dk/},
urldate={2015-9-11},
journal={Oldmoney.dk},
year={2011}
}
biblatex-apathing, you need\DeclareLanguageMapping{english}{english-apa}or the appropriate mappping for your language:\DeclareLanguageMapping{ngerman}{ngerman-apa}or\DeclareLanguageMapping{dutch}{dutch-apa}. Unfortunately, there is no Danish language file as of now. – moewe Sep 12 '15 at 09:17nynorsk-apa.lbx,norsk-apa.lbx,norwegian-apa.lbx) or just directly fromenglish-apa.lbx. If you get a nicedanish-apa.lbxdone I suspect thebiblatex-apamaintainer would really appreciate your sharing it with him (at github). – moewe Sep 12 '15 at 09:25\addbibresource{bibliography.bib}– 7heViking Sep 12 '15 at 09:36babelloaded and Danish specified as your document language by\usepackage[danish]{babel}) that will not be enough. But if you don't load babel it can work. I would however recommend to loadbabel(orpolyglossiaon XeLaTeX/LuaLaTeX). – moewe Sep 12 '15 at 09:40\DeclareLanguageMapping{english}{english-apa}will work. But if you write a document in a language other than American English, you probably want to loadbabelwith the appropriate language (\usepackage[dutch]{babel}) in which case you will need the appropriate language mapping for your document language (\DeclareLanguageMapping{dutch}{dutch-apa}). – moewe Sep 12 '15 at 09:44authoryearis also fine. And the standardbiblatexstyles even speak Danish. But if you can invest the time into helping to translateenglish-apa.lbxinto Danish, that would help other people with the same problem. – moewe Sep 13 '15 at 06:31Biber reported the following issues with '1_nielsen_2011': - Datamodel: Entry '1_nielsen_2011' (bibliography.bib): Invalid format '2015-9-11' of date field 'urldate' - ignoring.
– 7heViking Sep 13 '15 at 06:49YYYY-MM-DDso you need2015-09-11, leading zeroes are necessary. I had noticed that earlier, but forgot to point it out, sorry. – moewe Sep 13 '15 at 06:50