This doc seems to suggest that's how you do it with <programlisting> tags.

http://www.sagehill.net/docbookxsl/ProgramListings.html

Rick

On Mon, Mar 4, 2013 at 7:48 AM, Oliver Sims <
[email protected]> wrote:

> **
> Hi Mark,
>
> FYI - got this back from the Publican list:
>
>
> On Sun, Mar 03, 2013 at 10:44:22PM -0000, [email protected]:
> > Is it possible to force a page-break just before the code listing so
> > that it appears all together, unbroken, at the top of the next page?
>
> This may be helpful:
> *http://www.sagehill.net/docbookxsl/PageBreaking.html*<http://www.sagehill.net/docbookxsl/PageBreaking.html>
>
> - -Eric
>
> I checked it out and at first glance it's quite complicated. No time to
> try it now - maybe sometime later.
>
> --
> Oliver Sims
>
>  ------------------------------
> *From:* Mark Miesfeld [mailto:[email protected]]
> *Sent:* 03 March 2013 18:21
> *To:* Open Object Rexx Developer Mailing List
> *Subject:* Re: [Oorexx-devel] Docbook - keeping code sample on the same
> page
>
> On Sun, Mar 3, 2013 at 4:14 AM, Oliver Sims <
> [email protected]> wrote:
>
>> **
>> Is there any way in DocBook to prevent a code sample from splitting over
>> a page end? That is, a way to keep a code block
>> (i.e. <![CDATA[ ... ]]>) all on the same page?
>>
>
> As far as I know, there is no way to do that.  That is why I changed all
> the old IBM railroad track diagrams to the format I'm using now in
> oodialog.pdf.
>
> There may be a way to do it in Publican.  Again, the best bet might be to
> ask these types of question on the Publican user list.
>
> --
> Mark Miesfeld
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to