Changes

Jump to navigation Jump to search
no edit summary
With the new head syntax (MkIV) one can easy add information An example on how to chapters, sections, etcgenerate a sorted list of all authors contributed to a conference proceeding.
Here is an example from Wolfgang Schuster (<texcode>\setuphead [http://archive.contextgarden.net/message/20100919.163604.e1f8cb40.en.htmltitle] [page=no,command=,])
<texcode>\setuphead\define [3chapter]\ChapterList {\bTABLE [offset=0pt,strut=yes,frame=off,widthcommand=.5\textwidthMyChapCMD] \bTR \bTD \structurelistuservariable{date} \eTD \bTD #2 \eTD \bTD (\structurelistuservariable{author}) \eTD \eTR \eTABLE}
\setuplist
[chapter]
[criterium=all,alternative=command,command=\MyChapListCMD] \definesorting[author][authors]\setupsorting [author][criterium=all,expansion=yes] \define[2]\MyChapCMD {#1\enspace #2 command{\doifsomething {\structureuservariable{author}} {\author [\structureuservariable{name}] % -> sorted by "name"-variable {\bTABLE[width=broad] \bTR \bTD \structureuservariable{author} \eTD \bTD \structureuservariable{city} \eTD \bTD \structureuservariable{date} \eTD \bTD \structureuservariable{email} \eTD \bTD \structureuservariable{note} \eTD \eTR \eTABLE\nointerlineskip}% \tfxx (\structureuservariable{author}, \structureuservariable{city})}}} \define[3]\MyChapListCMD {#1 #2 (\structurelistuservariable{author})\hfill #3\blank}  \starttext \ChapterListshowframe[text]
\definestarttitle[2title=Contents]\ChapterHead {\startframedtextplacelist[frame=off,width=broad,offset=0pt,align=middlechapter] \doifsomething {\structureuservariable{date}} {\structureuservariable{date}\blank} #2 \doifsomething {\structureuservariable{author}} {\blank\structureuservariable{author}} \stopframedtext}stoptitle
\setupheadstarttitle[title=List of Authors in Alphabetical Order] \placelistofsorts[author][chapterauthors]\stoptitle \startchapter [commandtitle=Text by Ward] [name=ward, author=Peter D. Ward, city=Washington, email=ward@sample.com]  \ChapterHead]input ward\stopchapter
\startchapter
[title=Text by Zapf]
[name=zapf,
author=Hermann Zapf,
city=Nürnberg,
date=8. November 1918,
email=zapf@sample.de]
\starttextinput zapf\stopchapter
\completecontentstartchapter [title=Text by Bryson] [name=bryson, author=Bill Bryson, city=Norfolk, date={December 8, 1951}, note=best-selling American author]
\startchapter[title=Rom][date=12.06.2010,author=Knuth] \input knuthBryson
\stopchapter
\startchapter [title=PisaText by Tufte] [datename=14.06.2010tufte, author=Edward R. Tufte, city=Kansas City, date=1942, note=has criticized the way Microsoft PowerPoint is typically used
\input tufte
\stopchapter
\stoptext
 </texcodetechcode>
12

edits

Navigation menu