[Tex/LaTex] Latex and APA, using biblatex

apa-stylebiblatex

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?

Best Answer

Use \input instead of \include in the preamble.

\include can only be used after the \begin{document}.

For an explanation why and what the difference between those two is see the answer from "Martin Scharrer" at When should I use \input vs. \include?

Related Question