lierdakil / pandoc-crossref

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

can I change the format of prefix ? #440

Open thunderbolt-fire opened 4 weeks ago

thunderbolt-fire commented 4 weeks ago

example: 图 1.1

I want to change it to 图 1-1

lierdakil commented 2 weeks ago

See chapDelim option, but bear in mind that - is used for reference ranges, so you will likely want to change rangeDelim as well. You may also need to use numberSections, depending on how your document is organized.

Not everything is supported with LaTeX/PDF output. If you're targeting that specifically, consider using cref: true and modifying the output using cleveref options instead. See cleveref docs