Continuous Page Numbering
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 93
- Joined: Tue Oct 30, 2018 9:47 pm
Continuous Page Numbering
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!
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Continuous Page Numbering
The page numbers are reset to one in two cases:
The index page also changes the format of the page numbers to lower alpha. To switch to decimal, use:
- On the first topic that follows the TOC
- On the first topic from the index
Code: Select all
*[class ~= "map/map"] > *[class ~= "toc/toc"] + *[class ~= "topic/topic"],
*[class ~= "index/groups"] {
counter-reset: none;
}
Code: Select all
@page index {
@bottom-center {
content: counter(page, decimal)
}
}
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service