Next / Previous / Contents / NM Tech homepage

11.5.2. The inline.smallcaps template

In order to get a true caps-and-small-caps font, it is necessary to name a specific font family as well as the correct font-variant. We use a free font called Latin Modern Roman just for its small-caps font. For the configuration details, see Section 14.2.7, “Latin Modern Roman”.

<!--inline.smallcaps: Select caps-and-small-caps font-->
<xsl:template name="inline.smallcaps">
  <xsl:param name="content">
  <fo:inline font-variant="small-caps" font-family="LatinModernRoman">
    <xsl:copy-of select="$content"/>