XML technologies / DocBook / Generating FO (PDF) / Customizing title pages / Customizing title pages for encyclopedias

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

If you create an encyclopedia based on glossary, you need the named template glossdiv.titlepage.recto. In the following example, each glossdiv entry creates a break so that the entries appear in the next column.

Example: Break for a glossdiv in an encyclopedia

<xsl:template name="glossdiv.titlepage.recto">
    <fo:block break-before="column">
        <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="(d:title | d:info/d:title )[1]"/>
    </fo:block>
</xsl:template>

In the attribute break-before replace the value column with page, and the break moves to the next page. To customize the glossary title, modify glossary.titlepage.recto.

In addition to the customization above, set the following parameters:

<xsl:param name="body.font.master">8</xsl:param>
<xsl:param name="glossary.as.blocks" select="1"/>
<xsl:param name="glossentry.show.acronym">primary</xsl:param>

This reduces the font size and formats a glossary as a block rather than a list. The final parameter glossentry.show.acronym with the value primary displays acronyms as the main entry.

  

back to top