On Mon, Jun 16, 2008 at 8:45 PM, Maurício <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm typesetting a book where prose and verse alternate in
> chapters, i.e., you have one chapter of prose, one of verse, one
> of prose etc.
>
> I would like to generate a TOC for that book, but chapters have no
> name or numbers. I was told by the author that the usual thing to
> do is to take the first few words of each chapter and use those in
> the index.
>
> I know how to do that using a few small tricks, but I would like
> to know if there's a standard way to do that. Are you aware of
> any?
\defineselector[title][max=2,n=2]
\setuplist
[chapter]
[width=0pt]
\setuphead
[chapter]
[number=no,
incrementnumber=list]
\starttext
\start
\setupselector[title][n=1]
\completecontent
\stop
\chapter{\select{title}{Short header}{Long header version}}
\chapter{\select{title}{Another header}{Another long version for the text}}
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________