From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61755 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Chapter-author in TOC Date: Sun, 19 Sep 2010 18:36:04 +0200 Message-ID: References: <057F745A-733E-42D2-A06C-1CB2FC6E4124@rz-online.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1284914190 25114 80.91.229.12 (19 Sep 2010 16:36:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Sep 2010 16:36:30 +0000 (UTC) Cc: Harald Koenig To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 19 18:36:28 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OxMsL-0006X3-Cl for gctc-ntg-context-518@m.gmane.org; Sun, 19 Sep 2010 18:36:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CA163CA6E1; Sun, 19 Sep 2010 18:36:24 +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 cjXu6ByRnRP6; Sun, 19 Sep 2010 18:36:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F20EBCA69E; Sun, 19 Sep 2010 18:36:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4109CA69E for ; Sun, 19 Sep 2010 18:36:11 +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 j+oZqBuxd-4T for ; Sun, 19 Sep 2010 18:36:09 +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 7F6E0CA69B for ; Sun, 19 Sep 2010 18:36:09 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8JGa8Iq028633 for ; Sun, 19 Sep 2010 18:36:09 +0200 Original-Received: by fxm12 with SMTP id 12so423624fxm.14 for ; Sun, 19 Sep 2010 09:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=lzJJJZ81FqvIoHH5uSvnzlGItYajM9BGKgNXHiemkM0=; b=RY8NgxPUcAT76FEYNifIku0D3fL16GUCitRg9cnsIAOfa8vNp1Q9ZzCuttxd4q1ZFV 5u24ci0dHB7LADETJevI6naUZDfGCbG0jvCzfRapT8yg7VpnijZzfiYLcZ75Ph9wNeZP h42gKOdh6Rc+8Sg/PHl2hGXO4UGGlWDRUK2cs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=NNOaLdIIP3HAQF3Q6x1KCbkc4BxJnjwrZZqCC8OKUjy7czwrkiLgNSK4YB3Dhage2V anoyFPkeST9KMwbkJu3ZkNjUjiV2FZGLzC+CqIxEYOd2KtmrydmL1GC1J3ENaFnS61H3 +kANnTi/kLSN6SR2JtJ1w0yLSEZEQCxIJxF1c= Original-Received: by 10.223.104.134 with SMTP id p6mr1795928fao.65.1284914168548; Sun, 19 Sep 2010 09:36:08 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B295106.dip.t-dialin.net [91.41.81.6]) by mx.google.com with ESMTPS id r8sm2528275faq.10.2010.09.19.09.36.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 19 Sep 2010 09:36:07 -0700 (PDT) In-Reply-To: <057F745A-733E-42D2-A06C-1CB2FC6E4124@rz-online.de> X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bD8EA8H3 - 8f85e293cf23 - 20100919 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:61755 Archived-At: Am 19.09.2010 um 17:44 schrieb Andreas Harder: > Hi all! > = > I=92m using the structureuservariable to set an author on a per chapter b= asis. But I would also like to have them in the table of contents, so I tri= ed the following: > = > [...] > = > =85 without success. I appreciate any help. Hi Andreas, your question comes just in time, here is a example i planned to send to Ha= rald only. \define[3]\ChapterList {\bTABLE[offset=3D0pt,strut=3Dyes,frame=3Doff,width=3D.5\textwidth] \bTR \bTD \structurelistuservariable{date} \eTD \bTD #2 \eTD \eTR \eTABLE} \setuplist [chapter] [alternative=3Dcommand, command=3D\ChapterList] \define[2]\ChapterHead {\startframedtext[frame=3Doff,width=3D\textwidth,offset=3D0pt,align=3Dmid= dle] \doifsomething{\structureuservariable{date}}{\structureuservariable{date= }\blank} #2 \doifsomething{\structureuservariable{author}}{\blank\structureuservaria= ble{author}} \stopframedtext} \setuphead [chapter] [command=3D\ChapterHead] \starttext \completecontent \startchapter[title=3DRom][date=3D12.06.2010,author=3DKnuth] \input knuth \stopchapter \startchapter[title=3DPisa][date=3D14.06.2010,author=3DTufte] \input tufte \stopchapter \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________