From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49022 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: \doifmodeselse? Date: Thu, 2 Apr 2009 18:01:02 +0200 Message-ID: <342291F7-F682-41DA-81B3-B219E8F39381@rna.nl> 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 1238688126 24248 80.91.229.12 (2 Apr 2009 16:02:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Apr 2009 16:02:06 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 02 18:03:25 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 1LpPNz-0001e5-NS for gctc-ntg-context-518@m.gmane.org; Thu, 02 Apr 2009 18:03:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 17AF91FB71; Thu, 2 Apr 2009 18:01:58 +0200 (CEST) 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 22655-07-2; Thu, 2 Apr 2009 18:01:21 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA6561FADF; Thu, 2 Apr 2009 18:01:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E8FE41FADB for ; Thu, 2 Apr 2009 18:01:19 +0200 (CEST) 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 22655-07 for ; Thu, 2 Apr 2009 18:01:11 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id E92E21FADF for ; Thu, 2 Apr 2009 18:01:11 +0200 (CEST) Original-Received: from smtp-1.concepts.nl (smtp-1.concepts.nl [213.197.30.124]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n32G1BYb014888 for ; Thu, 2 Apr 2009 18:01:11 +0200 Original-Received: from d594e7d0.dsl.concepts.nl ([213.148.231.208] helo=certified.rna.nl) by smtp-1.concepts.nl with esmtp (Exim 4.69) (envelope-from ) id 1LpPLo-0004C0-Nk for ntg-context@ntg.nl; Thu, 02 Apr 2009 18:01:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by certified.rna.nl (Postfix) with ESMTP id 6C69F1F5B157 for ; Thu, 2 Apr 2009 18:01:03 +0200 (CEST) X-Virus-Scanned: amavisd-new at rna.nl Original-Received: from certified.rna.nl ([127.0.0.1]) by localhost (vanroodewierda.rna.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8DFl1EFIR7SM for ; Thu, 2 Apr 2009 18:01:03 +0200 (CEST) Original-Received: from hermione-a.rna.nl (hermione-a.rna.nl [192.168.2.87]) by certified.rna.nl (Postfix) with ESMTP id 2703D1F5B14C for ; Thu, 2 Apr 2009 18:01:03 +0200 (CEST) X-Priority: 3 (Normal) X-Mailer: Apple Mail (2.930.3) X-Concepts-MailScanner-Information: Please contact abuse@concepts.nl for more information X-Concepts-MailScanner-ID: 1LpPLo-0004C0-Nk X-Concepts-MailScanner: Found to be clean X-Concepts-MailScanner-SpamCheck: X-Concepts-MailScanner-From: gerben.wierda@rna.nl X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.197.30.124; country=NL; region=06; city=Breda; latitude=51.5667; longitude=4.8000; http://maps.google.com/maps?q=51.5667,4.8000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 203098618 - de4df9793b4a - 20090402 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:49022 Archived-At: Using --mode or --modes with texexec sets up modes which can be used in the files to parse different parts. For that I use \doifmodeelse{}{}{} But combining various modes in one \doiffmodeelse would be handy. e.g. (pseudocode) if mode is workinprogress or test or the other way around if mode is all or editor So I would like something like \doifmodeselse{all,editor) or even better booleans \doiffmodeselse{not test or editor} so I do not need to build a large setup of nested \ifmodeelse This is not in ConTeXt currently. Would it be easy to program such a multiple modes selector? G ___________________________________________________________________________________ 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 ___________________________________________________________________________________