I'm having issues getting the page numbering correct in my PDFs.
Here's what I'm trying to do:
Cover Letter (no page number)
Title Page (no page number)
Executive Summary - start with page "i"
Table of Contents - continue roman numerals
Table of Appendices - continue roman numbers
Document Body - reset to page "1"
Appendices - (no page numbers)
I have the roman numerals displaying but they seem to be resetting for each section. So I end up with
Executive Summary - i
Table of Contents - i and ii
Table of Appendices - i
After that the regular numbers on the Body reset to 1 and display as expected for that whole section.
The basic structure of the html looks like this:
And then styles that look something like this:
Does it have something to do with using a single named page across multiple html containers?
Here's what I'm trying to do:
Cover Letter (no page number)
Title Page (no page number)
Executive Summary - start with page "i"
Table of Contents - continue roman numerals
Table of Appendices - continue roman numbers
Document Body - reset to page "1"
Appendices - (no page numbers)
I have the roman numerals displaying but they seem to be resetting for each section. So I end up with
Executive Summary - i
Table of Contents - i and ii
Table of Appendices - i
After that the regular numbers on the Body reset to 1 and display as expected for that whole section.
The basic structure of the html looks like this:
<div class="cover-letter"></div>
<div class="title-page"></div>
<div class="report-summary"></div>
<div class="toc"></div>
<div class="toa"></div>
<div class="report-body"></div>
<div class="appendix"></div>
<div class="appendix"></div>
<div class="appendix"></div>
And then styles that look something like this:
@page intro-content {
margin: 1in;
@bottom-right {
content: counter(page, lower-roman);
}
}
@page body-content {
margin: 1in 0.35in;
@bottom-right {
content: counter(page);
}
}
.report-summary {
counter-reset: page 1 pages 1;
}
.toc,
.toa,
.report-summary {
page: intro-content;
}
.report-body {
page: body-content;
counter-reset: page 1 pages 1;
}
Does it have something to do with using a single named page across multiple html containers?