Paged.js: How can I set up an additional page counter for only a few pages

804 Views Asked by At

I need to display the pages of my document on the first few pages in roman numerals. From a specific page on I have to use decimals starting at 1 again.

For example the TOC, list of figures, preamble should have roman numerals. For all other pages I have to use decimals except for the glossary and all pages which come after the glossary. There I'd like to use roman numerals again.

1

There are 1 best solutions below

0
On

With CSS Page Media, you can count page with this, more detail >> https://www.w3.org/TR/css-page-3/#page-based-counters

content: "Page." counter(page);

and set it again

counter-increment: page 1;