在 biblatex 中,该字段volumes
可用于指示多卷作品中的卷数。但我如何才能指示多卷作品有例如 8 卷编号卷加上补充未编号卷(例如索引)?
理想情况下,我希望输出具有“8 卷,1 个索引”、“8 卷,1 个附录”或“8 卷,1 个补充卷”格式的参考文献。
答案1
您可以重新定义卷的格式以打印文字(除非它是数字)。像这样:
\documentclass{article}
\usepackage{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@mvbook{mvbook1,
author = {AuthorA},
title = {Title 1},
volumes = {8 vols\adddot, 1 supplementary vol\adddot},
location = {Location},
publisher = {Publisher},
date = {2017}
}
@mvbook{mvbook2,
author = {AuthorB},
title = {Title 2},
volumes = {7},
location = {Location},
publisher = {Publisher},
date = {2017}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\pagestyle{empty}
\DeclareFieldFormat{volumes}{%
\ifnumeral{#1}
{#1 \bibstring{volumes}}
{#1}}
\begin{document}
\nocite{*}
\printbibliography
\end{document}