From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86389 Path: news.gmane.org!not-for-mail From: Pablo Rodriguez Newsgroups: gmane.comp.tex.context Subject: \doifemptyelse Date: Thu, 20 Feb 2014 21:12:06 +0100 Message-ID: <53066196.1060602@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1392927140 6183 80.91.229.3 (20 Feb 2014 20:12:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2014 20:12:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 20 21:12:29 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 1WGZyu-0000ZU-72 for gctc-ntg-context-518@m.gmane.org; Thu, 20 Feb 2014 21:12:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8936C101F0; Thu, 20 Feb 2014 21:12:26 +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 eYqqqfspGasK; Thu, 20 Feb 2014 21:12:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E457F101E6; Thu, 20 Feb 2014 21:12:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 77F7C101E6 for ; Thu, 20 Feb 2014 21:12:22 +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 wx0Ba5fxCfta for ; Thu, 20 Feb 2014 21:12:19 +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 DD9B0101E2 for ; Thu, 20 Feb 2014 21:12:19 +0100 (CET) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1KKRIr5000372 for ; Thu, 20 Feb 2014 21:27:24 +0100 Original-Received: from [192.168.1.33] ([88.5.200.139]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MAxyW-1WOFUO0RJU-009y0h for ; Thu, 20 Feb 2014 21:12:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 X-Provags-ID: V03:K0:HipIE4D510yXZkmXp9PyGyQj+TSA4N2g/RSLgbTUfVtJsIxm/PK BPUz2XLxzpnmsNQjhMeMabiX7t8eLP2dHrL4xyR0490KR4vYZHajCnUReM1OfnC0S5T7MFU uAVu62TCmVItqGG8IgxdpOiiJ+gGjaKWd7FGcKNRuWE6AjaVmZJ5dHWXIwUp7nICUpv+S4l JOMdwNppnPuIp5Z1Ijg4g== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=212.227.17.22; 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: 01LsIri2t - b7a5280b8cb7 - 20140220 (trained as not-spam) 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:86389 Archived-At: Dear list, I have the following sample: \starttext \chapter{Chapter} .\doifemptyelse{\getmarking[section][current]} {\getmarking[chapter][current]} {\getmarking[section][current]}. \section{Section} .\doifemptyelse{\getmarking[section][current]} {\getmarking[chapter][current]} {\getmarking[section][current]}. \stoptext I must be missing something extremely basic, because I think that the first condiitonal occurs when \getmarking[section][current] is empty (dots have nothing in between). How can I make the first conditional work? 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 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________