pandoc-crossref icon indicating copy to clipboard operation
pandoc-crossref copied to clipboard

*Prefix is ignored when set in pandoc defaults yaml

Open Bustel opened this issue 3 years ago • 1 comments

I have a custom defaults set for pandoc for writing latex papers but despite having set the following in the defaults file:

variables:
  secPrefix: "Section"

the secPrefix remains sec. unless I set the same variable explicitly in the header. Same for figPrefix.

Did I miss anything? Shouldn't pandoc set the same meta fields regardless whether its in the document or in the defaults file?

Bustel avatar Jun 10 '21 13:06 Bustel

It perhaps should, but Pandoc's defaults file is wonky at the best of times (there are just a lot of gotchas). Use pandoc-crossref.yaml for pandoc-crossref variables.

lierdakil avatar Jun 11 '21 07:06 lierdakil