lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Mark Summerfield
Subject: Is it possible to get the effect of splitting a box across page boundaries?
Date: Mon, 21 Mar 2011 11:57:25 +0000

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}
        address@hidden
        address@hidden width{expand}A}
        strut{no}
    {
        @Rowa A{x}
    }
}
import @BasicSetup def @QG right XYZXYZWWWXYZ{
    @CodeBox {scopeState @Yield @address@hidden @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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]