pandoc-ext / multibib

Generate multiple, topic-specific bibliographies.
MIT License
15 stars 5 forks source link

Compatibility with citefield #4

Open bcdavasconcelos opened 1 year ago

bcdavasconcelos commented 1 year ago

The multibib/multiple-bibliographies filters are not compatible with citefield. I cannot say where the problem lies, but both (multibib/multiple-bibliographies & citefield) are compatible with citation-backlinks, so it seems that it should be a matter of adjusting something. However, it could be that the multibib filter is resolving all the inline citations and that when citefield comes around there is nothing left to do. In this case, it seems that the citefield filter would have to be incorporated into the multibib filter somehow for it to work. But I am not sure about this yet.

Und eine Kleinigkeit mehr...

The configuration is the same in both cases. Just the filter is different (multibib/multiple-bibliographies).

image image
bcdavasconcelos commented 1 year ago

So, I had to add only to add doc.meta.references = pandoc.utils.references(doc) to the multibib filter, around line 70, in the resolve_doc_citations function. @tarleb would you consider adding or allowing a pull request to add this and make the filters compatible? Considering, of course, that this cannot be solved by some simple change to the citefield filter that I am too dull to see. I could include the ad hoc citeproc filter that allows the multibib filter to work as a Quarto extension (right now, it does not work out of the box, so to speak).

tarleb commented 1 year ago

Sorry, I didn't have time yet to look into this, but it's on my list.