假设我想引用一组作者撰写的文章(或书籍或其他内容),其中包含由另一组作者撰写的附录。条目可能看起来有点像这样:
A. 作者和 B. 作者。附录由 C. 作者撰写。“理论的理论。” 收录于:J. Journal 1234.5 (2020),第 10-20 页。
我知道我可以添加一个注释字段,内容为“附录由 C. 作者撰写”,但它无法正确本地化,附录的作者必须手动格式化等。我该如何在 BibLaTeX 中表示它?
答案1
如同太平洋标准时间的回答,但使用名称editora
,其确切角色可以在中指定editoratype
。只需设置一个有用的并定义输出的<typestring>
字符串。by<typestring>
\documentclass{article}
\usepackage{biblatex}
\NewBibliographyString{bywithappendix}
\DefineBibliographyStrings{english}{
withappendix = {appendix},
withappendixs = {appendix},
bywithappendix = {with an appendix by},
}
\begin{filecontents}{\jobname.bib}
@article{example,
author = {Athor, Anne and Author, Berta},
editora = {Author, Claudia},
editoratype = {withappendix},
title = {The Theory of Theories},
journal = {J. Journal},
date = {2020},
volume = {1234},
number = {5},
pages = {10-20},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{example}
\printbibliography
\end{document}
或者,您可以使用该related
功能,本质上为附录创建一个单独的容器,然后由主文章调用它。
在下面的示例中,附录条目仅包含author
并且设置仅打印作者,但如果有用的话,可以扩展到更多字段。
\documentclass{article}
\usepackage{biblatex}
\NewBibliographyString{appendix,by}
\DefineBibliographyStrings{english}{
appendix = {with an appendix},
by = {by},
}
\newbibmacro*{related:appendix}[1]{%
\entrydata{#1}{%
\bibstring{by}%
\setunit{\addspace}%
\printnames{author}}}
\begin{filecontents}{\jobname.bib}
@article{example,
author = {Athor, Anne and Author, Berta},
title = {The Theory of Theories},
journal = {J. Journal},
date = {2020},
volume = {1234},
number = {5},
pages = {10-20},
related = {example:appendix},
relatedtype = {appendix},
}
@misc{example:appendix,
author = {Author, Claudia},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{example}
\printbibliography
\end{document}
答案2
Biblatex 中有多个字段用于描述作品的不同部分。我认为最接近“附录”的是“后记”。
\documentclass{article}
\usepackage[abbreviate=false]{biblatex}
\addbibresource{withapp.bib}
\begin{document}
\nocite{example}
\printbibliography
\end{document}
@Article{example,
author = {Author, A. and Author, B.},
afterword = {Author, C.},
title = {The Theory of Theories},
journal = {J. Journal},
year = 2020,
volume = 1234,
number = 5,
pages = {10-20}}
如果“后记”不够好,就自己改吧。我认为我们不应该要求添加更多种类的部分,因为 Biblatex 的翻译已经有很多字符串需要处理了。