How can I start the TOC numbering with 0?
I have a specific documentation that I need to export to PDF. The requirement is that the first chapter will be numbered with 0. PDF Exporter always starts numbering with 1. How can I change that?
you can do that by setting the initial value of the respective counter to -1:
counter-reset: h1 -1;
If you also have a numbered TOC you'll want to add the following as well:
counter-reset: li1 -1;
Normally each counter is initialized with 0 and when the first section heading (or TOC entry) appears the counter is increased and printed. By setting them to -1 you'll end up with the first chapter having a zero.
Please sign in to leave a comment.