![仅引用姓氏,而不是全名](https://linux22.com/image/439575/%E4%BB%85%E5%BC%95%E7%94%A8%E5%A7%93%E6%B0%8F%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AF%E5%85%A8%E5%90%8D.png)
在我的参考文献中我想显示作者的姓氏然后是名字:
[GNK17] Gradstein, Helen et al. “Distributed ledger technology and blockchain”.In: (2017).url:http://hdl.handle.net/10986/29053(visited on09/16/2021)
当我使用时,\citet
我得到的输出是:Gradstein, Helen et al. (2017)
但我想要:Gradstein et al. (2017)
这就是我创建参考文献的方式,我将每个名称放在括号中。
@article{DLT2,
title={Distributed ledger technology and blockchain},
author={{Gradstein, Helen} and {Natarajan, Harish} and {Krause, Solvej}},
year={2017},
publisher={World Bank, Washington, DC},
URL={http://hdl.handle.net/10986/29053},
urldate={2021-09-16}
}
配置如下:
\usepackage[backend=bibtex,style=alphabetic,citestyle=authoryear,natbib=true,maxnames=2,uniquename=false]{biblatex}
答案1
不要在人名周围使用括号。这会强制以特定方式读取姓名,而不允许 BibTeX(或 Biber)将其拆分为名字和姓氏部分。
您可以通过重新定义名称格式而不是强制使用花括号来获得参考书目中所需的名称格式。
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[
backend=bibtex,
style=alphabetic,
citestyle=authoryear,
maxnames=2,
uniquename=false,
natbib=true,
]{biblatex}
\DeclareNameAlias{author}{sortname}
\DeclareNameAlias{editor}{sortname}
\DeclareNameAlias{translator}{sortname}
\DeclareNameAlias{sortname}{family-given}
\begin{filecontents}{\jobname.bib}
@techreport{DLT2,
title = {Distributed Ledger Technology and Blockchain},
author = {Natarajan, Harish and Krause, Solvej and Gradstein, Helen},
year = {2017},
type = {FinTech Note},
number = {1},
institution = {World Bank},
location = {Washington, DC},
url = {http://hdl.handle.net/10986/29053},
urldate = {2021-09-16},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson,DLT2}
\printbibliography
\end{document}
如果您在文本中引用作者-年份格式,则参考书目中的字母标签根本没有用处。因此,我建议您用替换style=alphabetic,citestyle=authoryear,
为style=authoryear,
正确的作者-年份格式。在这种情况下,您可以删除\DeclareNameAlias
之前的一些 es。
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[
backend=bibtex,
style=authoryear,
maxnames=2,
uniquename=false,
natbib=true,
]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\begin{filecontents}{\jobname.bib}
@techreport{DLT2,
title = {Distributed Ledger Technology and Blockchain},
author = {Natarajan, Harish and Krause, Solvej and Gradstein, Helen},
year = {2017},
type = {FinTech Note},
number = {1},
institution = {World Bank},
location = {Washington, DC},
url = {http://hdl.handle.net/10986/29053},
urldate = {2021-09-16},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson,DLT2}
\printbibliography
\end{document}
请注意,我已将您的示例条目从@article
(仅用于期刊上发表的论文/文章)更改为@techreport
(用于工作论文等)。我还使用了http://hdl.handle.net/10986/29053以及致谢部分。