Re: [NTG-context] ToC problem
I found the cause of the problem there was a problem with the value I was passing to \chapter{} that prevented the chapter title from being shown in the ToC. I've a second ToC related question. Is it possible to more text to a ToC entry? As I want to list both chapter titles and the author. Something like: [chapter-title][author].....................................[page no.] Elliot
Elliot Clifton wrote:
I found the cause of the problem there was a problem with the value I was passing to \chapter{} that prevented the chapter title from being shown in the ToC.
I've a second ToC related question.
Is it possible to more text to a ToC entry? As I want to list both chapter titles and the author.
Here is a trick that may help: % in environment file: \setuphead[chapter][number=no] \definehead[Article][chapter] \setuphead[Article][number=no,placehead=no,before=,after=,page=] \definecombinedlist[Article][Article][alternative=c] \def\startArticle[#1]% {\begingroup \getparameters[Article][#1]% \chapter{\ArticleTitle}% this is typeset \Article{\ArticleTitle -- \ArticleAuthor}% this is the toc entry } \def\stopArticle% {\blank\rightline{\ArticleAuthor}\endgroup} % in text \starttext \placecombinedlist[Article] \startArticle[Author=Thor,Title=The title] ..... \stopArticle \stoptext
participants (2)
-
Elliot Clifton
-
Taco Hoekwater