PDF Index Entries Use Carriage Return Before Page Numbers

Post here questions and problems related to editing and publishing DITA content.
UrsulaT
Posts: 5
Joined: Fri Aug 23, 2013 5:32 pm

PDF Index Entries Use Carriage Return Before Page Numbers

Post by UrsulaT »

Hello, how would I specify that I want the page numbers for index entries in my PDF output to be on the same line as the index entry, so that the following:

Abs
44
Acos
45, 80
AdornmentInfo
57

Looks like this:

Abs 44
Acos 45, 80
AdornmentInfo 57

I am using RenderEX XEP to generate my PDF files.
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

Re: PDF Index Entries Use Carriage Return Before Page Number

Post by Radu »

Hi,

I published a small sample DITA Map (OXYGEN_INSTALL_DIR\samples\dita\flowers\flowers.ditamap) to PDF using XEP and the Index page showed the page numbers next to the index terms. It probably depends on how you use the <indexterm> element to mark words.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
UrsulaT
Posts: 5
Joined: Fri Aug 23, 2013 5:32 pm

Re: PDF Index Entries Use Carriage Return Before Page Number

Post by UrsulaT »

Thanks for responding. I use the index tags as follows

Code: Select all

<indexterm>ButtonPads<indexterm>ICONDEMO</indexterm></indexterm>
They are often in a prolog tags like:

Code: Select all

	<prolog>
<metadata>
<keywords>
<indexterm>Deleting<indexterm>menu items</indexterm></indexterm>
<indexterm>Deleting<indexterm>menus</indexterm></indexterm>
<indexterm>Transport menus file</indexterm>
</keywords>
</metadata>
</prolog>
I reference the index in my ditamap like so:

Code: Select all

	<backmatter>
<booklists>
<indexlist/>
</booklists>
</backmatter>
The issue I have with the placement of the page numbers (below the ancestor and leaf index terms) happens when I press to PDF through Oxygen. We have a home-grown ditaot implementation that we are replacing, and I did not have this issue when pressing to PDF through that.

I am using RenderEX XEP 4.21 with Oxygen Author 14. I have looked through the DITA spec and can see nothing that would give me a hint as to what might be causing this. If you have any additional ideas or guesses, I would appreciate it.

Thank you,
Ursula
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

Re: PDF Index Entries Use Carriage Return Before Page Number

Post by Radu »

Hi Ursula,

I have a sample bookmap and I added a prolog exactly like the one you suggested in one of my topics:

Code: Select all

<prolog>
<metadata>
<keywords>
<indexterm>Deleting<indexterm>menu items</indexterm></indexterm>
<indexterm>Deleting<indexterm>menus</indexterm></indexterm>
<indexterm>Transport menus file</indexterm>
</keywords>
</metadata>
</prolog>
I published the bookmap to PDF using XEP 4.16 and an unmodified version of Oxygen Author 14.2 with an unmodified bundled DITA OT and the index page looked like this:

Image

Are you sure you did not add any customizations to the index-term related XSLT stylesheets DITA OT used for publishing?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
UrsulaT
Posts: 5
Joined: Fri Aug 23, 2013 5:32 pm

Re: PDF Index Entries Use Carriage Return Before Page Number

Post by UrsulaT »

Thank you Radu, for testing this. It is very helpful to me, as it points to an issue in our setup. I did not think that we have customizations that would affect the index, but we must have set something. I will check in with our other writers to see what has been customized that could affect how our index is being processed.

Again, thank you for taking the time to look at this, I very much appreciate it! I will investigate further.

Cheers
Ursula
Post Reply