I am doing my thesis and trying to set up biblatex with APA on overleaf. In my references.bib file I have:
@misc{ramstedt2014andt,
title={ANDT-bruket och dess negativa konsekvenser i den svenska befolkningen 2013},
author={Ramstedt, Mats and Sundin, Erica and Landberg, Jonas and Raninen, Jonas},
year={2014},
publisher={Rapport}
}
@book{andersson2009alcohol,
title={Alcohol Use and Stress in University Freshmen-A Comparative Intervention Study of Two Universities},
author={Andersson, Claes},
volume={2009},
number={41},
year={2009},
publisher={Clinical Alcohol Research, Department of Health Sciences, Lund University}
}
In my main file I have:
\documentclass[bachelor,lith,english]{liuthesis}
%% Settings go in settings.tex
\include{settings}
Now this comes in the settings file
\usepackage[backend=biber,hyperref, style=apa]{biblatex}
\DeclareLanguageMapping{british}{british-apa}
\ExecuteBibliographyOptions{maxnames=99}
\addbibresource{references.bib}
However when I cite like this:
Today approximately 446 000 people suffer from alcohol addiction in Sweden \cite{ramstedt2014andt}.
I get:
Today approximately 446 000 people suffer from alcohol addiction in Sweden . ramstedt2014andt
EDIT:
The style I am expecting is classic APA such as:
(Ramstedt et al, 2014)
(Ramstedt, 2014)
Ramstedt (2014)
The warnings I have is:
./demo_student_thesis.tex:
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) demo_student_thesis
(biblatex) and rerun LaTeX afterwards.
./intro.tex:37:
LaTeX Warning: Citation 'ramstedt2014andt' on page 1 undefined on input line 37
.
./demo_student_thesis.tex:79:
LaTeX Warning: Empty bibliography on input line 79.
EDIT II
Some progress here. I managed to compile after adding "backref=true".
\usepackage[backend=biber,hyperref,backref=true style=apa]{biblatex}
What this did was adding a numbered reference as such 1 for the ramstedt2014andt reference. I compared my settings with this overleaf template.
EDIT III By remowing \printbibliography from the main file I got this result: Ramstedt, Sundin, Landberg and Raninen, 2014. I could just write "and others" in the reference.bib file however the parenthesis does not seem to be included still.
Parenthesis could be solved by using \parencite{}. However is there a way to automatically set et al instead of adding "and others" in the bib.file?
biberrun for you. Possibly there's a typo somewhere so thereferences.bibentry is not exactly the same as that of the\cite{}command but the example looks ok, could you add a minimal (non-)working example with bibliography (MWEB) to the question? – Dai Bowen Mar 29 '17 at 16:47.bibentries or the way you us it. Please check the.logfile for errors (you should be able to have a look at the top right.) – moewe Mar 29 '17 at 17:13.logand.blgfiles. – moewe Mar 29 '17 at 17:16.blgmanually via https://www.overleaf.com/help/207-how-do-i-download-the-automatically-generated-files-e-dot-g-bbl-aux-ind-gls-for-my-project-my-publisher-asked-me-to-include-them-in-my-submission – moewe Mar 29 '17 at 17:17.blgfile. – moewe Mar 29 '17 at 17:27.blgfile – moewe Mar 29 '17 at 17:32.logjust confirms that it is very important we get to see that.blgfile. It shows that LaTeX fails to find the.bblfile, which heavily suggests that Biber either failed to run or bailed out when trying to compile your.bibfile. – moewe Mar 29 '17 at 17:44.blgfile is a necessary consequence of usingbiblatex/Biber. Overleaf cannot overcome that. – jon Mar 29 '17 at 18:48backref=true style=apais wrong. You are missing a comma betweentrueandapa. That is why you get the default numeric style. This is most certainly not an answer to your question. As you can see in the answers there are several issues with your document. The template is not a particularly good one and some of your settings don't match. – moewe Mar 30 '17 at 06:56.blg. I didn't find a way to directly download the.blgfile on Overleaf as you can do for the.log. You can download all files in a.zip(amongst them hopefully the.blg) with this manual solution I linked to earlier: https://www.overleaf.com/help/207-how-do-i-download-the-automatically-generated-files-e-dot-g-bbl-aux-ind-gls-for-my-project-my-publisher-asked-me-to-include-them-in-my-submission – moewe Mar 30 '17 at 06:58and othersto your.bibfile. – moewe Mar 30 '17 at 06:59