On 03/04/2013 08:44 AM, [email protected] wrote:
I have a sample code listing in my DOCBOOK document. When built, the code
listing starts near the end of a page, and continues on the next page. I'd
really like the listing to appear "unbroken", all on one page, not split
across two pages.
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?
If you are using wkhtmltopdf, you can set the role attribute in almost
any tag to 'pdf-break' and it will force a page break before that object
in the PDF.
e.g.
<programlisting role='pdf-break' language="XML">...
It's not tested a lot so you might have to get creative.
Also, someone should document all the stuff in my head!
Cheers, Jeff..
--
Jeff Fearn <[email protected]>
Senior Software Engineer
Infrastructure Engineering & Development (AEU)
Red Hat Asia Pacific Pty Ltd
GPG: 0x0357E8F0
_______________________________________________
publican-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/publican-list
Wiki: https://fedorahosted.org/publican