From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89313 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: small abstracts in table of contents? Date: Tue, 25 Nov 2014 17:37:09 +0100 Message-ID: References: <6FC5D775-DC08-44C2-955E-1568A97CFB73@gmail.com> <4DD23F4E-6762-489A-AA05-916776866C44@rna.nl> <40954F6A-742B-4836-9509-C04F11A10882@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/mixed; boundary="===============0120098603==" X-Trace: ger.gmane.org 1416934358 2656 80.91.229.3 (25 Nov 2014 16:52:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2014 16:52:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 25 17:52:33 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XtJLo-0004ii-HZ for gctc-ntg-context-518@m.gmane.org; Tue, 25 Nov 2014 17:52:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8DF901021B for ; Tue, 25 Nov 2014 17:52:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mBT10DHat9SM for ; Tue, 25 Nov 2014 17:52:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6FA51101EF for ; Tue, 25 Nov 2014 17:51:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D6FB101FD for ; Tue, 25 Nov 2014 17:51:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id X6ZBqUQYR5LB for ; Tue, 25 Nov 2014 17:51:35 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 9DA55101E8 for ; Tue, 25 Nov 2014 17:37:12 +0100 (CET) Original-Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sAPGbBMl016339 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 25 Nov 2014 17:37:11 +0100 Original-Received: by mail-wi0-f182.google.com with SMTP id h11so2079988wiw.3 for ; Tue, 25 Nov 2014 08:37:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=0cbCrxOna+SidX/t9wsPVIZp3PtVBJyAj0XD0qSFSBE=; b=eFjwTRQ7EMJ4TBfPYfCNKH4rJ9QiVXaXC/QfJI3npDCo7326st3mkl/QsgLms4PnxZ F+muoswRNyVI3KiaDw/vVJLpMGiQo6jRU8Ireda/C8wQmu3kftiPnidAkHo2NWqt54e2 OhIMxg7W8bSabHhquaFJ9oni2cZEjgZnBbctLhkO7mtIux4YTO9S7oP3iC5Wz8MPvkRY ALaT6Supox0akNfHy5K8GL3/UR08w8UK9+a19qXM324gPBCjcaQ3/YXu7MjVEPGI5kjZ yd/FL7shLHRa0HcjWtfx4A+ZISOiHSgLRA6BbVgL4n92MMALKZ0xvHKFUijsCKysS244 Ji0w== X-Received: by 10.180.39.65 with SMTP id n1mr33296165wik.13.1416933430866; Tue, 25 Nov 2014 08:37:10 -0800 (PST) Original-Received: from [147.94.234.217] ([147.94.234.217]) by mx.google.com with ESMTPSA id td9sm3494769wic.15.2014.11.25.08.37.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Nov 2014 08:37:10 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1993) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::236; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TNjQBbLd - 4cb806f2fb06 - 20141125 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89313 Archived-At: --===============0120098603== Content-Type: multipart/alternative; boundary="Apple-Mail=_3A0EED78-2E6E-4167-B7E4-03AA9721B00E" --Apple-Mail=_3A0EED78-2E6E-4167-B7E4-03AA9721B00E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Gerben, Sorry for not having been more cautious: what I sent you works fine with = mkiv, but somehow in mkii giving a style for your list of =AB = chaptertext =BB spills over to the list of =AB chapter =BB=85 The following seems to give your desired result in mkii: \definelist[chaptertext] \setuplist[chaptertext][pagecommand=3D\gobbleoneargument] = \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}= \starttext \placelist[chapter,chaptertext] \chapter{This is a chapter} \ChapterAbstract{This is a small description of this chapter: \input = ward } \input knuth.tex \stoptext Best regards: OK > On 25 Nov 2014, at 17:01, Gerben Wierda wrote: >=20 > On 25 Nov 2014, at 15:12, Otared Kavian > wrote: >=20 >> Hi Gerben, >>=20 >> This shouldn=92t be a problem, since you may give your own style to = the list of chapters by saying for example >>=20 >> \setuplist[chapter][style=3D\bf] >>=20 >> or whatever style you wish. >=20 > I tried >=20 > \definelist[chaptertext] > = \setuplist[chaptertext][style=3D\itx,margin=3D3em,pagecommand=3D\gobbleone= argument] > \setuplist[chapter][style=3D\tfa,before=3D{\blank[big]}] >=20 > but what happens in the TOC is: > - Chapter numbers and page numbers are \tfa > - Chapter name seems \it > - Chapter text is \itx >=20 > In other words, the \itx command for chaptertext influences the style = of chapter >=20 > G >=20 > Minimal example: >=20 > \definelist[chaptertext] > = \setuplist[chaptertext][style=3D\itx,margin=3D3em,pagecommand=3D\gobbleone= argument] > \setuplist[chapter][style=3D\tfa,before=3D{\blank[big]}] >=20 > \starttext >=20 > \placelist[chapter,chaptertext] >=20 > \chapter{This is a chapter} >=20 > \writetolist[chaptertext]{}{This is a small description of this = chapter: > \input ward } >=20 > \input knuth.tex >=20 > \chapter{This is a chapter} >=20 > \writetolist[chaptertext]{}{This is a small description of this = chapter: > \input ward } >=20 > \input knuth.tex >=20 > \chapter{This is a chapter} >=20 > \writetolist[chaptertext]{}{This is a small description of this = chapter: > \input ward } >=20 > \input knuth.tex >=20 > \stoptext >=20 >=20 >>=20 >> Best regards: OK >>=20 >>> On 25 Nov 2014, at 14:49, Gerben Wierda > wrote: >>>=20 >>> This works, but not completely. I=92ve added this to my environments = file: >>>=20 >>> \definelist[chaptertext] >>> = \setuplist[chaptertext][style=3D\itx,margin=3D3em,pagecommand=3D\gobbleone= argument] >>>=20 >>> and the contents list is created by >>>=20 >>> \title[h:toc]{Contents} >>> \placelist[chapter,chaptertext] >>> %\completecontent[level=3Dchapter] >>>=20 >>> The %-outcommented was the original list. In the chapter file, it = now says >>>=20 >>> \chapter[h:foo]{Foo} >>> \writetolist[chaptertext]{}{\input tufte} >>>=20 >>> 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. >>>=20 >>> G >>>=20 >>> On 25 Nov 2014, at 08:18, Otared Kavian > wrote: >>>=20 >>>> Hi Gerben, >>>>=20 >>>> As Wolfgang said, you can use something like this (example given by = him some months ago on the mailing list): >>>>=20 >>>> \definelist[chaptertext] >>>> = \setuplist[chaptertext][style=3D\tfx,margin=3D3em,pagecommand=3D\gobbleone= argument] >>>>=20 >>>> \starttext >>>>=20 >>>> \placelist[chapter,chaptertext] >>>>=20 >>>> \chapter{This is a chapter} >>>>=20 >>>> \writetolist[chaptertext]{}{This is a small description of this = chapter: \input ward } >>>>=20 >>>> \input knuth.tex >>>>=20 >>>> \stoptext >>>>=20 >>>> Best regards: OK >>>>=20 >>>>> On 25 Nov 2014, at 00:41, Gerben Wierda > wrote: >>>>>=20 >>>>> I have a standard ToC, but what I=92d like to have is that each = chapter item (I don=92t go lower than that in the hierarchy) comes with = its own little abstract.Is that possible? >>>>>=20 >>>>> G >>>>> = __________________________________________________________________________= _________ >>>>> If your question is of interest to others as well, please add an = entry to the Wiki! >>>>>=20 >>>>> 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 >>>>> = __________________________________________________________________________= _________ >>>>=20 >>>> = __________________________________________________________________________= _________ >>>> If your question is of interest to others as well, please add an = entry to the Wiki! >>>>=20 >>>> 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 >>>> = __________________________________________________________________________= _________ >>>=20 >>> = __________________________________________________________________________= _________ >>> If your question is of interest to others as well, please add an = entry to the Wiki! >>>=20 >>> 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 >>> = __________________________________________________________________________= _________ >>=20 >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> 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 >> = __________________________________________________________________________= _________ >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_3A0EED78-2E6E-4167-B7E4-03AA9721B00E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi Gerben,

