[Top][All Lists]

[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 08:08:05 +0000
User-agent: KMail/1.9.4

Using @List gives a much nicer definition, and works better when section
titles are too wide to fit on one line.

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.125i}y{top - 0.5i - ysize}
        {{Bold address@hidden @NumberOf{tag}}
        y{top - 0.5i - ysize}
    2.75i @Wide {
            break{nohyphen ragged}
        one @Case {
            {}   @Yield @Null
            else @Yield address@hidden@TitleOf{one}}}
        two @Case {
            {}   @Yield @Null
            else @Yield address@hidden@TitleOf{two}}}
        three @Case {
            {}   @Yield @Null
            else @Yield address@hidden@TitleOf{three}}}
        four @Case {
            {}   @Yield @Null
            else @Yield address@hidden@TitleOf{four}}}
        five @Case {
            {}   @Yield @Null
            else @Yield address@hidden@TitleOf{five}}}
        six @Case {
            {}   @Yield @Null
            else @Yield address@hidden@TitleOf{six}}}

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

reply via email to

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