This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
Script for emulating the BetterBibtex stable citation key feature. | |
(see https://github.com/retorquere/zotero-better-bibtex) | |
input.bib: A BibLatex export from a Zotero 5 library that has "Extra" field | |
entries for stable BibTex keys ("bibtex: <my_key>"). They end up in the | |
note field of the standard Zotero 5 export. | |
output.bib: A BibTex file where the citation keys from the Extra/note field are |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Text.Pandoc | |
import Text.Pandoc.Walk (walk,query) | |
import Text.Pandoc.Builder | |
-- | |
--Functions to first build up a new document consisting of | |
--all the header blocks or all the bold entries outside of headers. | |
--These will be recombined into a new document. |