joostkremers / pandoc-mode

An Emacs minor mode for interacting with Pandoc.
https://joostkremers.github.io/pandoc-mode/
178 stars 14 forks source link

Specifying new --citeproc option with pandoc 2.11.1.1 #100

Closed bsag closed 4 years ago

bsag commented 4 years ago

First, thanks so much for this incredibly useful package!

I've just switched to the latest pandoc (v2.11.1.1). The --filter pandoc-citeproc option is now deprecated, and it is recommended to use --citeproc instead.

Is it possible to add this option? I tried reverting to using pandoc-citeproc as a filter instead as a workaround, but I get an error:

pandoc-citeproc: Error in $: Incompatible API versions: encoded with [1,22] but attempted to decode with [1,21].

Manually running the command specified by my settings file (minus the filter) but adding the --citeproc option properly processes the references.

Many thanks!

joostkremers commented 4 years ago

I've added the option --citeproc, let me know if you're running into problems

pandoc-citeproc: Error in $: Incompatible API versions: encoded with [1,22] but attempted to decode with [1,21].

Honestly, I don't know what this means. If it doesn't resolve itself, asking on the Pandoc mailing list is probably your best option.

bsag commented 4 years ago

Wow, thanks for the fast response - it works perfectly!

I was only trying to use the pandoc-citeproc filter as a potential work-around, so now that the --citeproc option is working, I don't need that anyway.

I'll close this issue now. Thanks again for the ultra-speedy update!

joostkremers commented 4 years ago

No problem. I've made it so that adding a new Pandoc option requires only a single line of code, so it can be done fast. :smiley:

I may have missed other new options. I try to keep track, but I sometimes overlook them, so if anything else is missing, do let me know.