pandoc-scholar / pandoc-scholar

Create beautiful and semantically meaningful articles with pandoc.
https://pandoc-scholar.github.io
GNU General Public License v2.0
470 stars 49 forks source link

building the example fails: Deprecated pandoc-citeproc filter. #47

Open DavidKi opened 3 years ago

DavidKi commented 3 years ago

I have found this great project and trying so set it up. But when building the example document (by running make in the example directory) I get a warning, telling Deprecated: pandoc-citeproc filter. Use --citeproc instead. and the building fails with Incompatible API versions: encoded with [1,22] but attempted to decode with [1,17,5,4]. When adjusting the file pandoc-options.inc.mk in line 4 to the following PANDOC_CITEPROC ?= --citeproc and in line 20 to PANDOC_WRITER_OPTIONS += $(PANDOC_CITEPROC) it is building successfully.

I am on Ubuntu 20.04 and pandoc 2.11.2

tarleb commented 3 years ago

Thank you for raising this issue! Pandoc 2.11 and later are not supported yet, as the old strategies for JATS support no longer work with pandoc's new citation handling. References in JATS are broken when using pandoc 2.11.. I plan to address this in the next release, but it might require substantial changes to the citeproc* library and is likely to take a while.

We probably should put this limitation and workaround in the README. Would you create a PR?

DavidKi commented 3 years ago

Thanks for the answer. I just created a PR for the README. See #48