Continuous Page Numbering
Posted: Thu Oct 24, 2019 7:32 am
Hi,
We're customizing the CSS for the table of contents for PDF output, and I notice that the page numbering is not working how we would like. We want the pages in the book to be numbered continuously from the title page to the end. So our page footers throughout the book use the following for the page number:
@bottom-right { content: "Page " counter(page) " of " counter(pages);
Using this scheme, the first page of the first chapter is counted as page 4, because the Title page is on page 1, copyright is page 2, and TOC is page 3. But in the TOC, the entry for the first chapter says that the chapter starts on page 1, apparently because the front matter is not being included in the count. Is there some way to get the TOC to display the same page numbers that we're displaying on the page footers?
Thanks!
We're customizing the CSS for the table of contents for PDF output, and I notice that the page numbering is not working how we would like. We want the pages in the book to be numbered continuously from the title page to the end. So our page footers throughout the book use the following for the page number:
@bottom-right { content: "Page " counter(page) " of " counter(pages);
Using this scheme, the first page of the first chapter is counted as page 4, because the Title page is on page 1, copyright is page 2, and TOC is page 3. But in the TOC, the entry for the first chapter says that the chapter starts on page 1, apparently because the front matter is not being included in the count. Is there some way to get the TOC to display the same page numbers that we're displaying on the page footers?
Thanks!