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

"chapDelim" usage, how to get a figure caption like "Figure 1.3-1 Something"?

Open gepcel opened this issue 7 years ago • 2 comments

With pandoc-crossref, how to get a figure caption like "Figure 1.3-1 Something", which means the 1st figure under Section 1.3? By default, I can only get Figure 1.3.1 something.

I'm aware of the chapDelim option, by setting chapDelim='-', I will get "Figure 1-3-1".

It makes sense that . be the section delimiter, and - be the delimiter between section number and figure number.

gepcel avatar Jun 26 '18 05:06 gepcel

Uh... no way I can think of currently, sorry. And due to how stuff is handled internally, it's not a single-line change either. I'll treat this as an enhancement request, but actually implementing the change will take some time (possibly months due to me being very distracted with meatspace stuff currently).

PRs are welcome, although if you (anyone reading, that is) go that way, consider if making chapDelim an array-valued parameter using rules similar to singular/plural reference prefixes (fig. vs figs.) would work. Adding another metadata option just feels inelegant at this point.

lierdakil avatar Jun 26 '18 09:06 lierdakil

Then maybe leave this issue open as an enhancement request. Sorry I cannot help with PRs. Know nothing about Haskell.

gepcel avatar Jun 26 '18 23:06 gepcel