用斜线代替破折号表示年份范围

用斜线代替破折号表示年份范围

首先,MWE 及其输出如下。

\documentclass{ctexart}
\usepackage[utf8, backend=biber, style=caspervector-ay]{biblatex}
%the style set alldates=iso in default

\begin{filecontents*}{\jobname.bib}
    @book{bookot,
        location  = {Place},
        publisher = {ABC},
        author    = {Name, Given},
        title     = {One title},
        year      = {2001},
    }
    @book{bookat,
        location  = {Place},
        publisher = {ABC},
        author    = {Name, Given},
        title     = {Another title},
        date      = {2001/2009},
    }
\end{filecontents*}
\addbibresource{\jobname.bib}

\begin{document}
    some quote from \cite{bookot,bookat}
    
    some quote from \parencite{bookot,bookat}
    
    some quote from \textcite{bookot,bookat}
    
    some quote from \textcite{bookot}
    
    some quote from \parencite*{bookot}
    
    \printbibliography
\end{document}

在此处输入图片描述

如您所见,日期范围的符号是-但不在样式/caspervector-ay,即 2001-2009。那么如何使日期范围的符号为/,即使 2001-2009 成为 ISO 中的 2001/2009?

答案1

日期范围分隔符由 控制\bibdaterangesep(在未使用iso日期格式\bibdaterangesep的情况下:斜线是硬编码的)。您可以按如下方式重新定义它

\renewrobustcmd*{\bibdaterangesep}{\slash}

相关内容