Biber 无法识别钥匙

Biber 无法识别钥匙

比伯拒绝承认我的参考书目的第二条条目。

@online{adhdcontroversy,
    title = {Controversies Surrounding ADHD},
    url = {https://www.mentalhelp.net/adhd/controversies/},
    date = {2020}
}
@article{adhd2018,
     title = {Twenty-Year Trends in Diagnosed Attention-Deficit/Hyperactivity Disorder Among US Children and Adolescents, 1997-2016},
     author = {Xu, Guifeng and Strathearn, Lane and Liu, Buyon and Yang, Binrang and and Bao, Wei},
     date = {2018},
     url = {https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2698633},
     doi = {doi:10.1001/jamanetworkopen.2018.1471}
}

在以下测试文档中

\documentclass[stu,draftall,biblatex,hidelinks]{apa7}

\addbibresource{sources.bib}

\title{info}
\author{info info}
\affiliation{info info}
\course{info info}
\professor{info info}
\duedate{23\textsuperscript{rd} of January, 2022}

\begin{document}
\maketitle

\parencite{adhd2018}\\
\cite{adhdcontroversy}

\printbibliography

\end{document}

重现步骤

  1. 将上述 latex 放在 .tex 文件中。
  2. 将上面的 bib 文件放在sources.bib
  3. 通过 pdfLaTeX 编译
  4. 运行比伯
  5. 再次通过 pdfLaTeX 编译

结果:

来源不工作

答案1

每当参考书目出现问题时,请查看 Biber 的日志文件(以.blg- 结尾的文件,尽管 Windows 可能会告诉您,但它只是一个简单的文本文件)。在此示例中,该文件包含以下内容:

[418] Utils.pm:395> WARN - Name in key 'adhd2018' is empty (probably consecutive 'and'): skipping entry 'adhd2018'
[418] Utils.pm:395> WARN - Entry with key 'adhd2018' in section '0' is cited and found but not created (likely due to sourcemap)
[446] Utils.pm:395> WARN - BibTeX subsystem: substring 5, warning: empty substring

author的字段有误adhd2018

 author = {Xu, Guifeng and Strathearn, Lane and Liu, Buyon and Yang, Binrang and and Bao, Wei},

哪里and andand足够了。

 author = {Xu, Guifeng and Strathearn, Lane and Liu, Buyon and Yang, Binrang and Bao, Wei},

修复此错误并重新运行 Biber,然后重新运行 pdfLaTeX。


除了这个问题之外,您可能还想使用花括号来保护标题中的缩写和其他不能更改为小写的单词(如 ADHD 和 US)。

该字段的开头doi不应该包含字符串。doi:

\documentclass[stu,draftall,biblatex,hidelinks]{apa7}

\begin{filecontents}{\jobname.bib}
@online{adhdcontroversy,
  title = {Controversies Surrounding {ADHD}},
  url   = {https://www.mentalhelp.net/adhd/controversies/},
  date  = {2020}
}
@article{adhd2018,
  title  = {Twenty-Year Trends in Diagnosed
            Attention-Deficit/Hyperactivity Disorder
            Among {US} Children and Adolescents, 1997-2016},
  author = {Xu, Guifeng and Strathearn, Lane and Liu, Buyon
            and Yang, Binrang and Bao, Wei},
  date   = {2018},
  url    = {https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2698633},
  doi    = {10.1001/jamanetworkopen.2018.1471}
}
\end{filecontents}
\addbibresource{\jobname.bib}

\title{info}
\author{info info}
\affiliation{info info}
\course{info info}
\professor{info info}
\duedate{23\textsuperscript{rd} of January, 2022}

\begin{document}
\maketitle

\parencite{adhd2018}

\cite{adhdcontroversy}

\printbibliography

\end{document}

工作书目

相关内容