I'm having trouble implementing my citations in my Latex document on overleaf. I'm using the following preamble-options:
\documentclass[
a4paper,
man,
british
]{apa6}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{epstopdf}
\usepackage{ragged2e}
\usepackage{lscape}
\usepackage{pdflscape}
\usepackage{longtable}
\usepackage{adjustbox}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\usepackage{dcolumn}
\usepackage{array}
\usepackage{textcomp}
\usepackage{multirow}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{dcolumn}
\usepackage{setspace}
\usepackage{threeparttable}
\usepackage{amsmath}
\usepackage{array}
\usepackage{longtable}
\usepackage{pdflscape}
\usepackage{eurosym}
\usepackage{xcolor}
\usepackage{soul}
\clubpenalty=10000
\widowpenalty=10000
\usepackage[colorlinks=true,linkcolor=black, citecolor=black,filecolor=black, urlcolor=black]{hyperref}
\usepackage{filecontents}
% for back reference in bibliography
\usepackage[style=apa,backend=biber,backref=true]{biblatex}
\addbibresource{ref.bib}
\DeclareLanguageMapping{english}{english-apa}
% maps apacite commands to biblatex commands
\let \citeNP \cite
\let \citeA \textcite
\let \cite \parencite
%%%
% Apa Bib - enable reprint according to apa
%%%
\input{enable-reprint}
\raggedbottom
\bibliography{./ref}
I uploaded a ref.bib file containing all my bibliography-information. I can also access the various objects of my ref.bib file by using the \cite{Green.2016} call. However, in the pdf it does print the reference key "Green.2016" instead of the authors name and year. I would really appreciate any hints on how to solve the problem.
\addbibressource{ref.bib}
seems to be missing in your code\begin{document}...\end{document}
etc.(tex.meta.stackexchange.com/q/228/35864) and post the complete.log
and.blg
files (you can upload the.log
to a text-sharing website such as pastebin.com, since it will likely be too long for the question)..log
and.blg
file (the post shows it for the.bbl
file, but the method is the same).