← Prev in month ← Prev in thread

RE: [docbook] PDF :: programlisting overflow

From
Mauritz Jeanson <>
Date
2008-09-12T17:25:12+00:00
ID
D9B904C04BB9443D85BE18E5434C42C1@D7MZ171J
Thread
RE: [docbook] PDF :: programlisting overflow
> -----Original Message-----
> From: Michael Schmalle 
> 
> I have an example that is about 200 lines long and it looks 
> terrible in the pdf. The source code is overlapping the top 
> of the page and the section title.
> 
> It looks as though the listing is anchored to the bottom of 
> the page and the source actually overflows the top of the 
> page. Kinda backwards from what I would expect.
> 
> code:
> 
> <example>
>   <title>MXML Example 2</title>
>   <programlisting ><textobject><textdata 
> entityref="white-board.mxml"/></textobject></programlisting>
> </example>


[Moving to docbook-apps, which is the appropriate list for stylesheet
issues]

It's hard to be sure, but it might be enough to add a processing
instruction, as follows:

 <example>
  <?dbfo keep-together="auto"?>
   <title>MXML Example 2</title>
   <programlisting ><textobject><textdata 
   entityref="white-board.mxml"/></textobject></programlisting>
 </example>

For more information, see
http://www.sagehill.net/docbookxsl/PageBreaking.html

Mauritz
← Prev in month ← Prev in thread