BibTeX, biblatex and biberBiber as backend in MastersDoctoralThesis Template in Overleaf does not work

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

Biber as backend in MastersDoctoralThesis Template in Overleaf does not work

Post by bachelorstudent »

Hello,

I am trying to do my bibliography in APA style in the MastersDoctoralThesis Template of Overleaf.
Unfortunately, only this code works:

Code: Select all

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

Code: Select all

\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:

Code: Select all

./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 li
ne 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 line
9.

LaTeX Warning: Citation 'gentner1997structure' on page 1 undefined on input lin
e 9.

LaTeX Warning: Citation 'Kriegeskorte2012InverseArrangements' on page 1 undefin
ed on input line 9.
./Chapters/Chapter1.tex:10:
LaTeX Warning: Citation 'Kriegeskorte2008RepresentationalNeuroscience' on page
1 undefined on input line 10.
./Chapters/Chapter1.tex:12:
LaTeX Warning: Citation 'hargreaves2002musical' on page 1 undefined on input li
ne 12.

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Biber as backend in MastersDoctoralThesis Template in Overleaf does not work

Post by Johannes_B »

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

Biber as backend in MastersDoctoralThesis Template in Overleaf does not work

Post by bachelorstudent »

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
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Biber as backend in MastersDoctoralThesis Template in Overleaf does not work

Post by Johannes_B »

\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

Biber as backend in MastersDoctoralThesis Template in Overleaf does not work

Post by bachelorstudent »

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

Biber as backend in MastersDoctoralThesis Template in Overleaf does not work

Post by bachelorstudent »

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

Code: Select all

\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}.
Post Reply