From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36471 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: currentheadnumber / doif.. problem Date: Wed, 12 Sep 2007 09:25:55 -0400 (EDT) Message-ID: References: <200709101309.09374.tralalas@freenet.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189603712 10456 80.91.229.12 (12 Sep 2007 13:28:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2007 13:28:32 +0000 (UTC) To: tralalas@freenet.de, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 12 15:28:24 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IVSGP-0001M3-OB for gctc-ntg-context-518@m.gmane.org; Wed, 12 Sep 2007 15:28:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 975D61FF70; Wed, 12 Sep 2007 15:28:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21652-10-2; Wed, 12 Sep 2007 15:28:03 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BEFCE1FF60; Wed, 12 Sep 2007 15:28:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 853ED1FF60 for ; Wed, 12 Sep 2007 15:28:02 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21652-10 for ; Wed, 12 Sep 2007 15:27:57 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with ESMTP id DE6051FEC1 for ; Wed, 12 Sep 2007 15:25:59 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (adsl-68-79-103-226.dsl.sfldmi.ameritech.net [68.79.103.226]) BY hellskitchen.mr.itd.umich.edu ID 46E7E8E2.484EA.10148 ; 12 Sep 2007 09:25:55 -0400 In-Reply-To: <200709101309.09374.tralalas@freenet.de> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36471 Archived-At: On Mon, 10 Sep 2007, Peter Schorsch wrote: > Hi, > > I tried to get the full present heading-number. If I am using currentnumber > the result is only the last part of the heading-number. So I tried do > implement a function like this: (Untested) > \def\presentheadnumber% > {\doifelse{\headnumber[section]}{0}% ^^^^^^ > {\headnumber[chapter]}% > {\headnumber[section]}% > } > Aditya ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________