From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47433 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: chapter page question Date: Sat, 14 Feb 2009 20:25:18 +0100 Message-ID: <3E83213A-8600-4C52-9DF6-FCB82CD830C2@gmail.com> References: <326847810902140246p3d87929fx85d9c2b8f32ed2cb@mail.gmail.com> <8C5FB8F5-6F8D-4363-9181-DDFA3813C704@gmail.com> <326847810902140357h575596f3obc1699d121e00ed6@mail.gmail.com> <43A79DD5-7F71-41EC-8A79-F4B8D6E240ED@gmail.com> <326847810902140514i6076bdaeu7de3af99268355c8@mail.gmail.com> <326847810902141017g458d1eb5vd13d4c8f04fc5fb@mail.gmail.com> <326847810902141117h6f7dd507wf176670e2ab69373@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234639668 26351 80.91.229.12 (14 Feb 2009 19:27:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2009 19:27:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 14 20:29:04 2009 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 1LYQCF-0003rF-8o for gctc-ntg-context-518@m.gmane.org; Sat, 14 Feb 2009 20:29:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 533201FD75; Sat, 14 Feb 2009 20:27:41 +0100 (CET) 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 22135-02; Sat, 14 Feb 2009 20:26:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 109A01FCA2; Sat, 14 Feb 2009 20:26:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 826151FCA2 for ; Sat, 14 Feb 2009 20:26:37 +0100 (CET) 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 24231-01 for ; Sat, 14 Feb 2009 20:26:02 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id 065EB1FC6A for ; Sat, 14 Feb 2009 20:26:02 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1EJQ1QM023011 for ; Sat, 14 Feb 2009 20:26:01 +0100 Original-Received: by fg-out-1718.google.com with SMTP id e21so72495fga.8 for ; Sat, 14 Feb 2009 11:26:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=O02+Of80u/nnnD04g3LHNKEBsGGdlc6BXO8kC0ror9k=; b=mmb54qIKL0EaiddDZikUxrXTWNOElDsozDMnmvvHP/Abv6g4yzkQgPqClsKtEB8q2T OaexRJlhWtzM8tMpSz6GE3N76TnVmJvfgskE27INWYO6yWxiGEe+ecboJbf2K6n14PFP POtS9oC1m0xiUZvSCAaMtDJ1S2nch0kLqqKGs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=rMQUIfMk7k8ROm2zHqBSJbPaiucXCbSUsva3x+5TdvKxodxCC2KTkMQq9LTkdm8Os/ ANASrcrf5XGSwWsxUz3qvPP9dKwj9nxTzdKd4wnFPnuk0ymKTEOJkFLKCzQ5bBenCE9n WGQARjLQejOVnrZXgbwL4VFHFMnMuEsIWp580= Original-Received: by 10.86.52.1 with SMTP id z1mr469963fgz.75.1234639561004; Sat, 14 Feb 2009 11:26:01 -0800 (PST) Original-Received: from ?10.70.208.190? (8.106.113.82.net.de.o2.com [82.113.106.8]) by mx.google.com with ESMTPS id d4sm4704843fga.58.2009.02.14.11.25.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 14 Feb 2009 11:26:00 -0800 (PST) In-Reply-To: <326847810902141117h6f7dd507wf176670e2ab69373@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.157; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 180017019 - c8d336f3d1df X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47433 Archived-At: Am 14.02.2009 um 20:17 schrieb Alan Stone: > Unfortunately, it doesn't resolve the problem... > > > ! Undefined control sequence. > \cleanuplabel #1->\begingroup \let : > \lettercolon \xdef \cleanlabel > {#1}\endg... > \docheckformode #1#2#3->\cleanuplabel {#3} > \protect \checkedmodefalse > \rawpro... > \myHeader ->\doifmodeelse {a} > {chapter}{high} > \doifvaluesomething ...inga {\csname #1\endcsname > }\ifx \!!stringa > \empty \e... > ...ething {\??ko \v!chapter \c!header } > {\setuplayouttext > [\v!hea... > \firstoftwoarguments #1#2->#1 > > ... > l.23 ...apter #1}\dorecurse{20}{\input knuth\par}} > I had only looked at the error message and not at your example. Passing tests to values is often a problem because you don't know what happens in the internals and only only low level commands like \iftrue, \ifdim ... works without problems. The best you can do is to write: \startmode[a] \setuphead[chapter][header=chapter] \stopmode \startnotmode[a] \setuphead[chapter][header=high] \stopnotmode Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________