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 }
> @SysInclude { tbl }
>
> def @FooGalley { @Galley @FooGalley }
> def @MyTbl {
>     @Tbl rh { yes } w { expand }
>          aformat { @Cell A | @Cell B }
>     {
>         @Rowa A { country } B { population }
>         @FooGalley
>     }
> }
> def @Country into { @FooGalley&&preceding }
>         named name {} named population {} {
>     @Tbl {} @Open { @Rowa A { name } B { population } } }
> @Doc @Text @Begin
> @DP stuff @DP
> 4i @Wide 5i @High @MyTbl
> @DP other stuff
> @Country name { Molduria } population { 103 }
> @End @Text
>
> ---------
>
> Errors:
>
> first run after rm *.ld *.li:
> lout file "foo":
>     20,1: no @FooGalley galley target precedes this
> @FooGalley&&preceding

There must be an `@FooGalley' invocation at some point before the
`@Country' invocation, otherwise `@Country' has no galley to get in.

(Esthetically, you could handle this by having an `@BeginCountries'
symbol that invokes `@FooGalley'.)

Thanks,
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.