为“杂项”出版物类型定制 biblatex 自然风格

为“杂项”出版物类型定制 biblatex 自然风格

我最近才开始使用biblatex,但还不是很熟练,无法理解 BBX 文件的来龙去脉。对于向 Nature Publishing Group 期刊(科学数据)提交的文章,我使用的是由仁慈全能的 Joseph Wright 开发的自然风格。它非常适合常规引用。

问题在于,我们格式化数据引用最方便的方法是使用“杂项”出版类型,而“自然”风格的出现方式biblatex并不是期刊想要的。

以下是 MWE:

\documentclass{article}
    \usepackage[style=nature,date=year,backend=biber,natbib=true,doi=false,defernumbers=true]{biblatex}
    \usepackage{filecontents}
    \begin{filecontents}{datacite.bib}

@misc{bagnato2005,
    Author = {Bagnato, S.},
    Institution = {World Data Center for Paleoclimatology},
    Title = {{World Data Center for Paleoclimatology}},
    Url = {https://www.ncdc.noaa.gov/paleo/study/1916},
    Year = {2005}}

@misc{barclay1999,
    Author = {Barclay, D. and Wiles, G.},
    Doi = {10.1191/095968399672825976},
    Institution = {World Data Center for Paleoclimatology},
    Title = {{World Data Center for Paleoclimatology}},
    Url = {https://www.ncdc.noaa.gov/paleo/study/14274},
    Year = {1999}}

\end{filecontents}

\addbibresource{datacite.bib}
\addbibresource{biblatex-examples.bib}

\begin{document}

\noindent In this paper we have old school references \autocite{companion,worman,piccato,aristotle:physics} and some data citations \autocite{bagnato2005,barclay1999}.

\printbibliography[title={References},nottype=misc,resetnumbers=true]
\printbibliography[title={Data Citations},type=misc,resetnumbers=true]

\end{document}

产生此输出: 在此处输入图片描述

您可以看到,对于数据引用,年份不在括号中,也不在最后一个字段中 - 与常规引用不同。期刊希望两者都共享这些属性。

在我开始捣鼓nature.bbx和破坏一切之前,有人能推荐一种微创方法来产生所需的行为吗?提前谢谢了。

答案1

一个简单的解决方案是使用online条目类型和urldate字段而不是year

\documentclass{article}
\usepackage[utf8]{inputenc} %
\usepackage[T1]{fontenc} %
\usepackage[style=nature,date=year,backend=biber,natbib=true,doi=false,defernumbers=true]{biblatex}
    \usepackage{filecontents}
    \begin{filecontents}{datacite.bib}

@online{bagnato2005,
    Author = {Bagnato, S.},
    Institution = {World Data Center for Paleoclimatology},
    Title = {{World Data Center for Paleoclimatology}},
    Url = {https://www.ncdc.noaa.gov/paleo/study/1916},
    Urldate = {2005}}

@online{barclay1999,
    Author = {Barclay, D. and Wiles, G.},
    Doi = {10.1191/095968399672825976},
    Institution = {World Data Center for Paleoclimatology},
    Title = {{World Data Center for Paleoclimatology}},
    Url = {https://www.ncdc.noaa.gov/paleo/study/14274},
    Urldate = {1999}}

\end{filecontents}

\addbibresource{datacite.bib}
\addbibresource{biblatex-examples.bib}

\begin{document}
\noindent In this paper we have old school references \autocite{companion,worman,piccato,aristotle:physics} and some data citations \autocite{bagnato2005,barclay1999}.

\printbibliography[title={References},nottype=online,resetnumbers=true]
\printbibliography[title={Data Citations},type=online,resetnumbers=true]

\end{document} 

在此处输入图片描述

相关内容