Feature: group bibliography entries by year with section headings #14140
michaelaye
started this conversation in
Feature Requests
Replies: 4 comments 1 reply
-
|
let me know if you want a working Lua filter code. |
Beta Was this translation helpful? Give feedback.
0 replies
This comment has been hidden.
This comment has been hidden.
-
|
For reference, existing extensions working with citations/bibliography: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I considered briefly submitting this to section-bibliographies, but the ideas are orthogonal: Those are bibs per section, mine is section one bib on the same page by year, with TOC. So I added another extension: https://github.com/michaelaye/chronobib |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
When rendering a full bibliography (e.g. with
nocite: '@*'for a publications page), all entries appear as a flat list. For academic CVs and publication pages, it's standard to group entries by year with reverse-chronological headings:There is no built-in way to do this. Users must write Lua filters that:
citeproc: false)pandoc.utils.citeproc(doc)refsdiv, extract years frompandoc.utils.references(doc), group entries, and insert headersProposed solution
A YAML option to enable year grouping:
This would instruct citeproc to insert heading elements (H2 by default) between year groups, sorted newest-first.
Alternatives considered
pandoc.utils.citeproc()(current workaround; requires disabling built-in citeproc)nocitesections per year (manual maintenance, breaks on new publications)Beta Was this translation helpful? Give feedback.
All reactions