Numbering plugin for PDF output

susannecm
Posts: 48

Numbering plugin for PDF output

Fri Oct 13, 2017 2:00 pm

I've been testing the numbering plugin com.oxygenxml.pdf2.topic.numbering-master.
It almost does what I need :wink:
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
radu_pisoi
Posts: 302
Location: Craiova

Re: Numbering plugin for PDF output

Fri Oct 13, 2017 4:55 pm

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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
susannecm
Posts: 48

Re: Numbering plugin for PDF output

Mon Oct 16, 2017 1:02 pm

Thank you for the quick fix!
susannecm
Posts: 48

Re: Numbering plugin for PDF output

Fri Oct 20, 2017 4:44 pm

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
radu_pisoi
Posts: 302
Location: Craiova

Re: Numbering plugin for PDF output

Tue Oct 24, 2017 8:47 am

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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
susannecm
Posts: 48

Re: Numbering plugin for PDF output

Tue Oct 24, 2017 1:06 pm

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

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest