我怎样才能理智地格式化有问题的 .bib 条目?

我怎样才能理智地格式化有问题的 .bib 条目?

我引用了一个科学数据集,数据提供商提供的“官方” BibTeX 条目如下所示:

@misc{ds548.0,
address = {Boulder CO},
author = {{Research Data Archive, Computational and Information Systems Laboratory, National Center for Atmospheric Research, University Corporation for Atmospheric Research} 
and 
{Physical Sciences Division, Earth System Research Laboratory, OAR, NOAA, U.S. Department of Commerce} 
and 
{Cooperative Institute for Research in Environmental Sciences, University of Colorado} 
and 
{National Oceanography Centre, University of Southampton} 
and 
{Met Office, Ministry of Defence, United Kingdom} 
and 
{Deutscher Wetterdienst (German Meteorological Service), Germany} 
and 
{Department of Atmospheric Science, University of Washington} 
and 
{Center for Ocean-Atmospheric Prediction Studies, Florida State University} 
and 
{National Centers for Environmental Information, NESDIS, NOAA, U.S. Department of Commerce}},
date-added = {2020-07-06 18:21:38 -0500},
date-modified = {2020-07-06 18:23:20 -0500},
publisher = {Research Data Archive at the National Center for Atmospheric Research, Computational and Information Systems Laboratory},
title = {{International Comprehensive Ocean-Atmosphere Data Set (ICOADS) Release 3, Individual Observations}},
url = {https://doi.org/10.5065/D6ZS2TR3},
year = {2016},
Bdsk-Url-1 = {https://doi.org/10.5065/D6ZS2TR3}}

问题在于第一作者的长度:“国家大气研究中心、计算和信息系统实验室、大气研究中心大学法人研究数据档案馆”。

除其他事项外,Overleaf 中的 LaTeX 引擎会引发以下错误:“对于条目 ds548.0,您的条目字符串大小已超过 250”。但即使除此之外,使用如图所示的第一作者的作者年份引文在打印时也会显得笨拙。

我的问题是,是否有一种方法可以保留引文中出现在末尾参考书目中的“作者”信息,同时缩短出现在正文中的引文,并绕过 250 个字符的限制。请注意,AGU 出版物仅允许使用 \cite 和 \citeA 命令,而不允许使用 \nocite,这排除了一种可能的解决方法。

我正在使用期刊提供的文档类别“agujournal2019”,而它又似乎使用“apacite”书目样式。

答案1

由于您使用了apacite引文管理包(带有选项natbibapa,对吗?)和同名书目样式,我建议您使用 natbib 的引文别名功能。例如,运行

\defcitealias{ds548.0}{Research Data Archive et~al. (2016)}

在序言和

\citetalias{ds548.0}

在文档正文中。

单独的评论:对于 类型的条目@misc,我知道的所有书目样式都知道如果遇到名为 的字段该怎么做howpublished;但是,它们都没有被编程来处理名为 的字段publisher。因此,我将把该publisher字段重命名为howpublished。我还将把该字段的内容复制address到 字段中howpublished,并将该title字段的内容括在一对花括号中,以防止该字段的内容转换为小写。(如果没有其他选择,您应该将 ICOADS 首字母缩略词括在花括号中。)

以下屏幕截图显示了最终的引文标注和相关格式化书目条目的前三行。

在此处输入图片描述

\documentclass{article} % or 'agujournal2019', if available
\begin{filecontents}[overwrite]{mybib.bib}
% from https://rda.ucar.edu/datasets/ds548.0/citation/
@misc{ds548.0,
 author = "{Research Data Archive, Computational and Information Systems Laboratory, National Center for Atmospheric Research, University Corporation for Atmospheric Research} and {Physical Sciences Laboratory, Earth System Research Laboratory, OAR, NOAA, U.S. Department of Commerce} and {Cooperative Institute for Research in Environmental Sciences, University of Colorado} and {National Oceanography Centre, University of Southampton} and {Met Office, Ministry of Defence, United Kingdom} and {Deutscher Wetterdienst (German Meteorological  Service), Germany} and {Department of Atmospheric Science, University of Washington} and {Center for Ocean-Atmospheric Prediction Studies, Florida State University} and {National Centers for Environmental Information, NESDIS, NOAA, U.S. Department of Commerce}",
 title = "{International Comprehensive Ocean-Atmosphere Data Set (ICOADS) Release 3, Individual Observations}",
 howpublished = "Research Data Archive at the National Center for Atmospheric Research, Computational and Information Systems Laboratory, Boulder CO",
 xaddress = {Boulder CO},
 year  = "2016",
 url = "https://doi.org/10.5065/D6ZS2TR3"
}
\end{filecontents}

\usepackage[natbibapa]{apacite}
\defcitealias{ds548.0}{Research Data Archive et~al. (2016)}
\bibliographystyle{apacite}
\usepackage{xurl} % for long and complicated URL strings

\begin{document}
\citetalias{ds548.0}
\bibliography{mybib}
\end{document}

相关内容