Differe page number style configuration
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 5
- Joined: Mon Apr 01, 2024 11:05 am
Differe page number style configuration
Post by freewingwind23 »
Hi,
how to set a different page number style (such as i, ii, ...) for the chapters with a "outputclass='before-toc" attribute and reset the page number for the following normal chapters.
Also, the cover should not be included for page counting.
Look forward to your reply. Thanks.
how to set a different page number style (such as i, ii, ...) for the chapters with a "outputclass='before-toc" attribute and reset the page number for the following normal chapters.
Also, the cover should not be included for page counting.
Look forward to your reply. Thanks.
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Differe page number style configuration
Post by julien_lacour »
Hello,
You can change the page definition for before-toc topics using the following rule:
In this example I used the predefined matter-page which uses lower-roman numbering.
To reset the page number for the first following "normal" chapter you can follow this topic from our user guide. Use the sub-topic corresponding to your numbering context (shallow, deep or deep-chapter-scope-no-page-reset).
If you don't want to number the cover page you can reset the page counter on the first before-toc topic like follows:
Regards,
Julien
You can change the page definition for before-toc topics using the following rule:
Code: Select all
*[class ~= "topic/topic"][outputclass ~= "before-toc"] {
page: matter-page;
}
To reset the page number for the first following "normal" chapter you can follow this topic from our user guide. Use the sub-topic corresponding to your numbering context (shallow, deep or deep-chapter-scope-no-page-reset).
If you don't want to number the cover page you can reset the page counter on the first before-toc topic like follows:
Code: Select all
*[class ~= "topic/topic"][outputclass ~= "before-toc"]:first-of-type {
counter-reset: page;
}
Julien
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