diff options
| author | John MacFarlane <[email protected]> | 2025-07-25 10:25:14 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-12-06 18:33:17 +0100 |
| commit | 28d3dbfec97b9cdccf16fb63042380c2ef89cb63 (patch) | |
| tree | c7389cf40d900cbeed16d58227bc5ab0159cb317 /src/Text/Pandoc/Readers/EndNote.hs | |
| parent | 7ced712014b64b59d39e07c82a1633109c05f730 (diff) | |
Implement `reset-citation-positions` class on headings.reset-position
When the `reset-citation-positions` class is added to
a top-level heading, `--citeproc` will reset position
information at that point in the document. This is needed
in order to ensure that the first citation in a chapter
to a work that has been cited in a previous chapter will
not be in abbreviated form.
Requires a dependency on a development version of citeproc.
Diffstat (limited to 'src/Text/Pandoc/Readers/EndNote.hs')
| -rw-r--r-- | src/Text/Pandoc/Readers/EndNote.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/EndNote.hs b/src/Text/Pandoc/Readers/EndNote.hs index f0f22338d..f595c7684 100644 --- a/src/Text/Pandoc/Readers/EndNote.hs +++ b/src/Text/Pandoc/Readers/EndNote.hs @@ -81,6 +81,7 @@ readEndNoteXMLCitation xml = do let items = map toCitationItem $ filterElementsName (name "Cite") tree return $ Citeproc.Citation{ Citeproc.citationId = Nothing + , Citeproc.citationResetPosition = False , Citeproc.citationPrefix = Nothing , Citeproc.citationSuffix = Nothing , Citeproc.citationNoteNumber = Nothing |
