OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Font size/rendering of superscripts in PDF output



>is it possible to reduce the font size of superscripts in PDF output 
> (using XSL styleshettes)?

I'm using the following, and it is working nicely . . . not sure where 
I got it . . . probably the archives. Perhaps its author will 
recognize it and claim authorship? It is the very useful kind of 
thing we all need.

**********************
<!-- Controls the size of the superscript number denoting a footnote 
       -->
  <xsl:template name="format.footnote.mark">
    <xsl:param name="mark" select="'?'"/>
    <fo:inline font-size="80%">
      <xsl:choose>
        <xsl:when test="$fop.extensions != 0">
          <xsl:attribute name="vertical-align">super</xsl:attribute>
        </xsl:when>
        <xsl:otherwise>
          <xsl:attribute name="baseline-shift">super</xsl:attribute>
        </xsl:otherwise>
      </xsl:choose>
      <xsl:copy-of select="$mark"/>
    </fo:inline>
  </xsl:template>
***********************

Steve Whitlatch



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]