From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86391 Path: news.gmane.org!not-for-mail From: Pablo Rodriguez Newsgroups: gmane.comp.tex.context Subject: Re: \doifemptyelse Date: Thu, 20 Feb 2014 23:09:56 +0100 Message-ID: <53067D34.4020903@gmx.es> References: <53066196.1060602@gmx.es> <3209BA49-0315-4A77-A57C-1D9CED9C58B7@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1392934205 25777 80.91.229.3 (20 Feb 2014 22:10:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2014 22:10:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 20 23:10:15 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WGbos-0007Uv-PR for gctc-ntg-context-518@m.gmane.org; Thu, 20 Feb 2014 23:10:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20F2C101E2; Thu, 20 Feb 2014 23:10:14 +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 ymYUmax1teoq; Thu, 20 Feb 2014 23:10:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0108C101E6; Thu, 20 Feb 2014 23:10:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 874D1101E6 for ; Thu, 20 Feb 2014 23:10:10 +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 m5LRoKCKkt5m for ; Thu, 20 Feb 2014 23:10:08 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id BE63A101E2 for ; Thu, 20 Feb 2014 23:10:03 +0100 (CET) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1KMP7eS024845 for ; Thu, 20 Feb 2014 23:25:07 +0100 Original-Received: from [192.168.1.33] ([88.5.200.139]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Mecqq-1WeiGm3T8C-00OKhD for ; Thu, 20 Feb 2014 23:10:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <3209BA49-0315-4A77-A57C-1D9CED9C58B7@gmail.com> X-Provags-ID: V03:K0:tyIxKc82sF9j93np8aaIzRHwKGFWbg9yaZGWtau2JKJ5orhFdoB Vzr8z9pJy/fwm8+Vl3uNiA/0yg6C4kIqIUvXiz7ReGRkbfmuaNfroiWnctMaU4e/Rr+32M4 CrbbJRSYmub33xwR4ROd50msCWTpRbMGYfslLffhgUjAV5xW8gHUN0tD+u5eiIYcJsyYC+P WKancG1BghtJpF7LSKhgw== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=212.227.17.20; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LsKp7H9 - ad456dede4ff - 20140220 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86391 Archived-At: On 02/20/2014 09:39 PM, Wolfgang Schuster wrote: > Am 20.02.2014 um 21:12 schrieb Pablo Rodriguez: >> [...] >> How can I make the first conditional work? > = > You can=92t, markings are only reliable when you use them in the > header of footer of the page. > = > To access the values of a heading you can use the \structurevariable > and \namedstructurevariable commands. Many thanks for your reply, Wolfgang. My question was about headers, but I didn=92t mention it to make a shorter sample. The code now is the following: \setupheadertexts[\hfill\namedstructurevariable{chapter}{title}\hfill] [] [] [\hfill\doifsomethingelse{\namedstructurevariable{section}{title}} {\namedstructurevariable{section}{title}} {\namedstructurevariable{chapter}{title}}\hfill] Only a minor detail: is there a more proper way to center both headings? Many thanks for your help, Pablo -- = http://www.ousia.tk ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________