Is it possible to get the effect of splitting a box across page boundaries?

Mark Summerfield <[email protected]>
Newsgroups gmane.comp.type-setting.lout
Organization Qtrac Ltd.
Message-ID <20110321115725.48d60a1d@dino>
Hi,

I'd like a @Box that will split across page boundaries if, say, it is
too large to fit at the bottom of a page, rather than having the whole
box move to the next page.

Has anyone already done this; has anyone got any ideas how to do it (or
is it impossible)?

At the moment I have this:

import @BasicSetup 
def @CodeBox
    named topline{yes}
    named bottomline{yes}
    right x
{
    @Tbl
        rulevertical{yes}
        ruleabove{topline}
        rulebelow{bottomline}
        rulecolor{lightgray}
        rulewidth{1p}
        margin{3p}
        marginbelow{1p}
        break{lines 1vx blanklinescale 0.5}
        font{Venus Base 9p}
        paint{@VeryLightGrey}
        aformat{@Cell width{expand}A}
        strut{no}
    {
        @Rowa A{x}
    }
}
import @BasicSetup def @QG right XYZXYZWWWXYZ{
    @CodeBox {scopeState @Yield @Null}@SetContext{{XYZXYZWWWXYZ @Pipe{}}}
}


I use it like this:

@LD @QG{"lsnip filename @from %to"}

And this gives me a nice box with the extracted lines from the file. But
it won't split across page boundaries because the lines are treated as a
single object in a single row.

I've tried changing the @CodeBox to this:

    def @CodeBox
	...
    {
	@Tbl
	...
	{
	    x
	}
    }

and having my lsnip program return each line wrapped in @Rowa A{} but
lout choked on that.

Thanks!

-- 
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
    C++, Python, Qt, PyQt - training and consultancy
        "Advanced Qt Programming" - ISBN 0321635906
            http://www.qtrac.eu/aqpbook.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.