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
Reply to: TOPLEAF: Changing the appearance of Part and Chapter headings in PDFMarch 19, 2013 at 4:12 am
I'm assuming you are using the standard DITAmap stylesheet that came with the (TopLeaf) Plugin. This makes several attempts to get the title from various locations, but the number of ways you can specify a title in DITA means that a stylesheet which tried every possibility would be excessively complex.
To try to simplify things a little the stylesheet generates on-the-fly tags (called custom markers). These custom elements actually control the formatting of the titles, so any format changes only have to be made in a single mapping.
What we then need to do is to cause the appropriate elements in the actual document to generate this custom content.
Say you have an element in your DITA map:
Then in the chapter mapping, you put the following into the Pre-content box of the Custom tab:
This causes the text of the navtitle attribute to be rendered as a chapter title.
Let me know if this info was helpful, or send me a more detailed request if it isn't.