如何重置每章的脚注交叉引用计数器?

如何重置每章的脚注交叉引用计数器?

我正在文档类 scrbook 中撰写论文,并将脚注计数器设置为每章从 1 开始。但是,当我在一章中多次引用某个来源时,它会交叉引用回此来源的第一次出现,即使这是在上一章中,而不是当前章节中第一次出现。

在我的 MWE 中,来源“Al Bashir”位于第 1 章的脚注中,然后又位于第 2 章的两个脚注中。在第 2 章中,它应该给出完整的引用,然后以下脚注应该交叉引用第 2 章中的第一个脚注,而不是引用第 1 章中的脚注。

如何重新设置每个章节的交叉引用计数器以及脚注计数器?

我的 MWE 是:

\documentclass[bibliography=totoc,a4paper,openright]{scrbook}

\usepackage[backend=biber, style=oscola, indexing=cite]{biblatex}
\addbibresource{testingbiblio.bib} %necessary for Oscola
\usepackage[style=british]{csquotes} %necessary for Oscola
\usepackage[noautomatic,nonewpage,splitindex]{imakeidx}

\makeatletter   % the commands to ensure footnotes start new numbering at each chapter
\@addtoreset{footnote}{chapter}
\makeatother

\begin{document}

\chapter{First}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus eget elit gravida, pharetra mauris at, malesuada dui. Sed vitae tortor ante. Quisque sollicitudin accumsan nulla sit amet mattis.\footcite{Tadic} In eu vulputate sem, in sagittis arcu. Nullam fringilla libero non nisi aliquam, eget pulvinar arcu pulvinar. Ut tristique ullamcorper nisl, vitae cursus nulla varius vel. Proin non rhoncus risus.\footcite{AlBashirIndictment}

\chapter{Second}

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\footcite{Vaillancourt} Proin non rhoncus risus.\footcite{AlBashirIndictment} Phasellus eget elit gravida, pharetra mauris at, malesuada dui.\footcite{AlBashirIndictment}


\end{document}

我的 bib 文件是:

@jurisdiction{AlBashirIndictment,
title = {Public Redacted Version of Prosecutor's Application for Warrant of Arrest under Art. 58},
shorttitle = {Al Bashir Application for Warrant of Arrest},
date = {2008-09-12},
number = {ICC-02/05-157},
court = {Pre Trial Chamber},
pagination = {paragraph},
tabulate= {ICC},
keywords={ICC}
}

@jurisdiction{Tadic,
title = {The Prosecutor v Dusko Tadi\'{c}, Appeals Judgment},
shorttitle = {Tadi\'{c} Appeals Judgment},
date = {1999-07-15},
number = {IT-94-1-A},
court = {Appeals Chamber},
pagination = {paragraph},
tabulate= {ICTY},
keywords={ICTY}
}

@jurisdiction{Vaillancourt,
title = {R. v Vaillancourt},
shorttitle = {Vaillancourt},
date = {1987},
court = {Supreme Court of Canada},
reporter = {S.C.R.},
volume = {2},
pages = {636},
pagination = {paragraph},
location = {Canada},
}

答案1

这深深地埋藏在奥斯科拉手册中,见第 9 页:

\usepackage[backend=biber, style=oscola, indexing=cite,
 citereset=chapter]{biblatex}

请注意:“citereset=chapter”。

哦,顺便说一下,这段代码不是必需的:

\makeatletter   % the commands to ensure footnotes start new numbering at each chapter
\@addtoreset{footnote}{chapter}
\makeatother 

我建议将“英语”添加到全局选项中,然后

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}

你的序言。

请确保您的 bib 文件具有 UTF-8 编码。

相关内容