Next in thread → Next in month →

Re: [docbook] Keeping Text Together in a Printed Document

From
Bob Stayton <>
Date
2005-02-25T19:35:01+00:00
ID
009e01c51b71$0c002e40$6b00a8c0@toshiro
Thread
Re: [docbook] Keeping Text Together in a Printed Document
I think he said he was using jade (DSSSL).

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Dave Pawson" <>
To: "David Ashley" <>
Cc: "Docbook List" <>
Sent: Friday, February 25, 2005 10:21 AM
Subject: Re: [docbook] Keeping Text Together in a Printed Document


> On Thu, 2005-02-24 at 14:39 -0600, David Ashley wrote:
> > How can I force DocBook to keep text in a <programlisting> together? 
> > Program listings can be broken by page breaks in a printed document by 
> > default and in some cases I would like to force the listing to be kept 
> > together on the same printed page. Is there a way to do this?
> 
> Yes. Either copy the programlisting into your driver file
> (the one you call from the command line)
> or amend the actual one (not advisable if you update)
> or
> if its a single transform, amend the fo output;
> 
> such that the fo:block has an attribute
> keep-together='always'
> or keep-together.within-page=''
> 
> http://www.w3.org/TR/xsl/slice7.html#keep-together
> 
> values can be 'always' or an integer (higher the stronger)
> 
> HTH DaveP
> 
> 
> 
>
Next in thread → Next in month →