When I need to update my publication list, I usually retrieve a bibtex file (.bib) from OrcID. I used to convert this file into a YAML with pandoc-citeproc like this
| |
Since pandoc 2.11, pandoc-citeproc is no longer used to format citations and the repository is now archived:
Pandoc now uses the citeproc library, and no external filter is needed.
So I decided to give it a try and adjust some scripts of my own using the new way of doing the conversion. The first step was to get a newer version of Pandoc because, even in Sid, Debian currently packages Pandoc 2.9.1. So I installed the latest version manually by doing
| |
And here is the version I am now using
| |
Then, I had to figure out how to do the conversion! So I looked up the documentation and it is all explained in the section “Specifying bibliographic data”. Now, all I need to do for this conversion is
| |
Pretty neat! And if at some point I decide to use JSON rather than YAML, I simply edit the line above as follows
| |
Pandoc is definitively a very important tool for me, it sure has made my life way easier over the past 7 years now.