Processing custom BibTeX tags with a pandoc Lua filter #10347
Replies: 2 comments
-
Been there done that! The attached zip file contains some scripts which you may find helpful. Remember to read the enclosed README! With them you could
|
Beta Was this translation helpful? Give feedback.
-
I noticed this relevant issue: jgm/citeproc#137 If we modified citeproc to support the If you want to put up a pandoc issue suggesting this, with a link to the associated citeproc issue, go ahead. |
Beta Was this translation helpful? Give feedback.
-
I have a BibTeX file that looks like this:
Each entry has a custom tag called
file
which refers to the file path of the document on my local system.I would like to write a simple Lua filter which will append a link to this path to a bibliography rendered in HTML. I tried inspecting the native syntax tree first with the command
pandoc --citeproc --from biblatex --to native .\references.bib
. Unfortunately it looks like custom tags and their corresponding values do not end up in the native tree.Writing my own BibTeX reader is not really a road I'm prepared to go down at this point, and my hunch is that the bibliography processing is done inside the Pandoc engine (i.e. using Haskell) and not a Lua filter which I might have been able to copy and modify.
Are there any other workarounds I could try to be able to process custom tags in a simple Lua filter?
Beta Was this translation helpful? Give feedback.
All reactions