Home Forums DITA and XMetaL Discussion TOPLEAF: Changing the appearance of Part and Chapter headings in PDF Reply To: TOPLEAF: Changing the appearance of Part and Chapter headings in PDF

tonys

Reply to: TOPLEAF: Changing the appearance of Part and Chapter headings in PDF

Sorry for the delay getting back to you.

The reason that there is no chapter mapping is that “chapter” inherits from “topicref”, so the topicref mapping is the one that is being used. If you look at the custom content for this mapping you'll see that one of the switch items matches if the class contains bookmap/chapter.

You can add your own chapter mapping, but since this will override the topicref mapping it will need to do all of the things that topicref does, such as reading the referenced topic file. It's probably better not to do this unless there's a good reason to do so.

In DITA 1.2 the navtitle attribute is deprecated, so it would be better to use the navtitle element. The topicref mapping sets the “Natvtitle” variable to the element if it exists, or the attribute if not. This should give you the desired result if you emit it as the right place. What I'm not sure about is how this relates to the title of the topic referenced by the chapter – what you need to do depends on whether the navtitle replaces it or adds to it.

Reply

Products
Downloads
Support