我的文件中引用了 TEI 作为技术标准references.bib
。TEI 网站上指出TEI Consortium
应将其列为编辑(复数),但 Overleaf 无法识别我的引文中有多个编辑。
@techreport{TEI,
type={Standard},
title={{TEI P5: Guidelines for Electronic Text Encoding and Interchange Version 4.3.0}},
editor={{TEI Consortium}},
year={2021},
month={8},
institution={The TEI Consortium}
}
这会产生以下参考书目条目:
TEI Consortium (Ed.). (2021). TEI P5: Guidelines for Electronic Text Encoding and Interchange Version 4.3.0 (Standard). The TEI Consortium.
(Ed.)
它应该读作,而不是(Eds.)
。我怎样才能强制它这样做?
答案1
看起来您正在使用 APA 样式引用,它使用apaeditorstrg
宏来管理此字符串。一种解决方案是在此处添加检查以查看是否editortype = {editors}
,如下所示:
\documentclass{article}
\usepackage[style=apa]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{sources.bib}
@techreport{TEI,
type={Standard},
title={{TEI P5: Guidelines for Electronic Text Encoding and Interchange Version 4.3.0}},
editor={{TEI Consortium}},
editortype={editors},
year={2021},
month={8},
institution={The TEI Consortium}
}
\end{filecontents}
\addbibresource{sources.bib}
\renewbibmacro*{apaeditorstrg}[1]{%
\iffieldundef{#1type}
{\ifthenelse{\value{#1}>1\OR\ifandothers{#1}}
{\bibcpstring{editors}}
{\bibcpstring{editor}}}
{\ifthenelse{\value{#1}>1\OR\ifandothers{#1}}
{\bibcpstring{type\thefield{#1type}s}}
{\iffieldequalstr{editortype}{editors}
{\bibcpstring{editors}}
{\bibcpstring{type\thefield{#1type}}}}}}
\begin{document}
\autocite{TEI}
\printbibliography
\end{document}