This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] epigraph is not offset
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: <sds at gnu dot org>, <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 15 Nov 2004 09:29:17 -0800
- Subject: Re: [docbook-apps] epigraph is not offset
- References: <ufz3c8psd.fsf@gnu.org>
For FO output, you could customize the match="epigraph" template in
fo/block.xsl. Here is the original:
<xsl:template match="epigraph">
<fo:block>
<xsl:call-template name="anchor"/>
<xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
<xsl:if test="attribution">
<fo:inline>
<xsl:text>--</xsl:text>
<xsl:apply-templates select="attribution"/>
</fo:inline>
</xsl:if>
</fo:block>
</xsl:template>
As you can see, it is very simple. I think there are many ways to style an
epigraph, so the stylesheet chose a very plain style as the default.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Sam Steingold" <sds@gnu.org>
To: <docbook-apps@lists.oasis-open.org>
Sent: Sunday, November 14, 2004 6:32 AM
Subject: [docbook-apps] epigraph is not offset
> epigraph is not offset properly in either XHTML or FO.
>
<https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1063986&group_
id=21935>
>
> In XHTML, the solution turned out to be CSS:
>
> /* epigraph: flush right, large left margin */
> .epigraph { text-align: right; margin-left: 50%; }
>
> what do I do to achieve a similar effect with FO?
>
> Thanks!
>
> --
> Sam Steingold (http://www.podval.org/~sds) running w2k
> <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
> <http://www.mideasttruth.com/> <http://www.honestreporting.com>
> A year spent in artificial intelligence is enough to make one believe in
God.
>
>
>