On 25 Nov 2014, at 15:12, Otared Kavian <ota...@gmail.com> wrote:

> Hi Gerben,
> 
> This shouldn’t be a problem, since you may give your own style to the list of 
> chapters by saying for example
> 
>       \setuplist[chapter][style=\bf]
> 
> or whatever style you wish.

I tried

\definelist[chaptertext]
\setuplist[chaptertext][style=\itx,margin=3em,pagecommand=\gobbleoneargument]
\setuplist[chapter][style=\tfa,before={\blank[big]}]

but what happens in the TOC is:
- Chapter numbers and page numbers are \tfa
- Chapter name seems \it
- Chapter text is \itx

In other words, the \itx command for chaptertext influences the style of chapter

G

Minimal example:

\definelist[chaptertext]
\setuplist[chaptertext][style=\itx,margin=3em,pagecommand=\gobbleoneargument]
\setuplist[chapter][style=\tfa,before={\blank[big]}]

\starttext

\placelist[chapter,chaptertext]

\chapter{This is a chapter}

\writetolist[chaptertext]{}{This is a small description of this chapter:
\input ward }

\input knuth.tex

\chapter{This is a chapter}

\writetolist[chaptertext]{}{This is a small description of this chapter:
\input ward }

\input knuth.tex

\chapter{This is a chapter}

\writetolist[chaptertext]{}{This is a small description of this chapter:
\input ward }

\input knuth.tex

\stoptext


> 
> Best regards: OK
> 
>> On 25 Nov 2014, at 14:49, Gerben Wierda <gerben.wie...@rna.nl> wrote:
>> 
>> This works, but not completely. I’ve added this to my environments file:
>> 
>> \definelist[chaptertext]
>> \setuplist[chaptertext][style=\itx,margin=3em,pagecommand=\gobbleoneargument]
>> 
>> and the contents list is created by
>> 
>>         \title[h:toc]{Contents}
>>         \placelist[chapter,chaptertext]
>>      %\completecontent[level=chapter]
>> 
>> The %-outcommented was the original list. In the chapter file, it now says
>> 
>> \chapter[h:foo]{Foo}
>> \writetolist[chaptertext]{}{\input tufte}
>> 
>> The effect of this is that every chapter name in the list is typeset as 
>> \itx, not just the summary chaptertext. The chapter numbers are still in 
>> their original font and size.
>> 
>> G
>> 
>> On 25 Nov 2014, at 08:18, Otared Kavian <ota...@gmail.com> wrote:
>> 
>>> Hi Gerben,
>>> 
>>> As Wolfgang said, you can use something like this (example given by him 
>>> some months ago on the mailing list):
>>> 
>>> \definelist[chaptertext]
>>> \setuplist[chaptertext][style=\tfx,margin=3em,pagecommand=\gobbleoneargument]
>>> 
>>> \starttext
>>> 
>>> \placelist[chapter,chaptertext]
>>> 
>>> \chapter{This is a chapter}
>>> 
>>> \writetolist[chaptertext]{}{This is a small description of this chapter: 
>>> \input ward }
>>> 
>>> \input knuth.tex
>>> 
>>> \stoptext
>>> 
>>> Best regards: OK
>>> 
>>>> On 25 Nov 2014, at 00:41, Gerben Wierda <gerben.wie...@rna.nl> wrote:
>>>> 
>>>> I have a standard ToC, but what I’d like to have is that each chapter item 
>>>> (I don’t go lower than that in the hierarchy) comes with its own little 
>>>> abstract.Is that possible?
>>>> 
>>>> G
>>>> ___________________________________________________________________________________
>>>> 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  : http://foundry.supelec.fr/projects/contextrev/
>>>> wiki     : http://contextgarden.net
>>>> ___________________________________________________________________________________
>>> 
>>> ___________________________________________________________________________________
>>> 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  : http://foundry.supelec.fr/projects/contextrev/
>>> wiki     : http://contextgarden.net
>>> ___________________________________________________________________________________
>> 
>> ___________________________________________________________________________________
>> 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  : http://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to