On 15 November 2013 09:49, Tomek Kaczanowski <[email protected]>wrote:
> Hi All, > > I would like to control which of my listings could be divided by page > breaks (when generating PDFs) and which should be always rendered on one > page. I haven't found a good solution so far. > > I've read this old thread > https://groups.google.com/forum/#!searchin/asciidoc/break$20listing/asciidoc/vuINaIdR0Co/gsMBbNFi3EIJbut > it seems that the "unbreakable" option applies to tables and not to > listings (is it really so?). Or maybe there is some newer option that would > allow me to do that? > > Ideally I would like to be able to write this: > > [unbreakable] > ---- > this listing > won't be split > across many pages > ---- > > Any hints on how to achieve this? > It depends on the toolchain you are using, see the toolchain documentation (FAQ#3 is a good starting point) for any specific processing instruction that supports keep-together or some similar optiobn. Then you can add it to a custom listingblock configuration. Cheers Lex > > -- > Regards, > Tomek Kaczanowski > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/groups/opt_out.
