Apply different formatting to different TOC entry levels

Specify that different entry levels of the Table of Contents should have a different appearance.

As a refresher, if you’re not clear on how the PDF plugin determines TOC levels, take a look at Title levels in bookmaps and ditamaps.

  1. Copy the __toc__topic__content attribute set from DITA-OT/plugins/org.dita.pdf2/cfg/fo/attrs/toc-attr.xsl to your copy of toc-attr.xsl.

    Find the following section in that attribute set:

    <xsl:attribute-set name="__toc__topic__content"> <xsl:attribute name="last-line-end-indent">-22pt</xsl:attribute> <xsl:attribute name="end-indent">22pt</xsl:attribute> <xsl:attribute name="text-indent">-.2in</xsl:attribute> <xsl:attribute name="text-align">left</xsl:attribute> ...