[NTG-context] in next beta

Hans Hagen pragma at wxs.nl
Tue Mar 8 11:22:50 CET 2016


On 3/7/2016 9:59 PM, Wolfgang Schuster wrote:
>> Hans Hagen <mailto:pragma at wxs.nl>
>> 4. März 2016 um 12:01
>> \starttext
>>
>>     \setuplistalternative
>>       [c]
>>       [filler=symbol,
>>        symbol=\hbox to .25em{\periodcentered},
>>        symcolor=darkred,
>>        symstyle=\bf]
>>
>>     \startsubject[title=Contents]
>>         \placelist[section][criterium=all,alternative=c]
>>     \stopsubject
>>
>>     \startsection[title=D. Ward]
>>         \input ward
>>     \stopsection
>>     \startsection[title=E.R. Tufte]
>>         \input tufte
>>     \stopsection
>>
>> \stoptext
> Is there a reason why you haven’t used the filler command from
> spac-flr.mkiv?

well, i then need to extend that mechanism a bit with spread, color, 
style and so .. you can check it in the next beta

\starttext

     \setuplistalternative[c][filler=sym] 
\placelist[chapter][alternative=c]
     \setuplistalternative[c][filler=symbol] 
\placelist[chapter][alternative=c]
     \setuplistalternative[c][filler=width] 
\placelist[chapter][alternative=c]
     \setuplistalternative[c][filler=space] 
\placelist[chapter][alternative=c]
     \setuplistalternative[c][filler=rule] 
\placelist[chapter][alternative=c]

     \definefiller
       [whatever]
       [symbol]
       [filler=symbol,
        symbol=\hbox to .25em{\periodcentered},
        color=darkred,
        style=\bf]

     \setuplistalternative[c][filler=whatever]
     \placelist[chapter][alternative=c]

     \chapter{test a}
     \chapter{test b}
     \chapter{test c}

\stoptext

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list