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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


Subject: 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




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