仅来自第一作者的标签

仅来自第一作者的标签

在以下示例中,我尝试使用 获取仅由第一作者组成的标签maxcitenames。但不幸的是,它似乎不起作用。我是否遗漏了什么?

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{smith1,
author={John Smith and Mike Someone},
title={The book with a very very very very very long title},
year={2005},
location={New York},
publisher={Publisher},
}
\end{filecontents*}
\documentclass[12pt]{article}
\usepackage[style=alphabetic,%
            backend=biber,
            maxbibnames=99,
            maxcitenames=1,
            backref=true
            ]{biblatex}
    \addbibresource{\jobname}
    \renewcommand*{\labelalphaothers}{}
    \renewcommand*{\intitlepunct}{}
    \DefineBibliographyStrings{german}{in={}}
    \DefineBibliographyStrings{english}{in={}}
    \DeclareNameAlias{sortname}{last-first}
    \DeclareNameAlias{default}{last-first}

\begin{document}
\cite{smith1}
\printbibliography
\end{document}

答案1

我认为您正在寻找以下选项maxalphanames

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{smith1,
author={John Smith and Mike Someone},
title={The book with a very very very very very long title},
year={2005},
location={New York},
publisher={Publisher},
}
\end{filecontents*}
\documentclass[12pt]{article}
\usepackage[style=alphabetic,%
            backend=biber,
            maxnames=99,
            maxalphanames=1,            
            backref=true,
            ]{biblatex}
    \addbibresource{\jobname}
    \renewcommand*{\labelalphaothers}{}
    \renewcommand*{\intitlepunct}{}
    \DefineBibliographyStrings{german}{in={}}
    \DefineBibliographyStrings{english}{in={}}
    \DeclareNameAlias{sortname}{last-first}
    \DeclareNameAlias{default}{last-first}

\begin{document}
\cite{smith1}
\printbibliography
\end{document}

在此处输入图片描述

相关内容