From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36755 Path: news.gmane.org!not-for-mail From: Peter Schorsch Newsgroups: gmane.comp.tex.context Subject: Re: currentheadnumber / doif.. problem Date: Tue, 25 Sep 2007 21:42:26 +0200 Message-ID: <200709252142.28518.tralalas@freenet.de> References: <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 1190749468 14418 80.91.229.12 (25 Sep 2007 19:44:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Sep 2007 19:44:28 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 25 21:44: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 1IaGKL-0001lT-1w for gctc-ntg-context-518@m.gmane.org; Tue, 25 Sep 2007 21:44:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 516AE1FBC5; Tue, 25 Sep 2007 21:44:07 +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 04245-01-15; Tue, 25 Sep 2007 21:43:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 50A4B1FBAA; Tue, 25 Sep 2007 21:43:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 55D0B1FBAA for ; Tue, 25 Sep 2007 21:43:49 +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 04245-01-14 for ; Tue, 25 Sep 2007 21:43:42 +0200 (CEST) Original-Received: from mout2.freenet.de (mout2.freenet.de [195.4.92.92]) by ronja.ntg.nl (Postfix) with ESMTP id 8D9771FBA8 for ; Tue, 25 Sep 2007 21:43:42 +0200 (CEST) Original-Received: from [195.4.92.11] (helo=mx1.freenet.de) by mout2.freenet.de with esmtpa (Exim 4.68-dev) (envelope-from ) id 1IaGJq-0001k9-9C for ntg-context@ntg.nl; Tue, 25 Sep 2007 21:43:42 +0200 Original-Received: from [91.64.14.232] (port=45359 helo=henning.mobil.haeske.com) by mx1.freenet.de with esmtpsa (ID tralalas@freenet.de) (TLSv1:AES256-SHA:256) (port 25) (Exim 4.68-dev #12) id 1IaGJq-0002qh-7d for ntg-context@ntg.nl; Tue, 25 Sep 2007 21:43:42 +0200 User-Agent: KMail/1.9.7 In-Reply-To: Content-Disposition: inline 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:36755 Archived-At: hm.. it still executes always the else-part of the doifelse-function.... > > (Untested) > > > \def\presentheadnumber% > > {\doifelse{\headnumber[section]}{0}% > > ^^^^^^ > > > {\headnumber[chapter]}% > > {\headnumber[section]}% > > } ___________________________________________________________________________________ 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 ___________________________________________________________________________________