Biber + babel 无法翻译presentedat
,@inproceedings
导致参考文献中的输出结果不佳。
我认为问题是由于使用@inproceedings
但这是 Zotero 自动生成的。我应该更改引用类型吗?更改为什么?
\documentclass[a4paper, 11pt]{article}
\usepackage[spanish]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=ieee]{biblatex}
\begin{filecontents}{bib.bib}
@inproceedings{davenport_thermal_2022,
location = {Freiburg, Germany},
title = {Thermal stability of silica for application in thermal energy storage},
url = {https://pubs.aip.org/aip/acp/article/2824318},
doi = {10.1063/5.0085641},
eventtitle = {{SOLARPACES} 2020: 26th International Conference on Concentrating Solar Power and Chemical Energy Systems},
pages = {160003},
author = {Davenport, Patrick and Ma, Zhiwen and Nation, William and Schirck, Jason and Morris, Aaron and Lambert, Matthew},
urldate = {2023-05-18},
date = {2022},
langid = {english}
}
\end{filecontents}
\addbibresource{bib.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
这是一个印刷错误吗? presentdate
写为presentedat
编辑
我已经@inproceedings
改为@incollection
这解决了我的问题,但是......如何做同样的事情@inproceedings
?
答案1
生成的输出中的粗体文本biblatex
通常表示缺少某些内容或出现其他错误。查看.log
MWE 的输出后,我们发现
Package biblatex Warning: Bibliography string 'presentedat' untranslated
(biblatex) at entry 'davenport_thermal_2022' on input line 31.
由于您的文档语言是西班牙语,这意味着无法找到会议名称前面使用的biblatex
bibstring 的西班牙语翻译。presentedat
biblatex-ieee
@inproceedings
你可能想为英语字符串“presented at the ...”提供西班牙语翻译
\documentclass[a4paper, 11pt]{article}
\usepackage[spanish]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=ieee]{biblatex}
\DefineBibliographyStrings{spanish}{
presentedat = presented at the\addspace,
}
\begin{filecontents}{\jobname.bib}
@inproceedings{davenport_thermal_2022,
location = {Freiburg, Germany},
title = {Thermal Stability of Silica for Application in Thermal Energy Storage},
url = {https://pubs.aip.org/aip/acp/article/2824318},
doi = {10.1063/5.0085641},
eventtitle = {{SOLARPACES} 2020: 26th International Conference
on Concentrating Solar Power and Chemical Energy Systems},
pages = {160003},
author = {Davenport, Patrick and Ma, Zhiwen and Nation, William
and Schirck, Jason and Morris, Aaron and Lambert, Matthew},
urldate = {2023-05-18},
date = {2022},
langid = {english},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
如果你不喜欢这个介绍字符串,你可以用
\documentclass[a4paper, 11pt]{article}
\usepackage[spanish]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=ieee]{biblatex}
\renewbibmacro*{event+venue+date}{%
\printfield{eventtitle}%
\ifboolexpr{
test {\iffieldundef{venue}}
and
test {\iffieldundef{eventyear}}
}
{}
{\setunit*{\addspace}%
\printtext[parens]{%
\printfield{venue}%
\setunit*{\addcomma\space}%
\printeventdate}}%
\newunit
}
\begin{filecontents}{\jobname.bib}
@inproceedings{davenport_thermal_2022,
location = {Freiburg, Germany},
title = {Thermal Stability of Silica for Application in Thermal Energy Storage},
url = {https://pubs.aip.org/aip/acp/article/2824318},
doi = {10.1063/5.0085641},
eventtitle = {{SOLARPACES} 2020: 26th International Conference
on Concentrating Solar Power and Chemical Energy Systems},
pages = {160003},
author = {Davenport, Patrick and Ma, Zhiwen and Nation, William
and Schirck, Jason and Morris, Aaron and Lambert, Matthew},
urldate = {2023-05-18},
date = {2022},
langid = {english},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}