From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36450 Path: news.gmane.org!not-for-mail From: Peter Schorsch Newsgroups: gmane.comp.tex.context Subject: currentheadnumber / doif.. problem Date: Mon, 10 Sep 2007 13:09:09 +0200 Message-ID: <200709101309.09374.tralalas@freenet.de> Reply-To: tralalas@freenet.de, 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 1189493581 8044 80.91.229.12 (11 Sep 2007 06:53:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 06:53:01 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 11 16:52:45 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 1IV76V-0005w0-Vk for gctc-ntg-context-518@m.gmane.org; Tue, 11 Sep 2007 16:52:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B369D1FDFD; Tue, 11 Sep 2007 08:52:53 +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 03387-04-16; Tue, 11 Sep 2007 08:52:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6BD931FDF1; Tue, 11 Sep 2007 08:52:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1ACA51FB8F for ; Mon, 10 Sep 2007 13:10:21 +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 16844-07-17 for ; Mon, 10 Sep 2007 13:10:13 +0200 (CEST) Original-Received: from mout0.freenet.de (mout0.freenet.de [195.4.92.90]) by ronja.ntg.nl (Postfix) with ESMTP id 54A4C201DC for ; Mon, 10 Sep 2007 13:10:13 +0200 (CEST) Original-Received: from [195.4.92.18] (helo=mx8.freenet.de) by mout0.freenet.de with esmtpa (Exim 4.68-dev) (envelope-from ) id 1IUh9h-0001qw-3f for ntg-context@ntg.nl; Mon, 10 Sep 2007 13:10:13 +0200 Original-Received: from [91.64.14.162] (port=47232 helo=henning.mobil.haeske.com) by mx8.freenet.de with esmtpsa (ID tralalas@freenet.de) (TLSv1:AES256-SHA:256) (port 25) (Exim 4.68-dev #12) id 1IUh9h-0005F6-1z for ntg-context@ntg.nl; Mon, 10 Sep 2007 13:10:13 +0200 User-Agent: KMail/1.9.7 Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-Mailman-Approved-At: Tue, 11 Sep 2007 08:52:40 +0200 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:36450 Archived-At: 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: \def\presentheadnumber% {\doifelse{\headnumber[section]}{}% {\headnumber[chapter]}% {\headnumber[section]}% } but always the else-part is executed. I also tried to use doifemptyelse, doifnumber etc.. but as soon i am using headnumber[...] only the else-part will be executed. Can anyone help me with this problem? Or am I going a complete wrong way? Thanks ___________________________________________________________________________________ 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 ___________________________________________________________________________________