From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55619 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: last chapter number Date: Mon, 18 Jan 2010 13:11:12 +0100 Message-ID: <4B544FE0.8070904@wxs.nl> References: <7BA269C8-AAAD-46AC-A60A-BB915B5CFAA2@rz-online.de> <1867F0AF-0470-422D-ACE6-68CF3D2ECC72@googlemail.com> <6C55FC49-E9A5-44C4-979F-F660F8DDB3F2@uni-koblenz.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1263816703 12880 80.91.229.12 (18 Jan 2010 12:11:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2010 12:11:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 18 13:11:35 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.50) id 1NWqSD-00049Q-Fy for gctc-ntg-context-518@m.gmane.org; Mon, 18 Jan 2010 13:11:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EB64CC9B8C; Mon, 18 Jan 2010 13:11:30 +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 DD+tesfQVWQT; Mon, 18 Jan 2010 13:11:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4F866C9BAE; Mon, 18 Jan 2010 13:11:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BF938C9B8C for ; Mon, 18 Jan 2010 13:11:16 +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 SN3oOKJgbrGA for ; Mon, 18 Jan 2010 13:11:13 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id A3CB8C9B7A for ; Mon, 18 Jan 2010 13:11:12 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2d2) with ESMTP id 868-1713362 for multiple; Mon, 18 Jan 2010 13:11:03 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1 Thunderbird/3.0 In-Reply-To: X-Authenticated-User: hagen@controller-9 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:55619 Archived-At: On 17-1-2010 13:36, Wolfgang Schuster wrote: > > Am 17.01.2010 um 13:06 schrieb Andreas Harder: > >> Nonetheless the needed information is already present even more if one u= ses a table of contents =85 > > The table of contents needs two passes too but only Hans can say (or prov= ide > a command like \convertedstructurecounter for section numbers) how you can > access these information. the beta now has \starttext \dorecurse {5} { \chapter{Test #1} first: \somestructureheadnumber[chapter][first]\par current: \somestructureheadnumber[chapter][current]\par last: \somestructureheadnumber[chapter][last] \dorecurse {3} { \section{Test #1} first: \somestructureheadnumber[section][first]\par current: \somestructureheadnumber[section][current]\par last: \somestructureheadnumber[section][last] } } \stoptext upto the two of you who wikifies this Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________