如何用自然风格将“et al”改为斜体

如何用自然风格将“et al”改为斜体

我正在 Overleaf 中撰写文档。对于参考书目,我使用:

\usepackage[
backend=biber,
style=nature,
maxcitenames=2,
uniquelist=false,
citestyle=authoryear]{biblatex} 

但是,我需要“et al.”不以斜体显示。你知道怎么做吗?

答案1

biblatex-nature包在其nature.bbx文件中定义了 name:andothers宏(注意的使用\mkbibemph):

\renewbibmacro*{name:andothers}{%
  \ifboolexpr
    {
      test {\ifnumequal{\value{listcount}}{\value{liststop}}}
      and
      test \ifmorenames
    }
    {
      \ifnumgreater{\value{liststop}}{1}
        {\finalandcomma}
        {}%
      \andothersdelim
      \mkbibemph{\bibstring{andothers}}%
    }
    {}%
}

在您的序言中,之后biblatex,您可以重新定义name:andothers无需的宏mkbibemph

\renewbibmacro*{name:andothers}{%
  \ifboolexpr
    {
      test {\ifnumequal{\value{listcount}}{\value{liststop}}}
      and
      test \ifmorenames
    }
    {
      \ifnumgreater{\value{liststop}}{1}
        {\finalandcomma}
        {}%
      \andothersdelim
      \bibstring{andothers}%
    }
    {}%
}

相关内容