bookinbook 的书目--失踪的作者

bookinbook 的书目--失踪的作者

尝试以下 MWE:

%!TEX TS-program = lualatexmk
\documentclass{scrartcl}
\usepackage{fontspec}
\usepackage[backend=biber,style=authortitle-comp,abbreviate=false]{biblatex}
\usepackage{biblatex-bookinarticle}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{plato:complete,
    Author = {Plato},
    Editor = {John M. Cooper},
    Keywords = {Primary Source},
    Location = {Indianapolis},
    Publisher = {Hacket Publishing Company},
    Title = {Complete Works},
    Year = {1997}}
@bookinbook{plato:dialogue,
    Author = {Plato},
    Crossref = {plato:complete},
    Pages = {156--191},
    Title = {Dialogue},
    Titleaddon = {\bibstring{bytranslator} Donald J. Zeyl}}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
These are the complete works: \cite{plato:complete}. They contain the following text: \cite{plato:dialogue}.
\printbibliography
\end{document}

其结果如下:

缺少作者姓名

这个结果真的是故意的吗?也就是说,我们真的想要“柏拉图”这个名字吗不是再次印刷全集“在对话的参考书目条目中?它不应该更好吗?像这样:

在此处输入图片描述

答案1

默认为不打印bookauthor如果它与author(参见biblatex.def)相符

\newbibmacro*{bybookauthor}{%
  \ifnamesequal{author}{bookauthor}
    {}
    {\printnames{bookauthor}}}

只需添加

\renewbibmacro*{bybookauthor}{\printnames{bookauthor}}

到你的序言,并且bookauthor将永远显示。

相关内容