Numbering plugin for PDF output
Post here questions and problems related to editing and publishing DITA content.
Numbering plugin for PDF output
I've been testing the numbering plugin com.oxygenxml.pdf2.topic.numbering-master.
It almost does what I need
However, there is one problem: the numbers are also added to elements that are already numbered by default. For example, chapters are then numbered twice, like so:
Chapter 1: 1 Introduction................................................................................
1.1 What are standard images?.........................................................................
1.2 System requirements................................................................................
Any chance that this will be fixed? And will the plugin be included in the oXygen in future?
Kind regards,
Susanne Muris
It almost does what I need
However, there is one problem: the numbers are also added to elements that are already numbered by default. For example, chapters are then numbered twice, like so:
Chapter 1: 1 Introduction................................................................................
1.1 What are standard images?.........................................................................
1.2 System requirements................................................................................
Any chance that this will be fixed? And will the plugin be included in the oXygen in future?
Kind regards,
Susanne Muris
-
- Posts: 403
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Numbering plugin for PDF output
Post by radu_pisoi »
Hi,
The com.oxygenxml.pdf2.topic.numbering plugin was developed as a sample DITA-OT PDF2 customization plugin. The main goal was to help people that want to learn how to create a PDF customization plugin.
I have fixed the reported problems for bookmap's chapters and appendices.
Thank you for your feedback.
The com.oxygenxml.pdf2.topic.numbering plugin was developed as a sample DITA-OT PDF2 customization plugin. The main goal was to help people that want to learn how to create a PDF customization plugin.
I have fixed the reported problems for bookmap's chapters and appendices.
Thank you for your feedback.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Re: Numbering plugin for PDF output
Hi,
I added one more condition to the xsl:choose:
<xsl:when test="self::*[contains(@class, ' bookmap/part ')]"/>
<!-- Do not add numbers for parts -->
Maybe other DITA users want numbered headings too.
Kind regards
Susanne Muris
I added one more condition to the xsl:choose:
<xsl:when test="self::*[contains(@class, ' bookmap/part ')]"/>
<!-- Do not add numbers for parts -->
Maybe other DITA users want numbered headings too.
Kind regards
Susanne Muris
-
- Posts: 403
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Numbering plugin for PDF output
Post by radu_pisoi »
Hi,
Good observation.
I added the 'bookmap/part' to the list of elements that should be skipped from numbering, they are already numbered by the default processing.
Good observation.
I added the 'bookmap/part' to the list of elements that should be skipped from numbering, they are already numbered by the default processing.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Re: Numbering plugin for PDF output
Hi Radu,
thanks - unfortunately, there are more adjustments required.
In documents without parts, the numbering is fine.
However, in documents with parts, the numbering is like this:
Part II
Chapter 5
Topic 2.1.1
Topic 2.1.2
I believe it should be like this:
Part II
Chapter 5
Topic 5.1
Topic 5.2
I'm still working on this.
Kind regards
Susanne
thanks - unfortunately, there are more adjustments required.
In documents without parts, the numbering is fine.
However, in documents with parts, the numbering is like this:
Part II
Chapter 5
Topic 2.1.1
Topic 2.1.2
I believe it should be like this:
Part II
Chapter 5
Topic 5.1
Topic 5.2
I'm still working on this.
Kind regards
Susanne
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