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

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)
if its a single transform, amend the fo output;

such that the fo:block has an attribute
or keep-together.within-page=''


values can be 'always' or an integer (higher the stronger)


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