[publican-list] How do I force a page break?
Jeff Fearn
jfearn at redhat.com
Tue Mar 5 02:28:15 UTC 2013
On 03/04/2013 08:44 AM, pelican at simsassociates.co.uk 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 <jfearn at redhat.com>
Senior Software Engineer
Infrastructure Engineering & Development (AEU)
Red Hat Asia Pacific Pty Ltd
GPG: 0x0357E8F0
More information about the publican-list
mailing list