This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Font size/rendering of superscripts in PDF output
- From: "Paul A. Hoadley" <paulh at logicsquad dot net>
- To: Joachim Ziegler <ziegler at mpi-sb dot mpg dot de>
- Cc: docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 13 Feb 2004 15:48:20 +1030
- Subject: Re: [docbook-apps] Font size/rendering of superscripts in PDF output
- References: <402B5D4A.8040702@mpi-sb.mpg.de>
On Thu, Feb 12, 2004 at 12:02:34PM +0100, Joachim Ziegler wrote:
> is it possible to reduce the font size of superscripts in PDF output
> (using XSL styleshettes)?
Yes. Modify the 'format.footnote.mark' template. This is also where
you would implement David's suggestion. I find this works nicely:
<xsl:template name="format.footnote.mark">
<xsl:param name="mark" select="'?'"/>
<xsl:attribute name="line-height-shift-adjustment">
disregard-shifts</xsl:attribute>
<fo:inline vertical-align="super" font-size="60%">
<xsl:copy-of select="$mark"/>
</fo:inline>
</xsl:template>
The default font-size is 90%, which I find a little too large. The
xsl:attribute adds the line-height-shift-adjustment to the parent
block. I have not noticed this breaking anything else, but I also
have not tested it very widely.
--
Paul.
mailto:paulh@logicsquad.net
mailto:phoadley@maths.adelaide.edu.au
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.