In the following code, I want to reset the page counter and also change the page counter style at the introduction. I can reset the counter, but can't work out how to change the counter style.
Will I have to create a new named page and new flow or can the style of the existing page counter flow be changed on the fly?
Apologies if this has already been asked, but the forum search seems a bit wonky at the moment - I've had cursory manual browse through it but can't see anything that looks like it matches what I'm asking.
Thanks,
Gary.
Will I have to create a new named page and new flow or can the style of the existing page counter flow be changed on the fly?
<style type="text/css">
@page {
@bottom-center { content: flow(in_pdf_bottom_center); }
}
.in_pdfpagenum { content: counter(page, lower-roman); }
#in_pdf_bottom_center { flow: static(in_pdf_bottom_center); }
div#introduction { counter-reset: page 1 }
</style>
<body>
<div id='in_pdf_bottom_center'><p style="text-align: center;">Page: <span class='in_pdfpagenum'></span> </p></div>
... first couple of pages' worth of text ..., with page numbers going i, ii, iii, iv etc..
<div id="introduction"> blah ... blah .... blah ... with page numbers going 1, 2, 3 ....
</div>
</body>
Apologies if this has already been asked, but the forum search seems a bit wonky at the moment - I've had cursory manual browse through it but can't see anything that looks like it matches what I'm asking.
Thanks,
Gary.