This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] 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


To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]