From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66068 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: conditional evaluation and section names Date: Tue, 15 Feb 2011 20:05:40 +0100 Message-ID: <50EFDA9E-D1AC-405C-8A9F-97B0D4FE9172@gmail.com> References: <33505296-72FC-45BE-9690-E3FDA5635F09@gmail.com> <20110215185300.GA13504@clanspum.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1297796788 28521 80.91.229.12 (15 Feb 2011 19:06:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 19:06:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 15 20:06:23 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PpQEA-0002l9-SK for gctc-ntg-context-518@m.gmane.org; Tue, 15 Feb 2011 20:06:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BF931CA9FE; Tue, 15 Feb 2011 20:06:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ATqU0GxR+AjX; Tue, 15 Feb 2011 20:06:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 351EACA9EC; Tue, 15 Feb 2011 20:06:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 703DBCA9EC for ; Tue, 15 Feb 2011 20:06:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id huuJfrCx3Glb for ; Tue, 15 Feb 2011 20:05:46 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 74051C9A7C for ; Tue, 15 Feb 2011 20:05:46 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1FJ5jBR015010 for ; Tue, 15 Feb 2011 20:05:46 +0100 Original-Received: by bwz16 with SMTP id 16so782405bwz.14 for ; Tue, 15 Feb 2011 11:05:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=Jmu9pRgQ7UCXj71dne941gpDd/BHbThoHeeIJSy7g8I=; b=LKfT26r5z03IFEe4Aua7QuUa3/t9RBWmAhENDRhxw7ldqcvNYxg8pXmNyFAWKBOYP/ tcQC0h0dyUItgq0rqv+NnIfrV0grNJjtwYjlgjme27vg9jsmQz0ew4JabxAjFYxe9LPv WAw0LFnElMNpgtM9pRkTzjDcBhnY2vmKSkzs8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=ZvZpoimjfKd5eyhPv0HMJMsTdRLt9FnA4296JJAMvPUNc+6UiuelHm+XFFZjpFaCnJ It16Csth0FZBw2XYhXBQBzwSEnWKGLeXrJeVuncjHuWSVo0popzLb02aMi3h1TnyO6sB 2tOfxMcHgvWzpKvzmJyjKbwySpB1v77rdZhq0= Original-Received: by 10.204.82.96 with SMTP id a32mr7357059bkl.179.1297796745292; Tue, 15 Feb 2011 11:05:45 -0800 (PST) Original-Received: from [192.168.2.29] (p5B293BE6.dip.t-dialin.net [91.41.59.230]) by mx.google.com with ESMTPS id a17sm2837796bku.23.2011.02.15.11.05.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Feb 2011 11:05:43 -0800 (PST) In-Reply-To: <20110215185300.GA13504@clanspum.net> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 0rE8j5JLr - e268eb893b66 - 20110215 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:66068 Archived-At: Am 15.02.2011 um 19:53 schrieb Daniel Lyons: > On Tue, Feb 15, 2011 at 07:12:51PM +0100, Wolfgang Schuster wrote: >>> 2. If I'm in a chapter that doesn't have sections, I'd like the chapter= name to show up instead (without the =A7). >>> = >>> I'm not sure at all how to go about doing this. I suspect the answer is= to use plain TeX but I don't understand TeX's conditional system well enou= gh to figure out how to make it work (nor ConTeXt's marking system). If any= one can help, I'd greatly appreciate it! >> = >> Make a *complete* minimal example! > = > OK, for #2: > = > = > \startsetups[sectioninfo] > =A7 \getmarking[sectionnumber] > \stopsetups \startsetups[sectioninfo] \doiftextelse{\getmarking[sectionnumber]} {=A7 \getmarking[sectionnumber]} {\unknown} \stopsetups Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________