## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ Biber as backend in MastersDoctoralThesis Template in Overleaf does not work

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
bachelorstudent
Posts: 4
Joined: Sat Sep 29, 2018 9:29 am

### Biber as backend in MastersDoctoralThesis Template in Overleaf does not work

Hello,

I am trying to do my bibliography in APA style in the MastersDoctoralThesis Template of Overleaf.
Unfortunately, only this code works:
\usepackage[backend=bibtex,style=authoryear]{biblatex}\addbibresource{example.bib, Mendeley.bib}

and when I try this code it does not work:
\usepackage[backend=bibter,style=apa]{biblatex}\addbibresource{example.bib, Mendeley.bib}

I get this error message when I try to use biber as backend and apa as style:
./main.tex:LaTeX Warning: Unused global option(s):[onehalfspacingheadsepline].(no line number):[0] Config.pm:343> INFO - This is Biber 2.5[0] Config.pm:346> INFO - Logfile is 'main.blg'[143] biber:290> INFO - === Sat Sep 29, 2018, 11:14:58[417] Biber.pm:352> INFO - Reading 'main.bcf'[756] Biber.pm:777> INFO - Found 107 citekeys in bib section 0[780] Biber.pm:3494> INFO - Processing section 0[802] Biber.pm:3658> INFO - Looking for bibtex format file 'example.bib, Mendeley.bib' for section 0[918] Utils.pm:165> ERROR - Cannot find 'example.bib, Mendeley.bib'![919] Biber.pm:113> INFO - ERRORS: 1./Chapters/Chapter1.tex:5:LaTeX Warning: Citation 'ANSI2013' on page 1 undefined on input line 5. LaTeX Warning: Citation 'hargreaves2002musical' on page 1 undefined on input line 5. LaTeX Warning: Citation 'li2003comparative' on page 1 undefined on input line 5../Chapters/Chapter1.tex:9:LaTeX Warning: Citation 'Shepard1962TheI.' on page 1 undefined on input line 9. LaTeX Warning: Citation 'tversky1977features' on page 1 undefined on input line9. LaTeX Warning: Citation 'gentner1997structure' on page 1 undefined on input line 9. LaTeX Warning: Citation 'Kriegeskorte2012InverseArrangements' on page 1 undefined on input line 9../Chapters/Chapter1.tex:10:LaTeX Warning: Citation 'Kriegeskorte2008RepresentationalNeuroscience' on page1 undefined on input line 10../Chapters/Chapter1.tex:12:LaTeX Warning: Citation 'hargreaves2002musical' on page 1 undefined on input line 12.

Can anyone help me with this?
That would be really great.

Johannes_B
Site Moderator
Posts: 4116
Joined: Thu Nov 01, 2012 4:08 pm
The unused global option issue is not related to the bibliography. There is a comma missing. It should be onehalfspacing,headsepline.

To get the bibliography working, use : \addbibresource{Mendeley.bib}.

You should give your bibliography a better name though. Please have a look at https://en.wikibooks.org/wiki/LaTeX/Bib ... _and_biber
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

bachelorstudent
Posts: 4
Joined: Sat Sep 29, 2018 9:29 am
I changed what you have commented but I still have problems running biber in that template because I think in overleaf everything is done automatically so that I don't have to do something further besides changing from backend=bibtex to backend=biber. Do you think that this is related to the Template "MastersDoctoralThesis" in overleaf?

\usepackage[backend=biber,style=apa]{biblatex} % Use the bibtex backend with the authoryear citation style (which resembles APA)

\addbibresource{example.bib} % The filename of the bibliography

Johannes_B
Site Moderator
Posts: 4116
Joined: Thu Nov 01, 2012 4:08 pm
\DeclareLanguageMapping{english}{english-apa}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

bachelorstudent
Posts: 4
Joined: Sat Sep 29, 2018 9:29 am
I tried this \DeclareLanguageMapping{english}{english-apa} already some days ago but it did not work either.

So, I think the problem was that I run the template in v1 because when I open a MastersDoctoralThesis template in v2 backend=biber and style=apa works without problems!!

bachelorstudent
Posts: 4
Joined: Sat Sep 29, 2018 9:29 am
Tried \DeclareLanguageMapping{english}{english-apa} again in a v1 project and it worked as well.

That is really cool.

Thank you so much for your help.
Everybody who has got the same problem:
Write

\usepackage[backend=biber,style=apa]{biblatex} \addbibresource{example.bib}\usepackage[autostyle=true]{csquotes} \DeclareLanguageMapping{english}{english-apa}
into the MastersDoctoralThesis preamble. The preamble is before the command \begin{document}.