From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88833 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: authors in the toc Date: Fri, 03 Oct 2014 13:00:29 -0400 Message-ID: <542ED62D.8090407@rik.users.panix.com> References: <7157117C-6049-46B1-8B35-D8C86357D78E@gmail.com> <1FA19636-43F9-4282-9E7F-1EECE455B001@di.unito.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1887755635==" X-Trace: ger.gmane.org 1412355679 10400 80.91.229.3 (3 Oct 2014 17:01:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2014 17:01:19 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 03 19:01:13 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 1Xa6ED-000842-9w for gctc-ntg-context-518@m.gmane.org; Fri, 03 Oct 2014 19:01:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD57710209 for ; Fri, 3 Oct 2014 19:01:12 +0200 (CEST) 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 lzKv9cQMImrW for ; Fri, 3 Oct 2014 19:01:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9C8591024C for ; Fri, 3 Oct 2014 19:00:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1EA6E10209 for ; Fri, 3 Oct 2014 19:00:34 +0200 (CEST) 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 p5E8wsMgFYgK for ; Fri, 3 Oct 2014 19:00:33 +0200 (CEST) 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 1AC61101E8 for ; Fri, 3 Oct 2014 19:00:32 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s93H0V0f014444 for ; Fri, 3 Oct 2014 19:00:32 +0200 Original-Received: from [192.168.201.10] (cpe-67-240-55-150.nycap.res.rr.com [67.240.55.150]) by mailbackend.panix.com (Postfix) with ESMTP id 912B12ED6C for ; Fri, 3 Oct 2014 13:00:30 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: <1FA19636-43F9-4282-9E7F-1EECE455B001@di.unito.it> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=New York; latitude=40.7553; longitude=-73.9924; http://maps.google.com/maps?q=40.7553,-73.9924&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TMWF0v03 - 975caf841104 - 20141003 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:88833 Archived-At: This is a multi-part message in MIME format. --===============1887755635== Content-Type: multipart/alternative; boundary="------------080306030104060809000804" This is a multi-part message in MIME format. --------------080306030104060809000804 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 2014-10-03 10:32, Andrea Valle wrote: > Thanks, it=E2=80=99s a bit too complicated for me now, I was hoping for= =20 > something like a before argument where to place the author param from=20 > the chapter. > > Andrea, If you can accept the author's name on a separate line in the toc and=20 also a little less automation than the example that uses user structure=20 variables, you might consider the \writebetweenlist command. In addition=20 to the wiki entry (which is incomplete with respect to the parameters),=20 see the recent email thread with the subject "Chapter precis=20 ." The=20 following may be a useful starting point: \starttext \completecontent \chapter{This is a chapter} \writebetweenlist[chapter][location=3Dhere]{\hskip4em\it Author Name} \input ward \section{A section} \section{Another section} \chapter{Another chapter} \stoptext --=20 Rik --------------080306030104060809000804 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On 2014-10-03 10:32, Andrea Valle wrote:
Thanks, it=E2=80=99s a bit too complicated for me now, I was hoping= for something like a before argument where to place the author param from the chapter.


Andrea,

If you can accept the author's name on a separate line in the toc and also a little less automation than the example that uses user structure variables, you might consider the \writebetweenlist command. In addition to the wiki entry (which is incomplete with respect to the parameters), see the recent email thread with the subject "Chapter precis." The following may be a useful starting point:
\starttext
\completecontent
\chapter{This is a chapter}
\writebetweenlist[chapter][location=3Dhere]{\hskip4em\it Author Name}
\input ward
\section{A section}
\section{Another section}
\chapter{Another chapter}
\stoptext

--
Rik
--------------080306030104060809000804-- --===============1887755635== 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= --===============1887755635==--