Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-refs with multiref_no_duplicates: false creates duplicates within a bibliography #12

Open
zmbc opened this issue Apr 11, 2024 · 0 comments

Comments

@zmbc
Copy link

zmbc commented Apr 11, 2024

Lightly edited sample.md:

---
multiref_no_duplicates: false
---

# A section header

## A subsection

Here is something [@ainsworth:sheppard 27]. Something else
[@dames:physiology]. Finally,[@dames:physiology] we want one[@dames:physiology] last[@dames:physiology] citation[@dames:physiology] [@kant:critique2 29]. Here, references for this subsection:

<div class="multi-refs"></div>

## Another subsection.

Something new [@altick:aldine 20]. And something repeated
[@dames:physiology].

<div class="multi-refs"></div>

# A second section

Here is something [@lukacs:european 125]. Something else
[@cohen:jokes 3]. Finally, one last
citation [@trollope:autobiography 392]. And something repeated in a different section: [@dames:physiology]

<div class="multi-refs"></div>

Command: pandoc --citeproc --lua-filter multi-refs.lua sample.md -o sample.docx --bibliography bibliography.bib --csl biomed-central.csl

Result:

image

Unless I have greatly misunderstood the expected behavior, the "Dames N" reference should not be repeated in the first bibliography.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant