编辑

编辑

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通常表示缺少某些内容或出现其他错误。查看.logMWE 的输出后,我们发现

Package biblatex Warning: Bibliography string 'presentedat' untranslated
(biblatex)                at entry 'davenport_thermal_2022' on input line 31.

由于您的文档语言是西班牙语,这意味着无法找到会议名称前面使用的biblatexbibstring 的西班牙语翻译。presentedatbiblatex-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}

P. Davenport、Z. Ma、W. Nation、J. Schirck、A. Morris 和 M. Lambert,<<二氧化硅的热稳定性在热能存储中的应用>>,发表于 SOLARPACES 2020:第 26 届国际聚光太阳能和化学能系统会议,德国弗莱堡,2022 年,第 160003 页。doi:10.1063/5.0085641。地址:https://pubs.aip.org/aip/acp/article/2824318(访问日期:2023 年 5 月 18 日)。

如果你不喜欢这个介绍字符串,你可以用

\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}

相关内容