From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65851 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: chapter head and placelist Date: Sat, 5 Feb 2011 13:32:40 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296911988 25921 80.91.229.12 (5 Feb 2011 13:19:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Feb 2011 13:19:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 05 14:19:44 2011 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 1Pli3E-0006QF-7a for gctc-ntg-context-518@m.gmane.org; Sat, 05 Feb 2011 14:19:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33218CA939; Sat, 5 Feb 2011 14:19:43 +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 uMAp5tlcTsp2; Sat, 5 Feb 2011 14:19:40 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 48188CA933; Sat, 5 Feb 2011 14:19:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DB321CA933 for ; Sat, 5 Feb 2011 14:19:38 +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 YGj01LCPXN3P for ; Sat, 5 Feb 2011 14:19:27 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id A76D5CA88B for ; Sat, 5 Feb 2011 14:19:27 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p15DJQ27005580 for ; Sat, 5 Feb 2011 14:19:27 +0100 Original-Received: by bwz16 with SMTP id 16so3763413bwz.14 for ; Sat, 05 Feb 2011 05:19:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=Z5/PqpjEF7e3ajxB3vZtVGO6/B4F1PvvKxA0yOsZ8YU=; b=xgQjQKpClAWcpNtgqhmaBIsgdj+Jq0F0AiDWodLFJ4zIuNzXyllRI92LhPlzyYyu+C SjZvi3m4WdY0gADt1DwIfPk30MS09s8PwcH0Ng7tjQt7mDqk2/PT5UWRJVapdhbhroZg +jNH/6s5xc+Lc4xmbRhFV5nhPXuM+K3ppB3JI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=Iq7dlJ7FuWlWaRmn1efMegwqIsCDnyLLh9mAYxeniX4ILNY5nQogxvUSCbIGJWOTCN Y0csvHrnozFTt1HmvOiGFGWbk+usX7KrO81wLI9TkGVFgB/mJJjqp/O+5uUgnb3T4wD1 NrjuMDDrxvoTnRgflGJz+CCn0PqC4tavlMDog= Original-Received: by 10.204.121.143 with SMTP id h15mr1128174bkr.42.1296911966520; Sat, 05 Feb 2011 05:19:26 -0800 (PST) Original-Received: from [192.168.2.23] (p5B2969C0.dip.t-dialin.net [91.41.105.192]) by mx.google.com with ESMTPS id rc9sm975397bkb.2.2011.02.05.05.19.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 05 Feb 2011 05:19:25 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0rE4djqng - 04c875bf9d78 - 20110205 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:65851 Archived-At: Am 05.02.2011 um 12:41 schrieb Jeong Dalyoung: > Dear Andreas, > = > Thank you for your code. > I'll try it. > = > The other day, Wolfgang suggested me the same page in wiki. > But, It looks a little bit complicate, so I use another simple method. It=92s no so complicated as you think. The \startchapter command has two arguments, the first is used for the chapter argument like title, reference, bookmark etc. and the second argument, which is optional, for your own values, like author, subtitle etc. You can now access these values in your own chapter layout with \structurevariable for the normal arguments (e.g. title) and \structureuservariable for your own arguments (e.g. subtitle). \define[2]\ChapterCommand {\starttabulate[|l|l|] \NC title \EQ \structurevariable {title} \NC\NR \NC reference \EQ \structurevariable {reference} \NC\NR \NC author \EQ \structureuservariable{author} \NC\NR \NC subtitle \EQ \structureuservariable{subtitle} \NC\NR \stoptabulate} \setuphead[chapter][command=3D\ChapterCommand] \starttext \startchapter[reference=3Dsec:knuth,title=3DKnuth][author=3DDonald E. Knuth= ,subtitle=3DConTeXt Sample File] \input knuth \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 ___________________________________________________________________________= ________