lout-users
[Top][All Lists]
Advanced

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

table rows in a galley


From: Jennings, Jared L CTR USAF AFMC 46SK/CCI
Subject: table rows in a galley
Date: Wed, 1 Oct 2008 16:27:08 -0500

I want to send things into a galley which use symbols defined in the
scope which encloses the galley. This does not seem possible.

I'm making a report in Lout; the formatting of the report doesn't change
much but the contents do. So I'm trying to put the formatting in one
place and the content in another, consulting slidesf and slides as I
make a new document type. 

In particular, there's a table whose first row is always the same. I
want the invariant part of the table in the document type, and only its
contents in the document itself. Just as a normal document has a
FootPlace on a normal page, my document wants to have a place for data
rows for this table. But when I make a galley inside the table, things I
send to the galley don't have access to the scope of the table: for
example, @Rowa is undefined or misspelt.

A trivialized example follows.

---------
@SysInclude { doc }
def @FooGalley {
    @Galley
    @DP
    @FooGalley
}
export @Red @Blue
def @SpecialRed {
    def @Red right x { { red } @Colour x }
    def @Blue right x { { blue } @Colour x }
    @CurveBox {
        this is a @Red { special red } item
        @DP
        @FooGalley
    }
}
import @SpecialRed
def @FooItem into { @FooGalley&&preceding } right x { x }

@Doc @Text @Begin
4i @Wide 5i @High @Box @SpecialRed
@FooItem foo
@FooItem { @Red bar }
@End @Text
---------

erlang:~/reports $ lout -p foo
lout file "foo":
   25,12: symbol @Red unknown or misspelt







           this is a special red item

           foo

           @Red bar


---------

Is there any way to do what I'm trying to do?


reply via email to

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