OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


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


I think he said he was using jade (DSSSL).

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Dave Pawson" <davep@dpawson.co.uk>
To: "David Ashley" <dashley@us.ibm.com>
Cc: "Docbook List" <docbook@lists.oasis-open.org>
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
> 
> 
> 
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]