我在我的参考书目中遇到了一个奇怪的问题,除了一个条目之外,其他所有条目都正确设置了 DOI 超链接。
我附上了一张图片,其中显示了问题条目和正确条目。除顶部示例之外的所有条目都正确隐藏了 DOI。年份之前的 DOI 不应该存在。
我还包括 *.bib。我在参考书目文件中做错了什么吗?我在 biber 后端使用 biblatex 格式。样式是 AIP (Phys)。编译器是 lualatex。
@article{AlvarezJ2012,
author = {Álvarez{-}Idaboy, J. and Galván, Marcelo and Vela, Alberto and Zicovich{-}Wilson, Claudio and Valencia, Diego and Peña, Laura and García{-}Cruz, Isidoro},
title = {Reaction Mechanism of Hydrogenation and Direct Desulfurization Routes of Di\-ben\-zo\-thi\-o\-phene{-}Like Compounds: {A} Density Functional Theory Study},
journal = {International Journal of Quantum Chemistry},
volume = {112},
date = {2012-11-15},
url = {https://doi.org/10.1002/qua.24242},
doi = {10.1002/qua.24242}
}
@article{BhadraBiswaNath2019,
author = {Bhadra, Biswa Nath and Jhung, Sung Hwa},
publisher = {Elsevier B.V},
title = {Oxidative Desulfurization and Denitrogenation of Fuels Using Metal-Organic Framework-Based/-Derived Catalysts},
journal = {Applied catalysis. B, Environmental},
volume = {259},
pages = {118021},
date = {2019},
url = {https://doi.org/10.1016/j.apcatb.2019.118021},
doi = {10.1016/j.apcatb.2019.118021},
issn = {0926-3373}
}
答案1
这手动的Biblatex AIP 风格提到了以下内容(第 1 页,重点是我的):
标准样式选项
doi
、isbn
和eprint
,如手册中所述biblatex
。但是,这些选项在样式中被标准地关闭phys
。这反映了这些条目可能存在于参考数据库中,但通常不包含在已发布的书目中。doi
请注意,即使选项为 ,也会打印未指定页码的期刊文章的 DOI 值false
。
因此:对于第一个条目,没有给出页数,因此打印了 doi。
在 Github 的最新版本中(不在 CTAN 上),也eid
允许使用 而不是pages
,但是您的条目却没有。
要完全关闭 doi 打印,您可以更新 bibmacro note+pages
。相关代码可以在犯罪添加了pages
支票。
梅威瑟:
\begin{filecontents*}{\jobname.bib}
@article{AlvarezJ2012,
author = {Álvarez{-}Idaboy, J. and Galván, Marcelo and Vela, Alberto and Zicovich{-}Wilson, Claudio and Valencia, Diego and Peña, Laura and García{-}Cruz, Isidoro},
title = {Reaction Mechanism of Hydrogenation and Direct Desulfurization Routes of Di\-ben\-zo\-thi\-o\-phene{-}Like Compounds: {A} Density Functional Theory Study},
journal = {International Journal of Quantum Chemistry},
volume = {112},
date = {2012-11-15},
url = {https://doi.org/10.1002/qua.24242},
doi = {10.1002/qua.24242}
}
@article{BhadraBiswaNath2019,
author = {Bhadra, Biswa Nath and Jhung, Sung Hwa},
publisher = {Elsevier B.V},
title = {Oxidative Desulfurization and Denitrogenation of Fuels Using Metal-Organic Framework-Based/-Derived Catalysts},
journal = {Applied catalysis. B, Environmental},
volume = {259},
pages = {118021},
date = {2019},
url = {https://doi.org/10.1016/j.apcatb.2019.118021},
doi = {10.1016/j.apcatb.2019.118021},
issn = {0926-3373}
}
\end{filecontents*}
\documentclass{article}
\usepackage{ebgaramond}
\usepackage[style=phys]{biblatex}
\addbibresource{\jobname.bib}
\renewbibmacro*{note+pages}{%
\printfield{note}%
\setunit{\bibpagespunct}%
\printfield{pages}%
\iftoggle{bbx:doi}
{}
{\clearfield{doi}}%
}
\begin{document}
\cite{AlvarezJ2012, BhadraBiswaNath2019}
\printbibliography
\end{document}
结果: