This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Bad page breaks and <beginpage/>
- From: Bob Stayton <bobs at sco dot com>
- To: Martin Stemplinger <mstemplinger at gmx dot de>
- Cc: "John W. Shipman" <john at nmt dot edu>,docbook-apps mailing list <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 12 Jun 2003 14:07:21 -0700
- Subject: Re: [docbook-apps] Bad page breaks and <beginpage/>
- References: <Pine.LNX.4.50.0306111527080.20483-100000@eldorado.nmt.edu> <usmqfkpw9.fsf@gmx.de>
On Thu, Jun 12, 2003 at 10:21:58PM +0200, Martin Stemplinger wrote:
> On Mi Jun 11 2003 at 23:31, "John W. Shipman" <john@nmt.edu> wrote:
>
> > But with our current DocBook production cycle (Modular
> > Stylesheets 1.60.1, xsltproc, and fop) I often get a page
> > break right between a section title or subsection title
> > and the following paragraph.
> >
> > Is there a reasonably easy solution to this problem?
>
> Here is a quick hack bob Stayton recommended some time ago on this
> list. Insert something like this where you want a page break:
>
> <?pagebreak?>
>
> And add this to your stylesheet customization layer:
>
> <xsl:template match="processing-instruction('pagebreak')">
> <fo:block break-after="page"/>
> </xsl:template>
This method is painful if you edit the document
and have to remove and insert new page breaks.
A better solution is to use an FO processor that handles
the keeps, such as XEP or AntennaHouse. You said you
wanted an easy solution, not a free solution. 8^)
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org