From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55589 Path: news.gmane.org!not-for-mail From: Andreas Harder Newsgroups: gmane.comp.tex.context Subject: Re: last chapter number Date: Sat, 16 Jan 2010 23:08:43 +0100 Message-ID: <6C55FC49-E9A5-44C4-979F-F660F8DDB3F2@uni-koblenz.de> References: <7BA269C8-AAAD-46AC-A60A-BB915B5CFAA2@rz-online.de> <1867F0AF-0470-422D-ACE6-68CF3D2ECC72@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1263679767 28754 80.91.229.12 (16 Jan 2010 22:09:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jan 2010 22:09:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 16 23:09:20 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 1NWGpb-0001fd-HP for gctc-ntg-context-518@m.gmane.org; Sat, 16 Jan 2010 23:09:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A7E42C9CD2; Sat, 16 Jan 2010 23:09:14 +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 pMJr-jYVB1xF; Sat, 16 Jan 2010 23:09:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53E73C9CCC; Sat, 16 Jan 2010 23:09:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 14025C9CCD for ; Sat, 16 Jan 2010 23:08:58 +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 DUFEoGlkO36o for ; Sat, 16 Jan 2010 23:08:49 +0100 (CET) Original-Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by balder.ntg.nl (Postfix) with ESMTP id B15D2C9CCC for ; Sat, 16 Jan 2010 23:08:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id C89AD789B8E4 for ; Sat, 16 Jan 2010 23:08:44 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23739-02 for ; Sat, 16 Jan 2010 23:08:44 +0100 (CET) X-CHKRCPT: Envelopesender noch aharder@uni-koblenz.de Original-Received: from hal.search.b.superkabel.de (77-23-29-238-dynip.superkabel.de [77.23.29.238]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id 6528A781124E for ; Sat, 16 Jan 2010 23:08:44 +0100 (CET) In-Reply-To: <1867F0AF-0470-422D-ACE6-68CF3D2ECC72@googlemail.com> X-Mailer: Apple Mail (2.1077) X-Virus-Scanned: amavisd-new at uni-koblenz.de 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:55589 Archived-At: Am 16.01.2010 um 20:52 schrieb Wolfgang Schuster: > > Am 16.01.2010 um 17:46 schrieb Andreas Harder: > >> Hi all, >> >> is there already an equivalent to \lastpage for the last chapter number in a document. I tried something like \getmarking[chapternumber][last], but the output is still the current chapter number. > > can you try \convertedstructurecounter[chapter][type=last] Hello Wolfgang, I tried, but it only outputs nothing visible. Here a test file \starttext \dorecurse{10}{\chapter{Kapitel #1} \tex{getmarking[chapternumber]} = \getmarking[chapternumber] \crlf \tex{convertedstructurecounter[chapter][type=last]} = \convertedstructurecounter[chapter][type=last] } \stoptext Greetings Andreas ___________________________________________________________________________________ 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 ___________________________________________________________________________________