Sorry for not having been more cautious: what I sent you = works fine with mkiv, but somehow in mkii giving a style for your =  list of =AB chaptertext =BB spills over to the list of =AB chapter = =BB=85

The = following seems to give your desired result in mkii:

\definelist[chaptertext]
\setuplist[chaptertext][pagecommand=3D\gobbleoneargument]
=
\define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\i= tx#1\stop}}
\starttext

\placelist[chapter,chaptertext]

\chapter{This is a = chapter}

\ChapterAbstract{This is a small description of this chapter: = \input ward }

\input knuth.tex

\stoptext

Best regards: OK

On = 25 Nov 2014, at 17:01, Gerben Wierda <Gerben.Wierda@RnA.nl> wrote:

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

Hi Gerben,

This shouldn=92t be a = problem, since you may give your own style to the list of chapters by = saying for example

= \setuplist[chapter][style=3D\bf]

or whatever style you = wish.

I tried

\definelist[chaptertext]
\setuplist[chaptertext][style=3D\itx,margin=3D3em,pagecommand=3D= \gobbleoneargument]
\setuplist[chapter][style=3D\tfa,before=3D{\blank[big]}]
<= div class=3D"">
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=3D\itx,margin=3D3em,pagecommand=3D= \gobbleoneargument]
\setuplist[chapter][style=3D\tfa,before=3D{\blank[big]}]
<= div class=3D"">
\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.Wierda@RnA.nl> wrote:

This works, = but not completely. I=92ve added this to my environments file:

\definelist[chaptertext]
\setuplist[chaptertext][style=3D\itx,margin=3D3em,pagecommand=3D= \gobbleoneargument]

and the contents list is created by

    =     \title[h:toc]{Contents}
    =     \placelist[chapter,chaptertext]
= %\completecontent[level=3Dchapter]

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 = <otared@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=3D\tfx,margin=3D3em,pagecommand=3D= \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.Wierda@RnA.nl> wrote:

I have a standard ToC, but what I=92d like to have is that = each chapter item (I don=92t 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
_______________________________________________________________= ____________________

= --Apple-Mail=_3A0EED78-2E6E-4167-B7E4-03AA9721B00E-- --===============0120098603== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0120098603==--