![同一作者的多部作品的作者姓名被替换为破折号](https://linux22.com/image/373156/%E5%90%8C%E4%B8%80%E4%BD%9C%E8%80%85%E7%9A%84%E5%A4%9A%E9%83%A8%E4%BD%9C%E5%93%81%E7%9A%84%E4%BD%9C%E8%80%85%E5%A7%93%E5%90%8D%E8%A2%AB%E6%9B%BF%E6%8D%A2%E4%B8%BA%E7%A0%B4%E6%8A%98%E5%8F%B7%20.png)
当同一作者在参考书目中出现多次时,作者姓名会被破折号取代。我该如何更改它以始终显示全名或姓名?我使用的是 BibLaTeX 和 Biber。我已经对文献风格做了不少更改,那么这可能是由于其中一项更改造成的吗?
这是我的最小工作示例:
\documentclass[listof=totoc,
index=totoc,
bibliography=totoc, parskip,
12pt, headsepline=true, a4paper]{scrartcl}
\usepackage[ngerman, english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%% Literaturverzeichnis
\usepackage[hidelinks]{hyperref}
\usepackage{csquotes}
\usepackage{etoolbox}
\usepackage[backend=biber, style=authoryear, maxbibnames=999, maxcitenames=2]{biblatex}
\addbibresource{Literature.bib}
% Autoren mit Slash getrennt und lastname-firstname
\renewcommand*{\multinamedelim}{\slash} \renewcommand*{\finalnamedelim}{\multinamedelim}
\DeclareNameAlias{sortname}{last-first}
% Doppelpunkt nach Jahresangabe in Klammern im Literaturverzeichnis
\renewcommand*{\labelnamepunct}{\addcolon\addspace}
% Titel im Literaturverzeichnis nicht kursiv
\DeclareFieldFormat{title}{#1\isdot}
\DeclareFieldFormat{journaltitle}{#1}
\DeclareFieldFormat{issuetitle}{#1}
\DeclareFieldFormat{maintitle}{#1}
\DeclareFieldFormat{booktitle}{#1}
% Jahreszahl im Fußnotenzitat in runden Klammern
\newbibmacro*{cite:parens:labelyear+extrayear}{%
\iffieldundef{labelyear}
{}
{\printtext[parens]{\printtext[bibhyperref]{%
\printfield{labelyear}%
\printfield{extrayear}}}}}
\renewbibmacro*{cite}{%
\iffieldundef{shorthand}
{\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
{\usebibmacro{cite:label}%
\setunit{\addspace}}
{\printnames{labelname}%
\setunit{\nameyeardelim}}%
\usebibmacro{cite:parens:labelyear+extrayear}}
{\usebibmacro{cite:shorthand}}}
\begin{document}
Just some text\footcite{Test1}. And some additional text\footcite{Test2}
\clearpage
\printbibliography
\end{document}
我的 bib 文件如下所示:
@book{Test1,
author = {Apostolik, Richard},
title = {Test title 1},
year = {2010a}
}
@book{Test2,
author = {Apostolik, Richard},
title = {Test title 2},
year = {2010b}
}
答案1
BibLaTeX 有一个重复名称的选项,默认情况下dashed
是(至少在 中)。您只需将选项输入到 中:true
authoryear
dashed=false
biblatex
\usepackage[dashed=false, backend=biber, style=authoryear, maxbibnames=999, maxcitenames=2]{biblatex}