我正在使用 biblatex 编写报告,但遇到了一个小问题。当我的 .bib 文件中有多位作者,并且我想在文本中引用他们时,作者之间没有“and”:
(Klinkrad, Doe, 2006) using \parencite
Klinkrad, Doe (2006) using \citet
我想要的是以下内容
(Klinkrad and Doe, 2006) using \parencite
Klinkrad and Doe (2006) using \citet
以下是一个最小的工作示例:
\documentclass[a4paper,10pt]{report}
\usepackage[bibstyle=authoryear,
citestyle=authoryear,sorting=none,backend=biber,natbib,dashed=false]{biblatex}
\addbibresource{sources.bib}
\NewBibliographyString{available}
\usepackage[english]{babel}
\DefineBibliographyStrings{english}{available = {available at},}
\DefineBibliographyStrings{english}{urlseen = {[Accessed},}
\DeclareFieldFormat{url}{\bibstring{available}\addcolon\space\textless\url{#1}\textgreater}
\DeclareFieldFormat{urldate}{\space\bibstring{urlseen}\space#1]}
\DeclareNameAlias{sortname}{last-first}
\renewcommand*{\finalnamedelim}{\multinamedelim}
\defbibenvironment{bibliography}
{\enumerate{}
{\setlength{\leftmargin}{\bibhang}%
\setlength{\itemindent}{-\leftmargin}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}}
{\endenumerate}
{\item}
\usepackage{xpatch}
\xpatchbibmacro{date+extrayear}{%
\printtext[parens]%
}{%
\setunit{\addcomma\space}%
\printtext%
}{}{}
\begin{document}
\parencite{space_debris_klinkrad} and
\citet{space_debris_klinkrad} both do not display \textbf{and} between authors.
\printbibliography
\end{document}
我的 sources.bib 看起来像:
@Book{space_debris_klinkrad,
Title = {Space Debris: Models and Risk Analysis},
Author = {Klinkrad, H. and Doe, J.},
Publisher = {Springer},
Address = {Berlin},
Year = {2006},
}
有人能解决这个问题吗?谢谢!
答案1
您已将 变成and
逗号
\renewcommand*{\finalnamedelim}{\multinamedelim}
删除此命令将恢复and
:
\documentclass[a4paper,10pt]{report}
\usepackage[bibstyle=authoryear,citestyle=authoryear,sorting=none,
backend=biber,natbib,dashed=false]{biblatex}
\addbibresource{sources.bib}
\NewBibliographyString{available}
\usepackage[english]{babel}
\DefineBibliographyStrings{english}{available = {available at},}
\DefineBibliographyStrings{english}{urlseen = {[Accessed},}
\DeclareFieldFormat{url}{\bibstring{available}\addcolon\space\textless\url{#1}\textgreater}
\DeclareFieldFormat{urldate}{\space\bibstring{urlseen}\space#1]}
\DeclareNameAlias{sortname}{last-first}
%\renewcommand*{\finalnamedelim}{\multinamedelim}
\defbibenvironment{bibliography}
{\enumerate{}
{\setlength{\leftmargin}{\bibhang}%
\setlength{\itemindent}{-\leftmargin}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}}
{\endenumerate}
{\item}
\usepackage{xpatch}
\xpatchbibmacro{date+extrayear}{%
\printtext[parens]%
}{%
\setunit{\addcomma\space}%
\printtext%
}{}{}
\begin{document}
\parencite{space_debris_klinkrad} and \citet{space_debris_klinkrad}
both display \textbf{and} between authors.
\printbibliography
\end{document}