Biblatex,authoryear-comp,“and”代替逗号分隔符

Biblatex,authoryear-comp,“and”代替逗号分隔符

我使用的authoryear-comp是 样式biblatex。但是,我不想用逗号分隔年份,而是希望用 分隔年份and

现在,\footcite给出这个结果:

在此处输入图片描述

但我希望它看起来像这样:

A 和 B 1995 年和 1998 年。

我尝试过\renewbibmacro但失败了。

\documentclass{article}
\usepackage{filecontents}
\usepackage[backend=biber,style=authoryear-comp]{biblatex}


\begin{filecontents}{\jobname.bib}
@article{a,
       author = {A and B},
       title = {Title},
       journal = {American Journal of Political Science},
       year = {1995},
       type = {Journal Article}
    }

@article{b,
       author = {A and B},
       title = {Title},
       journal = {American Journal of Political Science},
       year = {1998}
    }
}
\end{filecontents}
\addbibresource{\jobname.bib}


\begin{document}
\footcite{a,b}
\end{document}

答案1

\documentclass{article}
\usepackage{filecontents}
\usepackage[backend=biber,style=authoryear-comp]{biblatex}

\renewcommand*{\compcitedelim}{\space\bibsstring{and}\space}

\begin{filecontents}{\jobname.bib}
@article{a,
       author = {A and B},
       title = {Title},
       journal = {American Journal of Political Science},
       year = {1995},
       type = {Journal Article}
    }

@article{b,
       author = {A and B},
       title = {Title},
       journal = {American Journal of Political Science},
       year = {1998}
    }
}
\end{filecontents}
\addbibresource{\jobname.bib}


\begin{document}
\footcite{a,b}
\end{document}

在此处输入图片描述

相关内容