ReScience-submission icon indicating copy to clipboard operation
ReScience-submission copied to clipboard

pandoc-crossref filter out of date

Open jsta opened this issue 9 years ago • 5 comments

In my initial attempts at c03fe28 I was using the latest version of pandoc-crossref (0.1.6.3) and getting this error:

pandoc-crossref: Error in $[6][0]: When expecting a product of 3 values, encountered an Array of 2 elements instead pandoc: Error running filter /root/.cabal/bin/pandoc-crossref

Apparently this error gets thrown when the filter is designed for a different version of pandoc-types. I solved the issue by using an earlier version of pandoc-crossref (0.1.5.6). Anyway, I think the filter needs to be updated.

jsta avatar Jan 15 '16 17:01 jsta

Thanks. Do you how to fix it ? Can you make a PR ?

rougier avatar Jan 16 '16 06:01 rougier

I do not know how to fix it. I would have to learn more about pandoc filters.

jsta avatar Feb 10 '16 15:02 jsta

Just succeeded using both version. This was with pandoc 1.15.2.1 (from cabal).

pdebuyl avatar Feb 11 '16 12:02 pdebuyl

I think it works if people install the full haskell stack to compile pandoc-crossref. That's a lot of dependencies to compile a paper.

tpoisot avatar Feb 12 '16 16:02 tpoisot

I did not realize pandoc-crossref would be a problem. Maybe we can revert to simpler solution such as pandoc-fignos, pandoc-tablenos and pandoc-eqnos.

@tpoisot But in any case, only the author (or maybe only the editor) has to compile the paper. For example, in the current submission, I think there might be a misunderstanding since the author provides a makefile to build the PDF while it is not required.

rougier avatar Feb 12 '16 19:02 rougier