lierdakil / pandoc-crossref

Pandoc filter for cross-references
https://lierdakil.github.io/pandoc-crossref/
GNU General Public License v2.0
911 stars 72 forks source link

cleveref must be loaded after hyperref #369

Closed mcnesium closed 1 year ago

mcnesium commented 1 year ago

I am only here because Google found me that line in the changelog.

So I added the latest release to the Docker image:

COPY pandoc-crossref /usr/local/bin/pandoc-crossref

and am now running pandoc-crossref v0.3.14.0 together with pandoc 2.19.2 within pandoc/latex image (476a9c7ce3ec).

Unfortunately it still says

Error producing PDF. ! Package cleveref Error: cleveref must be loaded after hyperref!.

Is that even related to this filter? If so, what do I need to do to apply the fixed version of it?

lierdakil commented 1 year ago

Is that even related to this filter?

Unless you're doing -Fpandoc-crossref -Mcref or equivalent, then no.

lierdakil commented 1 year ago

Apparently you're using pandoc-secnos. Well, then no, unrelated. That said, this issue is fixed in pandoc-crossref, and IIUC the feature set is pretty close, so feel free to give it a spin instead of pandoc-secnos if you're so inclined.