This is originally from a bug report at zepinglee/citeproc-lua#72. In the LaTeX standard document class, the footnote numbers are reset to 1 at the beginning of every chapter. My question is, does current citeproc-js
support this stye of note numbers?
The structure of the document is like in the following LaTeX code. The same item is cited twice in each chapter. I’ve collected what’s inputted into the citeproc engine and made a test fixture (https://github.com/zepinglee/citeproc-js/blob/mytest/fixtures/local/position_NotesPerChapter.txt). The engine raises two warnings of note index not sane.
\chapter{Title1}
test cite1\cite{King2008-Gramma}
test cite2\cite{King2008-Gramma}
\chapter{Title2}
test cite3\cite{King2008-Gramma}
test cite4\cite{King2008-Gramma}
[position_NotesPerChapter] Note index sequence is not sane for citation CITATION-3
[position_NotesPerChapter] Note index sequence is not sane at citationsPre[2]
My plan to solve this is to add a chapter
number in the citation properties
as an extension in citeproc-lua
. Any other suggestions?
{
"citationID": "CITATION-1",
"citationItems": [
{
"id": "King2008-Gramma"
}
],
"properties": {
"chapter": 2,
"noteIndex": 1
}
}