如何使用 biblatex 在 refsection 中设置“maxbibnames”?

如何使用 biblatex 在 refsection 中设置“maxbibnames”?

我正在尝试使用 更改本地书目中打印的名称数量maxbibnames,但它抛出了错误(“包 keyval 错误:maxbibnames 未定义。”)。我做错了什么?

以下是 MWE:

\documentclass{article}
\usepackage{biblatex}

\begin{filecontents}{\jobname.bib}
@article{referenceA,
  author = {Anderson, Alice},
  title = {Generic Article Title A},
  journal = {Journal},
  year = {2022},
}
@article{referenceB,
  author = {Anderson, Alice and Author, Bob},
  title = {Generic Article Title B},
  journal = {Journal},
  year = {2024},
}
@article{referenceC,
  author = {Campbel, Carol and Author, Dave},
  title = {Generic Article Title C},
  journal = {Journal},
  year = {2024},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\begin{refsection}
    \small
    \nocite{referenceA}
    \nocite{referenceB}
    \nocite{referenceC}
    \newrefcontext[sorting=ynt]
    \DeclareNameAlias{sortname}{family-given}
    \printbibliography[heading=none, maxbibnames=1]
\end{refsection}

\end{document}

答案1

请参阅手册的附录 E biblatex,其中显示了所有选项的有效范围。maxbibnames不是 的选项\printbibliography。它可以全局设置,也可以按类型或按条目设置。

相关内容