How can I start the TOC numbering with 0?
Hi all
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?
Best regards,
George
-
Hi George,
you can do that by setting the initial value of the respective counter to -1:
body {
counter-reset: h1 -1;
}If you also have a numbered TOC you'll want to add the following as well:
ul.toc {
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.
Cheers,
Jens
Please sign in to leave a comment.
Comments
2 comments