参考文献中缺少字段

参考文献中缺少字段

我的参考文献(肯定是文章类型,但也可能包括其他类型)未显示所有字段。我使用natbibchapterbib并且有一个“自定义”bib 样式,我从 GitHub 下载了 Vancouver。我的编辑器是 Overleaf。

该问题似乎与 bib 文件中输入字段的顺序有关。这取决于如何使用 Zotero 导出参考文献更好的 BibTeX。下面的示例条目显示了 Zotero 如何导出条目。

我的理解是,只要存在必填字段,bib 文件中条目的字段顺序并不重要。但是,我让所有参考字段出现在参考书目中的唯一方法是手动更改它们的顺序以匹配 - 我认为 - 文件中的顺序.bst。即,我确保参考条目中字段的顺序为作者、标题、期刊、卷、编号、页码、年份和注释。

我有很多参考文献,因此手动重新排序字段不是一个可行的选择。我尝试修改 Zotero 的导出方式,但没有成功。就在几天前,参考文献显示正常(所有字段都显示出来),所以我知道 bib 文件中输入字段的顺序不是问题。

bst文章类型在我的文件中的显示方式如下( Vancouver.bst)

FUNCTION {article}
{ output.bibitem
  format.authors "author" output.check
  organization empty$
    'skip$
    { author empty$
        {
          format.organizations "organization" output.check
    }
    {
      "; " *
      no.blank.or.punct
          format.organizations "organization" output.check
    }
      if$
    }
  if$
  new.block
  format.title "title" output.check
  type missing$
    { skip$ }
    { format.type "type" output.check }
  if$
  new.block
  journal
  remove.dots
  "journal" bibinfo.check
  "journal" output.check
  format.journal.date "year" output.check
  add.semicolon
  format.vol.num.pages output
  new.block
  format.note output
  output.web.refs  % urlbst
  fin.entry
}

这是我的 bib 文件中的一个示例条目 ( references2.bib)

@article{susilarini_estimated_2018,
  title = {Estimated Incidence of Influenza-Associated Severe Acute Respiratory Infections in {{Indonesia}}, 2013-2016},
  volume = {12},
  issn = {1750-2659},
  note = "\doi{10.1111/irv.12496}",
  language = {eng},
  journal = {Influenza and Other Respiratory Viruses},
  author = {Susilarini, Ni K. and Haryanto, Edy and Praptiningsih, Catharina Y. and Mangiri, Amalya and Kipuw, Natalie and Tarya, Irmawati and Rusli, Roselinda and Sumardi, Gestafiana and Widuri, Endang and Sembiring, Masri M. and Noviyanti, Widya and Widaningrum, Christina and Lafond, Kathryn E. and Samaan, Gina and Setiawaty, Vivi},
  year = {2018},
  keywords = {surveillance,influenza,severe acute respiratory infection,disease burden,Indonesia},
  pages = {81-87},
  pmid = {29205865}
}

这是它在tex文件中的显示方式

2013-2016年印度尼西亚流感相关严重急性呼吸道感染发病率估计;12。

如您所见,缺少作者、期刊、编号、页数、年份和 doi。

我创建了这个 MWE,但它没有重现问题。所以如果问题出在其他地方,我应该从哪里开始查找?

\documentclass{report}
\usepackage[round, numbers, semicolon, sectionbib]{natbib}
\usepackage{doi}
\usepackage{chapterbib}

\begin{document}
\renewcommand{\bibname}{References}
\makeatletter 
\renewcommand\@biblabel[1]{#1} 
\makeatother

Here i cite \cite{susilarini_estimated_2018}

\bibliographystyle{vancouver.bst} 
\bibliography{references2.bib}

\end{document}

答案1

从评论中我看到您正在尝试在 BibTeX 导出中添加可点击的 DOI;如果您正在使用 Zotero BetterBibTeX(看起来您正在使用),您可以通过在 BBT 首选项中添加此附言来实现这一点:

if (Translator.BetterBibTeX && item.DOI) {
  this.add({ name: 'note', bibtex: `{\\doi{${this.enc_verbatim(item.DOI)}}}` })
}

后记是用 javascript 编写的,你必须知道内部的 ZBBT API 才能使用它,但一般来说,人们只是请求后记,然后我为他们编写;以上意味着

  • 当且仅当参考文献被导出为 BibTeX 且具有字段DOI时,则
  • 添加字段“note”,内容为 bibtex 内容{\doi{...}}
  • 按照bibtex规则,在必要时...进行转义DOIverbatim

相关内容