From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11544 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: latest Beta Date: Fri, 21 Mar 2003 11:40:38 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20030321113759.02559f00@server-1> References: <5.1.0.14.1.20030321083644.030b55f8@server-1> <5.1.0.14.1.20030320174619.03ed4bb0@server-1> <5.1.0.14.1.20030321083644.030b55f8@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1048244478 13738 80.91.224.249 (21 Mar 2003 11:01:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2003 11:01:18 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Fri Mar 21 12:01:13 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18wKGW-0003Xy-00 for ; Fri, 21 Mar 2003 12:00:48 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id EACC510B82; Fri, 21 Mar 2003 12:00:51 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 3C9A210B82 for ; Fri, 21 Mar 2003 11:56:40 +0100 (MET) Original-Received: from server-1.pragma-net.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id h2LAucoB029892 for ; Fri, 21 Mar 2003 11:56:38 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-net.nl (8.12.3/8.12.2) with ESMTP id h2LAucEU022278 for ; Fri, 21 Mar 2003 11:56:38 +0100 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <873clh3wdu.fsf@gundla.ch> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11544 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11544 At 10:24 AM 3/21/2003 +0100, Patrick Gundlach wrote: >Hans Hagen writes: > >Hello, > > >>Sorry, cut and paste error (I added the comma on line 21). The > >>underlying error is still there > > > > in that case i need a minimal file showing the problem > >I am not Guy Worthington, but I had a (non successful) look at it and >this is my testing file: > >================================================== >\setuphead[chapter] > [alternative=command, > command=\ContentsHead] > >\def\ContentsHead#1#2% > {\framed [width=\hsize]{\doifelsenothing{#1}{a}{b}}} > >\starttext >\chapter {Berend} >\stoptext >================================================== Ah, this is beause \ContentsHead gets a truckload of rubish passed (add \showargument{#1} and you see what i mean) and this confuses tex when testing things (if..else in argument); even if i would solve this, other *user) code could mess up things; this is why we have (inside a head): \doifmodeelse{*sectionnumber} or alternatively: \doiftextelse for content testing (btw, sorry that i didn't yet answer your question about the numbering) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------