lout-users
[Top][All Lists]
Advanced

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

Re: Getting a List of Sections at Start of Chapters


From: Mark Summerfield
Subject: Re: Getting a List of Sections at Start of Chapters
Date: Mon, 30 Oct 2006 07:26:54 +0000
User-agent: KMail/1.9.4

On Sunday 29 October 2006 22:17, Jeff Kingston wrote:
> > one{} two{} three{} four{} five{} six{}
>
> This line is your main problem.  Named parameters need to be
> declared using the "named" keyword, so this should be
>
>     named one {}
>     named two {}

Oops. That was v. silly of me. Anyway, thanks to fixing this plus your
other comments I now have a definition that is quite simple---and that
works:


import @BookSetup 
def @ChapTop
    named one{}
    named two{}
    named three{}
    named four{}
    named five{}
    named six{}
    named address@hidden a71}
    right tag
{
    @Place x{1.5i}y{top - 0.5i - ysize}
        {{Bold address@hidden @NumberOf{tag}}
    @Place
        x{3.75i}
        y{top - 0.5i - ysize}
    4i @Wide {
        one @Case {
            {}   @Yield @Null
            else @Yield {bullet|0.8f @TitleOf{one}}
        }
        /1.2vx
        two @Case {
            {}   @Yield @Null
            else @Yield {bullet|0.8f @TitleOf{two}}
        }
        /1.2vx
        three @Case {
            {}   @Yield @Null
            else @Yield {bullet|0.8f @TitleOf{three}}
        }
        /1.2vx
        four @Case {
            {}   @Yield @Null
            else @Yield {bullet|0.8f @TitleOf{four}}
        }
        /1.2vx
        five @Case {
            {}   @Yield @Null
            else @Yield {bullet|0.8f @TitleOf{five}}
        }
        /1.2vx
        six @Case {
            {}   @Yield @Null
            else @Yield {bullet|0.8f @TitleOf{six}}
        }
    }
}



-- 
Mark Summerfield, Qtrac Ltd., www.qtrac.eu



reply via email to

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