[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) 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]