I'm trying to include the references directly into the main file. The problem is that citations are undefined and only the reference key will appear.
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{gladwell,
author = {Malcom Gladwell},
title = {The Tipping Point},
publisher = {Little, Brown and Company},
year = {2002}
}
\end{filecontents*}
\documentclass[a4paper,man,12pt]{apa6}
\let\Citeauthor\relax
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[colorinlistoftodos]{todonotes}
\let\biblabelsep\relax
\let\bibparsep\relax
\let\bibhang\relax
\let\citename\relax
\let\bibfont\relax
\let\Citeauthor\relax
\usepackage[backend=biber,style=apa]{biblatex}
\title{Title}
\shorttitle{Short}
\author{Some Random Guy}
\affiliation{School}
\addbibresource{\jobname}
\begin{document}
\maketitle
\renewcommand{\baselinestretch}{1.5}
\setcounter{secnumdepth}{3}
\section{Bla}
\parencite{gladwell}
\subsection{Blubb}
\subsubsection{Lalala}
%\bibliographystyle{apacite}
%\bibliography{jobname}
\printbibliography
\end{document}
biberand then recompile at least once more? – cfr Mar 15 '16 at 00:59biblatex-apayou are missing the language mapping\DeclareLanguageMapping{english}{english-apa}(see here). The correct call to\addbibresourceincludes the.bibfile extensions\addbibresource{\jobname.bib}, this is a problem with some platforms while others are more forgiving. Finally check http://tex.stackexchange.com/q/286706/ – moewe Mar 15 '16 at 06:44.blg) andbiblatex(.logfile)? What versions are you running? – moewe Mar 17 '16 at 07:36\DeclareLanguageMapping{english}{english-apa}was the missing part in this piece of code. The working code is posted as an answer now in order to help others. – Jan Spörer Mar 18 '16 at 17:14