如同這個帖子,我想將引文中的作者列表限制為一位+等人。 (即使作者團隊可能不同)。所提出的解決方案 ( uniquelist=false
) 本質上也是可行的,但與 結合使用時存在問題citestyle=authoryear-comp
。如果在參考書目中,同一(第一)作者曾經出現過並寫出其名字,並且一次僅出現過其姓名首字母,則不將他們視為同一作者。因此,在引用清單中,即使citestyle=authoryear-comp
,引用也會被分開。這是一個例子:
\documentclass{article}
\usepackage[
citestyle=authoryear-comp,
maxcitenames=1,
giveninits=true,
uniquename=init,
uniquelist=false,
ibidtracker=context,
%
bibstyle=authoryear,
dashed=false, % dashed: substitute rep. author with ---
date=year,
sorting=nyt,
minbibnames=3,
hyperref=true,
backref=true,
citecounter=true,
citetracker=true,
natbib=true, % natbib compatibility mode (\citep and \citet still work)
backend=biber, % Compile the bibliography with biber
]{biblatex}
\usepackage{filecontents}
\usepackage{hyperref}
\begin{filecontents}{\jobname.bib}
@misc{ABC01,
author = {Author, A. and Buthor, B. and C},
year = {2001},
title = {Alpha},
}
@misc{ABC02,
author = {Author, A. and Buthor, B. and Cuthor, C., and Duthor, D.},
year = {2001},
title = {Beta},
}
@misc{ADE01,
author = {Author, Andrew and Duthor, D. and E},
year = {2001},
title = {And now for something completely different},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Some text \citep{ABC01, ABC02, ADE01}.
Some text \autocite{ADE01}.
\printbibliography
\end{document}
我嘗試透過以下方式修復此行為這個帖子並設置giveninits=true
和uniquename=init
,但這並沒有解決問題。我怎樣才能得到biblatex
治療作者,A.和作者,安德魯作為同一作者?
答案1
從biblatex
v3.20 開始,您可以指定biblatex
僅使用縮寫進行散列,這裡就足夠了,或者您可以使用唯一的「名稱 ID」在本地覆蓋名稱散列。
如果您只想將縮寫用於散列,請使用
\documentclass{article}
\usepackage[
backend=biber,
style=authoryear-comp,
maxcitenames=1,
giveninits=true,
uniquename=init,
uniquelist=false,
]{biblatex}
\usepackage{hyperref}
\DeclareNamehashTemplate{
\namepart[hashscope=full]{family}
\namepart[hashscope=init]{given}
\namepart[hashscope=full]{prefix}
\namepart[hashscope=full]{suffix}
}
\begin{filecontents}{\jobname.bib}
@misc{ABC01,
author = {Author, A. and Buthor, B. and C},
year = {2001},
title = {Alpha},
}
@misc{ABC02,
author = {Author, A. and Buthor, B. and Cuthor, C., and Duthor, D.},
year = {2001},
title = {Beta},
}
@misc{ADE01,
author = {Author, Andrew and Duthor, D. and E},
year = {2001},
title = {And now for something completely different},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Some text \autocite{ABC01, ABC02, ADE01}.
Some text \autocite{ADE01}.
\printbibliography
\end{document}
如果你想覆蓋散列,請使用
\documentclass{article}
\usepackage[
backend=biber,
style=authoryear-comp,
maxcitenames=1,
giveninits=true,
uniquename=init,
uniquelist=false,
]{biblatex}
\usepackage{hyperref}
\begin{filecontents}{\jobname.bib}
@misc{ABC01,
author = {id=A1, family=Author, given=A. and Buthor, B. and C},
year = {2001},
title = {Alpha},
}
@misc{ABC02,
author = {id=A1, family=Author, given=A. and Buthor, B. and Cuthor, C. and Duthor, D.},
year = {2001},
title = {Beta},
}
@misc{ADE01,
author = {id=A1, family=Author, given=Andrew and Duthor, D. and E},
year = {2001},
title = {And now for something completely different},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Some text \autocite{ABC01, ABC02, ADE01}.
Some text \autocite{ADE01}.
\printbibliography
\end{document}
舊答案
你們需要一種方法來說服biblatex
這一點Author, A.
並且Author, Andrew
你們是同一個人。解決方法是為is 的條目賦予shortauthor
equal to 。Author, A.
author
Author, Andrew
\documentclass{article}
\usepackage[
backend=biber,
style=authoryear-comp,
maxcitenames=1,
minbibnames=3,
giveninits=true,
uniquename=init,
uniquelist=false,
dashed=false
date=year,
backref=true,
citecounter=true,
]{biblatex}
\usepackage{hyperref}
\begin{filecontents}{\jobname.bib}
@misc{ABC01,
author = {Author, A. and Buthor, B. and C},
year = {2001},
title = {Alpha},
}
@misc{ABC02,
author = {Author, A. and Buthor, B. and Cuthor, C., and Duthor, D.},
year = {2001},
title = {Beta},
}
@misc{ADE01,
author = {Author, Andrew and Duthor, D. and E},
shortauthor = {Author, A. and Duthor, D. and E},
year = {2001},
title = {And now for something completely different},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Some text \parencite{ABC01, ABC02, ADE01}.
Some text \autocite{ADE01}.
\printbibliography
\end{document}