ReScience / ReScience-submission

ReScience submission repository
50 stars 97 forks source link

pandoc-crossref filter out of date #13

Open jsta opened 8 years ago

jsta commented 8 years ago

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.

rougier commented 8 years ago

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

jsta commented 8 years ago

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

pdebuyl commented 8 years ago

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

tpoisot commented 8 years ago

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.

rougier commented 8 years ago

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.