Remove chapter numbering from headers
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 17
- Joined: Wed Jul 21, 2021 9:39 pm
Remove chapter numbering from headers
Post by verostarry »
Hi,
My team has a rather unique situation due to regulatory requirements where not every chapter number will be used in order for our manual. For example, we have a Chapter 3 but no 1 or 2. We're autonumbering chapters using the "shallow" option, as well as using some CSS customizations I found online for example to hide chapter numbering in the TOC. I'm not aware of an option that doesn't autonumber at all, so went with "shallow" as it seemed to apply the least amount of numbers.
Our problem is the automatic headers Oxygen produces still pull in the chapter titles into headers and autonumbers them. We'd like to get rid of the numbering entirely as it's confusing (ex. Chapter 3 is numbered as 1), but keep the chapter titles. Please advise on how to do so, either in just the header or entirely (as we don't need automatic numbering of any kind on chapters).
Thanks,
Veronica
My team has a rather unique situation due to regulatory requirements where not every chapter number will be used in order for our manual. For example, we have a Chapter 3 but no 1 or 2. We're autonumbering chapters using the "shallow" option, as well as using some CSS customizations I found online for example to hide chapter numbering in the TOC. I'm not aware of an option that doesn't autonumber at all, so went with "shallow" as it seemed to apply the least amount of numbers.
Our problem is the automatic headers Oxygen produces still pull in the chapter titles into headers and autonumbers them. We'd like to get rid of the numbering entirely as it's confusing (ex. Chapter 3 is numbered as 1), but keep the chapter titles. Please advise on how to do so, either in just the header or entirely (as we don't need automatic numbering of any kind on chapters).
Thanks,
Veronica
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Remove chapter numbering from headers
Post by julien_lacour »
Hi Veronica,
You can start using the "How to Remove the 'Chapter NN' Prefix from Table of Contents and Content" topic from our user-guide, then if you want to remove the chapter number from the headers too use this rule instead of the rule from the topic:
Regards,
Julien
You can start using the "How to Remove the 'Chapter NN' Prefix from Table of Contents and Content" topic from our user-guide, then if you want to remove the chapter number from the headers too use this rule instead of the rule from the topic:
Code: Select all
*[class ~= "topic/topic"][is-chapter]:not([is-part]) > *[class ~= "topic/title"]:before {
content: none !important;
}
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