当我在带有引文的文档上运行 bibtex 时,\cite{European00Presidency}
.bib 条目如下所示:
@MISC{European00Presidency,
author = {European Council,},
title = {Presidency conclusions},
year = {2000},
keywords = {Lisbon Strategy},
publisher = {European Council,},
type = {Government Document},
url = {http://www.consilium.europa.eu/uedocs/cms_data/docs/pressdata/en/ec/00100-r1.en0.htm}
}
我收到了一条非常无用的警告信息,即“欧洲理事会”,末尾有一个逗号对于条目 European00Presidency" 我真的不关心。但它隐藏了其他警告,例如未找到条目或其他警告。我想在 Bibtex 中关闭该警告。有人知道怎么做吗?
我正在使用 MikTex 2.9、Jabref 2.9.2 和 texmaker 4.1.1
对于任何与大量公司作者打交道的人来说,这都是一个问题,我认为应该有一个改变这一现状的选择
答案1
虽然这在“常见”的地方没有明确记录,但在 kopka & daly 的“latex 指南”中,第 12.2.4 节关于名称的说明中指出
括号内的任何内容都将被视为单个项目、用于歧义情况的内容,或者名称包含逗号或单词和. 例如
"{Harvey and Sons, Ltd}"
因此我的建议是省略逗号,但在元素周围加上一对括号,如下所示
author = {{European Council}},
答案2
执行 Biber 后我收到了警告。
WARN - BibTeX subsystem: warning: comma(s) at end of name (removing)
我的代码如下:
@Book{jur2009,
author = {Jurafsky, D., and Martin, J.},
year = 2009,
title = {Speech and Language Processing: An Introduction to Natural Language Processing, Speech Recognition, and Computational Linguistics}
}
然后我发现导致此警告的原因是 中的逗号D, and
。要分隔作者列表,请使用and
而不是,
。例如,Jurafsky, D. and Martin, J. and Manning, C.
在上述情况下,删除逗号解决了问题。
更正后的条目是,
@Book{nlp,
author = {Jurafsky, D. and Martin, J.},
year = 2009,
title = {Speech and Language Processing: An Introduction to Natural Language Processing, Speech Recognition, and Computational Linguistics}
}
答案3
可以通过从条目中删除逗号 (,) 并将其替换为“and”来解决此错误。我想我们可以在 BibTex 中同时使用逗号和“and”。这对我来说很有效。例如,我在作者条目中遇到了一个错误,
@misc{aian_ref,
author = "Samantha Artiga , Latoya Hill , Sweta Haldar from KFF",
title = "COVID-19 Cases and Deaths by Race/Ethnicity: Current Data and Changes Over Time",
url = "https://www.kff.org/racial-equity-and-health-policy/issue-brief/covid-19-cases-and-deaths-by-race-ethnicity-current-data-and-changes-over-time/"
}
现在,
@misc{aian_ref,
author = "Samantha Artiga , Latoya Hill and Sweta Haldar from KFF",
title = "COVID-19 Cases and Deaths by Race/Ethnicity: Current Data and Changes Over Time",
url = "https://www.kff.org/racial-equity-and-health-policy/issue-brief/covid-19-cases-and-deaths-by-race-ethnicity-current-data-and-changes-over-time/"
}
将逗号替换为“and”后,问题得到解决。