and so on.
This works (in a way) by using a chapter title like “
The Problem appears when there are more than 10 main titles and the numbers are not aligned anymore.
9. [Title] …
10. [Title] …
Now to my questions:
Is there a way to inject a CSS class into the TOC?
I tried wrapping the number into a
and tag but these are apparently stripped for the TOC.
Since this should be a pretty frequent request could you extend the TOC tag to automatically number the entry’s when a boolean parameter is true?
Subentry’s could be numbered 1.1 …
Another good way to do this and not mess up already numbered titles would be to add a chapter title tag and include a numbering parameter that either generates or accepts a number.
This number would have a styleable CSS class and would be respected by the TOC.
Unfortunately the only workaround for the number alignment problem is like that:
1. Line 1
2. Line 2
10. Line 10
40. Line 40
Unfortunately the workaround has its drawbacks: entities slightly shift chapter names in the the main document, and TOC printed with “Courier New” does not always look matching the main document style.
An implementation of a proprietary numbering attribute for
is possible. Please contact support pd4ml com for that. If you are ready to partially fund the implementation – it will speed up the process.