Biblatex 和章节之间的引用重置

Biblatex 和章节之间的引用重置

我感觉这个问题有一个显而易见的答案,但我不知何故错过了。然而,我尝试了文档中的大部分命令biblatex,但仍然无法找到答案。

我想要做的是重置章节之间脚注和引文的计数。此外,我还想让 ibid、opcit 等从新章节的开头重新开始。

我目前正在使用 XeLaTeX biblatex。我的序言是:

\documentclass[12pt,oneside]{book}

\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage[style=verbose-trad1=true,natbib=true,sortcites=true]{biblatex}
\bibliography{bib.bib}

%Additional Stuff that I don't think should influenec the bibliography, but is here just in case
\interfootnotelinepenalty=10000
\usepackage{fontspec}
\usepackage{titlesec}
\defaultfontfeatures{Ligatures=TeX}
\usepackage{sectsty}
\allsectionsfont{\sffamily}
\setmainfont{Lyon Text Regular No. 2}
\setsansfont{Lyon Display Light}
\usepackage[margin=3.5cm]{geometry}
\pretolerance=5000
\tolerance=1000 
\usepackage{setspace}
\usepackage{graphicx}

答案1

book课堂上,脚注(包括引用作为脚注)默认情况下,在新的章节开始时重置。如果您的情况不同,则一定是您执行了代码片段未显示的操作。您可以尝试将以下内容添加到文档序言中(请注意,带星号的版本\counterwithin不添加章节前缀):

\usepackage{chngcntr}
\counterwithin*{footnote}{chapter}

要重置每章的“同上”和类似表达,请使用biblatex打包选项citereset=chapter

\documentclass{report}

\usepackage[style=verbose-trad1,citereset=chapter]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
@misc{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo},
}
@misc{C03,
  author = {Cuthor, C.},
  year = {2003},
  title = {Charlie},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\chapter{foo}

Some text \autocite{A01}.

Some text \autocite{A01}.

Some text \autocite{B02}.

\chapter{bar}

Some text \autocite{B02}.

Some text \autocite{C03}.

\printbibliography

\end{document}

相关内容