Section / Headers Title using pandoc-numbering
Closed this issue · 9 comments
As of now, I believe it is impossible to use pandoc-numbering to decide headers titles:
Exercise +.#
================
Exercise +.#
--------------
## Exercise +.#
## Exercise +.# ##
All yields header whose names are "Exercise +.#" instead of actually numbering them.
Is this limitation on purpose? How difficult would it be to overcome it?
Headers are numbered by pandoc itself http://pandoc.org/MANUAL.html#options-affecting-specific-writers (--number-sections
)
Thanks, but that wasn't exactly my question.
Header numbers and exercise numbers should be two different things.
I would like
## Discussion
Cf. @exercise:first.
## Exercise +.#first
Bla
To produce something like
- Discussion
Cf. Exercise 1.
- Exercise 1
Bla
Ok, I have to think about this.
Ok, great!
Remember that my last example contains only 1 syntax for headers, but that this isn't the only one (cf. first post).
It seems very difficult to implement it and to be honest, I'm not sure how useful this feature is. But I keep this issue opened if someone proposes a pull request able to do this.
Excellent!
Looking forward to version using 3.1.0!
Closing this issue as there is no input
Hi!
I also think that this feature could be a great improvement. I would like to use it to render appendices on a report:
# First section
First section content
# Second section
Second section content
# Appendices {-}
## Appendix (The first appendix title) # {-}
## Appendix (The second appendix title) # {-}
which could render as:
1. First section
First section content
2. Second section
Second section content
Appendices
Appendix 1: The first appendix title
Appendix 2: The second appendix title
Don't you think this could be possible?
I reopen the issue to allow a PR