PaulStanley / oscola-biblatex

Oscola is a style file for the biblatex bibliography system.
9 stars 7 forks source link

\textcite{} and ibid after index of cases #16

Open flimofly opened 3 years ago

flimofly commented 3 years ago

When first citing a judgment using \textcite{} the ibidtracker wrongly counts the judgment's mention in the index of cases, which appears before it.

Here is an MWE:

\documentclass[a4paper,12pt]{memoir}
\usepackage[style=oscola,indexing=cite]{biblatex}
\addbibresource{ref.bib}

\usepackage[splitindex]{imakeidx} %combination of oscola and memoir requires this
\makeindex[name=cases, title={Table of CJEU Cases}]
\makeindex[name=legislation, title={Table of Legislation}]
\DeclareIndexAssociation{eucases}{cases}

\begin{document}
\title{Test}
\author{Timothy Roes}
\maketitle
\frontmatter
\printindexearly[cases]
\mainmatter
\chapter{Title}
Let us talk about the \textcite[12]{ECJ:Fromme:1982fo} judgment. Then we reference a book\autocite[324]{Lenaerts:1983tw} Finally, a reference to the judgment again.\autocite[16]{ECJ:Fromme:1982fo}
\end{document}

Produces this output. Notice how the first footnote already says 'ibid'. Screenshot 2021-05-07 at 11 54 13

flimofly commented 3 years ago

It appears that adding citereset=chapter to the biblatex options remedies this.

moewew commented 3 years ago

Though that would appear to be a workaround that works accidentally. If for some reason there is no new sectioning command before the text directly following the index, we'd be in trouble again. I didn't investigate the issue in more detail because I didn't have your test.bib, but I'm expecting the real problem is that the citations issued in the index are accidentally tracked by biblatex's citation tracker, which is probably not something we generally want.