1

My bibliography codes looks like this

\usepackage[backend=biber,style=apa{biblatex}
\addbibresource{bibliographie.bib}

And an exemple of one my references

  @article{Harrison2007,
  title = {What's the Difference? Diversity Constructs as Separation, Variety, or Disparity in Organizations},
  volume = {32},
  issn = {0363-7425, 1930-3807},
  shorttitle = {What's the Difference?},
  language = {en},
  number = {4},
  journal = {Academy of Management Review},
  doi = {10.5465/amr.2007.26586096},
  author = {Harrison, David A. and Klein, Katherine J.},
  month = oct,
  year = {2007},
  pages = {1199-1228},
  file = {C:\\Users\\ornel\\Zotero\\storage\\RZNS5L26\\Harrison et Klein - 2007 - What's the difference diversity constructs as sep.pdf}

And I use this citation style

\autocite{Harrison2007}

But when I compile overleaf, the citation is not found.

This is the error I get : BibTeX Cannot find 'bibliographie.bib'!

  • Do any of your references appear correctly? Do just certain ones fail to be found? – Alan Munn Jul 20 '19 at 20:32
  • none of my references appear. It is like overleaf cannont read my bib files – Dosma Jul 20 '19 at 20:35
  • Do you get an error that says "bibtex cannot find bibliographie.bib"? – Alan Munn Jul 20 '19 at 20:37
  • If you scroll down past all the orange warnings, is there a red error message as in my previous comment? Have you tried deleting all the .aux files and then recompiling? (use the Trashcan icon in the error logs panel). – Alan Munn Jul 20 '19 at 20:44
  • Yes there is the error BibTeX Cannot find 'bibliographie.bib'! – Dosma Jul 20 '19 at 20:46
2

Overleaf is running TeXLive 2017, which has an older version of biblatex-apa. In this version you need to add the following line to your preamble after you load biblatex (since you are writing in French).

\DeclareLanguageMapping{french}{french-apa}

The general syntax is:

\DeclareLanguageMapping{<lang>}{<lang>-apa}

If you are writing in English, you would usually use:

\DeclareLanguageMapping{english}{american-apa}

See Problem with \mkbibdateapalongextra of biblatex-apa for more detailed information.

If you had reported the log error, your question would have been easier to answer.

  • I'm not sure to understand how adding this line will help overleaf find my bib files. The error I have is Citation XXX on page XXX undefined on input line XXX – Dosma Jul 20 '19 at 20:22
  • I was working from the MWE posted in the answer by RedCloud. That example doesn't compile on Overleaf, so it seemed possible that this was your problem, and the line I give will fix it. (I assume it's already in your document then.) Does the sample code given by RedCloud work for you (with this addition)? There doesn't seem to be anything wrong with your .bib entry. – Alan Munn Jul 20 '19 at 20:28
  • Sadly, it doesn't work – Dosma Jul 20 '19 at 20:38
  • @Dosma Please be more helpful with your reports. "It doesn't work" provides no useful information for us to be able to help you. – Alan Munn Jul 20 '19 at 20:39
  • See also tex.stackexchange.com/q/474557/35864 – moewe Jul 21 '19 at 9:28
1

I cannot see any problem with the above bib entry:

\RequirePackage{filecontents}
\begin{filecontents*}{test.bib}
@article{Harrison2007,
    title = {What's the Difference? Diversity Constructs as Separation, Variety, or Disparity in 
    Organizations},
    volume = {32},
    issn = {0363-7425, 1930-3807},
    shorttitle = {What's the Difference?},
    language = {en},
    number = {4},
    journal = {Academy of Management Review},
    doi = {10.5465/amr.2007.26586096},
    author = {Harrison, David A. and Klein, Katherine J.},
    month = oct,
    year = {2007},
    pages = {1199-1228},
    file = {C:\\Users\\ornel\\Zotero\\storage\\RZNS5L26\\Harrison et Klein - 2007 - What's the difference 
    diversity constructs as sep.pdf},
}
\end{filecontents*}

\documentclass{report}
\usepackage[style=apa]{biblatex}
\addbibresource{test.bib}

\begin{document}

foo~\textcite{Harrison2007}
\printbibliography

\end{document} 

enter image description here

  • the first two lines that you put , are they necessary ?\RequirePackage{filecontents} AND \begin{filecontents*}{test.bib} – Dosma Jul 20 '19 at 19:49
  • Yes. The first one to allow the environment filecontents to overwrite the external file test.bib if edited. It is here only for testing your bibtex entry. You do not need it if you already have you data file for the bibliography. – user187802 Jul 20 '19 at 19:52
  • Because my bib files start with a reference – Dosma Jul 20 '19 at 19:54
  • @Dosma No, they are just used in the example code to make the file self-contained. They should not be in your .bib file. – Alan Munn Jul 20 '19 at 19:55
  • @Red-Cloud Did you try this on Overleaf? It fails. – Alan Munn Jul 20 '19 at 20:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.