This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: sub/superscript in Apache's FOP 0.20.4 does not work?
- From: Jeff Beal <jeff dot beal at ansys dot com>
- To: "'egonw at sci dot kun dot nl'" <egonw at sci dot kun dot nl>,DocBook-Apps ML <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 05 Aug 2002 09:20:46 -0400
- Subject: RE: DOCBOOK-APPS: sub/superscript in Apache's FOP 0.20.4 does not work?
Add these two templates to your XSL customization layer to get
sub/superscripts in FOP:
<xsl:template name="inline.superscriptseq">
<xsl:param name="content">
<xsl:apply-templates/>
</xsl:param>
<fo:inline font-size="90%">
<fo:inline vertical-align="super">
<xsl:copy-of select="$content"/>
</fo:inline>
</fo:inline>
</xsl:template>
<xsl:template name="inline.subscriptseq">
<xsl:param name="content">
<xsl:apply-templates/>
</xsl:param>
<fo:inline font-size="90%">
<fo:inline vertical-align="sub">
<xsl:copy-of select="$content"/>
</fo:inline>
</fo:inline>
</xsl:template>
-----Original Message-----
From: Egon Willighagen [mailto:egonw@sci.kun.nl]
Sent: Sunday, August 04, 2002 4:32 AM
To: Bob Stayton; DocBook-Apps ML
Subject: Re: DOCBOOK-APPS: sub/superscript in Apache's FOP 0.20.4 does
not work?
On Sunday 04 August 2002 10:17, Bob Stayton wrote:
> On Sat, Aug 03, 2002 at 01:57:29PM +0200, Egon Willighagen wrote:
> > Is this 'normal' behaviour? Do others get PDFs with proper
> > sub/superscripts? What should I do to get things superscripted in PDF?
>
> The 'baseline-shift' property is not on the list of
> supported properties in FOP:
>
> http://xml.apache.org/fop/implemented.html
Ack. Is there no other way to do superscript in Apache's FOP then?
> You might try one of the jade toolkits, as PassiveTeX
> seems to not work with the latest stylesheets.
I will try openjade then.
Egon