This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Section title PDF 'keep with next'
- From: Sean Wheller <sean at enbaya dot co dot za>
- To: docbook-apps at lists dot oasis-open dot org
- Cc: David Bocquet <david dot bocquet at cosytec dot com>
- Date: Tue, 12 Oct 2004 15:03:45 +0200
- Subject: Re: [docbook-apps] Section title PDF 'keep with next'
- Organization: enbaya
- References: <416BCD8D.9080002@cosytec.com>
- Reply-to: sean at enbaya dot co dot za
On Tuesday 12 October 2004 14:26, David Bocquet wrote:
> I'm using xsltproc and FOP to generate pdf output.
> I don't know what to do to avoid having section title at the bottom of
> the page. Normally it should always "stay" with the following paragraph.
> Is it a FOP problem, or am I missing a special parameter to handle this.
Are you using a custom layer?
If so then add the following template to it:
<xsl:template match="processing-instruction('pagebreak')">
<fo:block break-after="page"/>
</xsl:template>
Then add the following processing instruction to points where you want page
breaks to occur:
<?pagebreak?>
--
Sean Wheller
sean@enbaya.co.za
http://www.enbaya.co.za