LaTeX forum ⇒ 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.
bachelorstudent
Posts: 4
Joined: Sat Sep 29, 2018 9:29 am

Biber as backend in MastersDoctoralThesis Template in Overleaf does not work

Postby bachelorstudent » Sat Sep 29, 2018 1:23 pm

Hello,

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


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

I get this error message when I try to use biber as backend and apa as style:
  1. ./main.tex:
  2. LaTeX Warning: Unused global option(s):
  3. [onehalfspacingheadsepline].
  4. (no line number):
  5. [0] Config.pm:343> INFO - This is Biber 2.5
  6. [0] Config.pm:346> INFO - Logfile is 'main.blg'
  7. [143] biber:290> INFO - === Sat Sep 29, 2018, 11:14:58
  8. [417] Biber.pm:352> INFO - Reading 'main.bcf'
  9. [756] Biber.pm:777> INFO - Found 107 citekeys in bib section 0
  10. [780] Biber.pm:3494> INFO - Processing section 0
  11. [802] Biber.pm:3658> INFO - Looking for bibtex format file 'example.bib, Mendeley.bib' for section 0
  12. [918] Utils.pm:165> ERROR - Cannot find 'example.bib, Mendeley.bib'!
  13. [919] Biber.pm:113> INFO - ERRORS: 1
  14. ./Chapters/Chapter1.tex:5:
  15. LaTeX Warning: Citation 'ANSI2013' on page 1 undefined on input line 5.
  16.  
  17. LaTeX Warning: Citation 'hargreaves2002musical' on page 1 undefined on input li
  18. ne 5.
  19.  
  20. LaTeX Warning: Citation 'li2003comparative' on page 1 undefined on input line 5
  21. .
  22. ./Chapters/Chapter1.tex:9:
  23. LaTeX Warning: Citation 'Shepard1962TheI.' on page 1 undefined on input line 9.
  24.  
  25. LaTeX Warning: Citation 'tversky1977features' on page 1 undefined on input line
  26. 9.
  27.  
  28. LaTeX Warning: Citation 'gentner1997structure' on page 1 undefined on input lin
  29. e 9.
  30.  
  31. LaTeX Warning: Citation 'Kriegeskorte2012InverseArrangements' on page 1 undefin
  32. ed on input line 9.
  33. ./Chapters/Chapter1.tex:10:
  34. LaTeX Warning: Citation 'Kriegeskorte2008RepresentationalNeuroscience' on page
  35. 1 undefined on input line 10.
  36. ./Chapters/Chapter1.tex:12:
  37. LaTeX Warning: Citation 'hargreaves2002musical' on page 1 undefined on input li
  38. ne 12.



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

User avatar
Johannes_B
Site Moderator
Posts: 3930
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Sep 30, 2018 7:28 am

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

Postby bachelorstudent » Sun Sep 30, 2018 11:49 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

User avatar
Johannes_B
Site Moderator
Posts: 3930
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Sep 30, 2018 12:36 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

Postby bachelorstudent » Sun Sep 30, 2018 7:55 pm

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

Postby bachelorstudent » Sun Sep 30, 2018 8:16 pm

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

  1. \usepackage[backend=biber,style=apa]{biblatex}
  2. \addbibresource{example.bib}
  3. \usepackage[autostyle=true]{csquotes}
  4. \DeclareLanguageMapping{english}{english-apa}


into the MastersDoctoralThesis preamble. The preamble is before the command \begin{document}.


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests