我使用的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}