BCcampus / pressbooks-mpdf

[UNMAINTAINED] open source HTML to PDF conversion
GNU General Public License v2.0
7 stars 7 forks source link

Automatic part/chapter numbering does not appear in table of contents #73

Open josieg opened 5 years ago

josieg commented 5 years ago

Description

When "Display part and chapter numbers" is enabled in Global Theme options, the automatic numbering is not applied to the table of contents in the mPDF, even though the numbers do appear beside the chapter titles at the begining of the chapter itself.

Expected behaviour

I expect that when "Display part and chapter numbers" is enabled in Global Theme options that part and chapter numbers will appear in the table of contents AND at the start of the chapter.

Actual behaviour

When "Display part and chapter numbers" is enabled in Global Theme options, the TOC in the mPDF will not show the chapter/part numbers. However, chapter numbers will appear at the begining of the chapter itself.

Here are screenshots from the same mPDF export that has "Display part and chapter numbers" is enabled in Global Theme options:

Table of contents: mpdftoc Title of chapter 2: mpdfchaptertitle