Re: table rows in a galley

[email protected] (Ludovic Courtès)
Newsgroups gmane.comp.type-setting.lout
Message-ID <[email protected]>
Hi,

"Jennings, Jared L CTR USAF AFMC 46SK/CCI"
<[email protected]> writes:

> ---------
> @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
>
>
> ---------

It's the invocation "@FooItem { @Red bar }" that fails: `@Red' is not a
globally visible symbol.  Instead, you should write, e.g.,
"@FooItem { @SpecialRed @Open { @Red bar } }" so that `@Red' is actually
visible at the invocation site.

(That doesn't answer the rest of your message, but we'll see that
later.  ;-))

Ludo'.
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.