This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Font size/rendering of superscripts in PDF output
- From: Steve Whitlatch <swhitlat at getnet dot net>
- To: Joachim Ziegler <ziegler at mpi-sb dot mpg dot de>,docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Sat, 14 Feb 2004 01:01:37 -0700
- Subject: [docbook-apps] Font size/rendering of superscripts in PDF output
- Organization: Steve Whitlatch, Inc.
- Reply-to: swhitlat at getnet dot net
>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/.