Open graceanker opened 1 year ago
I have no idea what you're trying to do here. A minimal reproduction example would certainly be helpful.
Thanks for your attention with this.
Some citation styles (e.g. OSCOLA, Bluebook) use footnote numbers in short, subsequent citations (ie citations after the first, full citation). Citeproc seems to interfere with the footnote count, causing the footnote number used in the citation to be wrong.
Here is a MWE using a Pandoc demo:
# Pandoc with citeproc-hs {#sec:heading}
Citeproc: [@sec:heading]
- [@nonexistent]
- @nonexistent
- @item1 says blah.
- @item1 [p. 30] says blah.
- @item1 [p. 30, with suffix] says blah.
- @item1 [-@item2 p. 30; see also @item3] says blah.
- In a note.[^1]
- A citation group [see @item1 p. 34-35; also @item3 chap. 3].
- Another one [see @item1 p. 34-35].
- And another one in a note.[^2]
- Citation with a suffix and locator [@item1 pp. 33, 35-37, and nowhere else].
- Citation with suffix only [@item1 and nowhere else].
- Now some modifiers.[^3]
- With some markup [*see* @item1 p. **32**].
# References
[^1]: A citation without locators [@item3].
[^2]: Some citations [see @item2 chap. 3; @item3; @item1].
[^3]: Like a citation without author: [-@item1], and now Doe with a locator [-@item2 p. 44].
Here are two screenshots as well. Compare footnotes 7 (on the first) and 6 (on the second screenshot). The first one shows up the citation correctly referring to footnote 3 (where the first, full citation is provided); the second one incorrectly refer to footnote 4.
When using crossref in conjunction with citeproc to compile PDFs using XeLaTeX, citation references to earlier footnotes get misconfigured, e.g. a citation in note 378 will refer to "supra, note 388", when in fact it should refer to note 377 (the first occurrence of the citation, which includes a full reference). I've reproduced this behaviour with different CSL citation styles.