Chapter Numbering

Add chapter numbering to the Table of Contents (TOC) and the document body.

Overview

Resource location:@import url("https://jorsek.github.io/pdfgen.github.io/styles1.1/modules/styling/chapter_numbering.css");
Figure 1. Chapter numbering in the TOC
chapter numbering
Figure 2. Chapter numbering in the document body
chapter numbering in body

Common Customizations

You can apply customizations by pasting the following code snippets under the @import rules.

Remove the “Chapter” captions
disable chapter caption
disable chapter caption body
/* Remove the "Chapter" captions in the TOC. */
nav ul li:before {
content: counter(toc_level1) ". ";
}
/* Remove the "Chapter" captions in the document body. */
article > .topictitle1:before {
content: counter(section_level1) ". ";
}