使用 Biber 列出参考书目的年份范围

使用 Biber 列出参考书目的年份范围

给定一个年份范围的参考书目条目,Biber 会发出以下警告:

警告 - 条目“someRef”中的年份字段“1991--2007”不是整数 - 这可能无法正确排序。

有没有适当的方法来指定年份范围?

\documentclass{article}
\usepackage[backend=biber]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@TECHREPORT{someRef,
    author = {John D. McCalpin},
    title = {{STREAM: Sustainable Memory Bandwidth in High Performance Computers}},
    institution = {University of Virginia},
    year = {1991--2007},
    address = {Charlottesville, Virginia},
    url = {http://www.cs.virginia.edu/stream/}
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}
    \cite{someRef}
    \printbibliography
\end{document}

答案1

year字段只能包含一个(四位数)年份。对于日期范围或完整日期等特殊内容,您应该使用date,您应该使用接受 ISO8601 输入的字段(请参阅 §2.3.8日期和时间规范,尤其是表 3、4 和 5biblatex手动的)。

在你的情况下,这意味着你需要

\documentclass{article}
\usepackage[backend=biber]{biblatex}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@TECHREPORT{someRef,
  author      = {John D. McCalpin},
  title       = {{STREAM}: Sustainable Memory Bandwidth in High Performance Computers},
  institution = {University of Virginia},
  date        = {1991/2007},
  address     = {Charlottesville, Virginia},
  url         = {http://www.cs.virginia.edu/stream/}
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}
  \cite{someRef}
  \printbibliography
\end{document}

John D. McCalpin. STREAM: Sustainable Memory Bandwidth in High Performance Computers. Tech. rep. Charlottesville, Virginia: University of Virginia, 1991–2007. url: http://www.cs.virginia.edu/stream/.

相关内容