From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89311 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: small abstracts in table of contents? Date: Tue, 25 Nov 2014 17:01:36 +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 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============1204128135==" X-Trace: ger.gmane.org 1416932365 32040 80.91.229.3 (25 Nov 2014 16:19:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2014 16:19:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 25 17:19:20 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 1XtIpi-0002gS-R3 for gctc-ntg-context-518@m.gmane.org; Tue, 25 Nov 2014 17:19:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4FF8D101E8 for ; Tue, 25 Nov 2014 17:19:18 +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 fZ3PK9ZssXB8 for ; Tue, 25 Nov 2014 17:19:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5279210242 for ; Tue, 25 Nov 2014 17:16:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E5ED5101EA for ; Tue, 25 Nov 2014 17:16:49 +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 o_Dil4z7sS53 for ; Tue, 25 Nov 2014 17:16:43 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 27BDC101FC for ; Tue, 25 Nov 2014 17:01:42 +0100 (CET) Original-Received: from mail.rna.nl (D57D7632.static.ziggozakelijk.nl [213.125.118.50]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sAPG1dNs022338 for ; Tue, 25 Nov 2014 17:01:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id EF2D1135BBF2 for ; Tue, 25 Nov 2014 17:01:38 +0100 (CET) X-Virus-Scanned: amavisd-new at rna.nl Original-Received: from mail.rna.nl ([127.0.0.1]) by localhost (vanroodewierda.rna.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZpAKoVzdLqqg for ; Tue, 25 Nov 2014 17:01:37 +0100 (CET) Original-Received: from luna.fritz.box (a82-93-73-222.adsl.xs4all.nl [82.93.73.222]) by mail.rna.nl (Postfix) with ESMTPSA id 4B5A9135BBD8 for ; Tue, 25 Nov 2014 17:01:37 +0100 (CET) In-Reply-To: <40954F6A-742B-4836-9509-C04F11A10882@gmail.com> X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.118.50; country=NL; region=North Brabant; city=Tilburg; latitude=51.5769; longitude=5.1063; http://maps.google.com/maps?q=51.5769,5.1063&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03NjQ1Dc2 - e0eacc488e01 - 20141125 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:89311 Archived-At: --===============1204128135== Content-Type: multipart/alternative; boundary="Apple-Mail=_E48883F5-4126-45B9-9646-3E862FA3ECEE" --Apple-Mail=_E48883F5-4126-45B9-9646-3E862FA3ECEE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 25 Nov 2014, at 15:12, Otared Kavian wrote: > 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. I tried \definelist[chaptertext] = \setuplist[chaptertext][style=3D\itx,margin=3D3em,pagecommand=3D\gobbleone= argument] \setuplist[chapter][style=3D\tfa,before=3D{\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=3D\itx,margin=3D3em,pagecommand=3D\gobbleone= argument] \setuplist[chapter][style=3D\tfa,before=3D{\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 >=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 > = __________________________________________________________________________= _________ --Apple-Mail=_E48883F5-4126-45B9-9646-3E862FA3ECEE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 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\g= obbleoneargument]
\setuplist[chapter][style=3D\tfa,before=3D{\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=3D\itx,margin=3D3em,pagecommand=3D\gobbleone= argument]
\setuplist[chapter][style=3D\tfa,before=3D{\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.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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

= --Apple-Mail=_E48883F5-4126-45B9-9646-3E862FA3ECEE-- --===============1204128135== 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= --===============1204128135==--