Biblatex 和 bib 文件的问题

Biblatex 和 bib 文件的问题

我的书目代码如下

\usepackage[backend=biber,style=apa{biblatex}
\addbibresource{bibliographie.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}

我使用这种引用风格

\autocite{Harrison2007}

但是当我编译 overleaf 时,找不到引用。

这是我收到的错误: BibTeX Cannot find 'bibliographie.bib'!

答案1

Overleaf 运行的是 TeXLive 2017,它有一个旧版本biblatex-apa。在这个版本中,你需要在加载后将以下行添加到你的序言中biblatex(因为你用法语写作)。

\DeclareLanguageMapping{french}{french-apa}

一般语法是:

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

如果你用英语写作,你通常会使用:

\DeclareLanguageMapping{english}{american-apa}

biblatex-apa 的 \mkbibdateapalongextra 存在问题了解更多详细信息。

如果您报告了日志错误,您的问题就会更容易回答。

答案2

我看不出上述 bib 条目有任何问题:

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

在此处输入图片描述

相关内容