From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66064 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 19:12:51 +0100 Message-ID: <33505296-72FC-45BE-9690-E3FDA5635F09@gmail.com> References: 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 1297793617 9136 80.91.229.12 (15 Feb 2011 18:13:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 18:13:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 15 19:13:33 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 1PpPP2-0005wl-VL for gctc-ntg-context-518@m.gmane.org; Tue, 15 Feb 2011 19:13:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CDA96CA9EC; Tue, 15 Feb 2011 19:13:31 +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 VNhcp6YVphIO; Tue, 15 Feb 2011 19:13:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CEDC7CA9E3; Tue, 15 Feb 2011 19:13:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 59917CA9E3 for ; Tue, 15 Feb 2011 19:13:17 +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 272sg4UFXXOQ for ; Tue, 15 Feb 2011 19:12:56 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id B3295CA9DD for ; Tue, 15 Feb 2011 19:12:56 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1FICtcr005821 for ; Tue, 15 Feb 2011 19:12:56 +0100 Original-Received: by bwz16 with SMTP id 16so730783bwz.14 for ; Tue, 15 Feb 2011 10:12:55 -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=M7+bdS/uASbRyiZnf7z4YErxV6JJNjuI4nNAv9m1l88=; b=B+yQJiI6CFZZPd5M15H+a5YXipHXl2RfXavthRPhEo6dx7hwneXVPnNaOYuTnHkpRJ KFOSoiAksi3izA8UbfgfDRiaQuB1EiEpiHRpC2QarmVX/862gKK/oRHS3IrxmTzHuoN1 l1wHNKqSDdIqMNEC55FyxFQS29zvK07wiYMjs= 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=QaT8Y/Os3fFe3U7ggQmyVOk2jemb74LJHio7iEk7LHKuPteziPJaYrAt1PKPge5bTx PZqMnb8Z4mPCOmDDoVdLtMaI0G9BxOADq9vNYhyysmsmevBr6b03ndXnY0XA8WY7kZLu E89jatyDF/BscbN4v2fUq7itUKdPOtn8vpwiM= Original-Received: by 10.204.85.84 with SMTP id n20mr3276223bkl.210.1297793575400; Tue, 15 Feb 2011 10:12:55 -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 v25sm2796955bkt.6.2011.02.15.10.12.53 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Feb 2011 10:12:54 -0800 (PST) In-Reply-To: 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: 08E8icTaa - 1e5bc2ea96e6 - 20110215 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:66064 Archived-At: Am 15.02.2011 um 09:11 schrieb Daniel Lyons: > Hi again, > = > I have this in my environment > = > \startsetups[sectioninfo] > \ss > \rlap{\userpagenumber} > \hfill > =A7 \getmarking[sectionnumber][current] > \emspace > \bf \getmarking[section][current] > \hfill > \llap{} > \stopsetups > = > \setupheadertexts[\setups{chapterinfo}][] > [] [\setups{sectioninfo}] > = > This seems to be working, but there are a couple improvements I'd like to= make and I'm not quite sure where to start: > = > 1. If I'm in a later chapter than the current section is defined in, it s= hows up anyway. I'd like to prevent that. > 2. If I'm in a chapter that doesn't have sections, I'd like the chapter n= ame to show up instead (without the =A7). > = > I'm not sure at all how to go about doing this. I suspect the answer is t= o use plain TeX but I don't understand TeX's conditional system well enough= to figure out how to make it work (nor ConTeXt's marking system). If anyon= e can help, I'd greatly appreciate it! Make a *complete* minimal example! 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 ___________________________________________________________________________= ________