On Mon, Apr 14, 2008 at 10:06 PM, Henning Hraban Ramm <[EMAIL PROTECTED]> wrote: > Ahoi! > > In a volume of proceedings, each chapter has an author and title and > sometimes a subtitle. > The ToC entry should look like: > > Author: Title \hfill Page > (no indents!) > > At the moment I've this setup: > > --- > > \def\Titel#1#2#3{% author, title, subtitle > \page% > {\writebetweenlist[chapter]{\placeongrid{\noindent #1:}} > \switchtobodyfont[12pt]\noindent #1% > \chapter{\noindent #2}% > {\ss\bf #3}% > \blank[2*big]}% > } > > \setuphead[chapter][page=no, number=no, align= > {flushleft,nothyphenated,verytolerant}, style={\ss\bfa}, before={}, > after={\blank}] > > \definecombinedlist[toc][chapter][level=chapter, placehead=no, > criterium=all, alternative=b, offset=none] > \setupcombinedlist [toc] [partnumber=no] > > --- > > Please don't cry, I know it's ugly... ;-) > > What it does is close, but nood good enough. > > - Is there a way to use the normal chapter (or any head) mechanism > with such "feathered" titles? > - How do I get my special ToC?
Try this. \unprotect \resetvalue{\??sw\v!chapter} \startsetups chapter:list \doifsomething{\sectionworldparameter\c!author} {\expanded{\writetolist[\v!chapter] {\sectionworldparameter\c!author:\space \sectionworldparameter\c!text}{}}} \def\ChapterSubTitle{\sectionworldparameter\c!subtitle} \stopsetups \setupsectionworld [chapter] [setups={chapter:list}, author=] \def\ChapterCommand#1#2% {\vbox{#2\crlf\ChapterSubTitle}} \let\ChapterSubTitle\relax \protect \setuphead [chapter] [incrementnumber=no, command=\ChapterCommand] \starttext \completecontent \startsectionworld[chapter][author=Hans,text=Chapter One,subtitle=The Beginning] \startsectionworld[chapter][author=Tom,text=Chapter Two,subtitle=The End] \stopsectionworld \stopsectionworld \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________