Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gepcel opened this issue Jun 26, 2018 · 2 comments
Milestone

Comments

@gepcel
Copy link

gepcel commented Jun 26, 2018

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.

@lierdakil
Copy link
Owner

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.

@gepcel
Copy link
Author

gepcel commented Jun 26, 2018

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

@lierdakil lierdakil added this to the v0.4 milestone Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants