Am 19.09.2010 um 17:44 schrieb Andreas Harder:
Hi all!
I’m using the structureuservariable to set an author on a per chapter basis. But I would also like to have them in the table of contents, so I tried the following:
[...]
… without success. I appreciate any help.
Hi Andreas, your question comes just in time, here is a example i planned to send to Harald only. \define[3]\ChapterList {\bTABLE[offset=0pt,strut=yes,frame=off,width=.5\textwidth] \bTR \bTD \structurelistuservariable{date} \eTD \bTD #2 \eTD \eTR \eTABLE} \setuplist [chapter] [alternative=command, command=\ChapterList] \define[2]\ChapterHead {\startframedtext[frame=off,width=\textwidth,offset=0pt,align=middle] \doifsomething{\structureuservariable{date}}{\structureuservariable{date}\blank} #2 \doifsomething{\structureuservariable{author}}{\blank\structureuservariable{author}} \stopframedtext} \setuphead [chapter] [command=\ChapterHead] \starttext \completecontent \startchapter[title=Rom][date=12.06.2010,author=Knuth] \input knuth \stopchapter \startchapter[title=Pisa][date=14.06.2010,author=Tufte] \input tufte \stopchapter \stoptext Wolfgang