From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52067 Path: news.gmane.org!not-for-mail From: Stephen Gadsby Newsgroups: gmane.comp.tex.context Subject: Re: New to TeX, ConTeXt - How to conditionally include document sections? Date: Fri, 24 Jul 2009 09:36:15 -0400 Message-ID: <73D5696F6096F9478FA4CA43E2FD99B96E245981@mail6.millersville.edu> References: <73D5696F6096F9478FA4CA43E2FD99B96E245934@mail6.millersville.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248442707 18876 80.91.229.12 (24 Jul 2009 13:38:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jul 2009 13:38:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 24 15:38:20 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 1MUKyZ-0000Xt-Pe for gctc-ntg-context-518@m.gmane.org; Fri, 24 Jul 2009 15:38:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2AF251FB8C; Fri, 24 Jul 2009 15:38: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 09275-02-4; Fri, 24 Jul 2009 15:37:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C59E21FB6B; Fri, 24 Jul 2009 15:37:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5B2651FB6B for ; Fri, 24 Jul 2009 15:37:32 +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 09275-02-3 for ; Fri, 24 Jul 2009 15:37:23 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id 6AD0E1FB64 for ; Fri, 24 Jul 2009 15:37:23 +0200 (CEST) Original-Received: from mail5.millersville.edu (mail5.millersville.edu [166.66.86.104]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5) with ESMTP id n6ODbMYf011999 for ; Fri, 24 Jul 2009 15:37:22 +0200 Original-Received: from mail6.millersville.edu ([192.168.30.17]) by mail5.millersville.edu ([192.168.30.16]) with mapi; Fri, 24 Jul 2009 09:36:16 -0400 Thread-Topic: [NTG-context] New to TeX, ConTeXt - How to conditionally include document sections? Thread-Index: AcoL2ioyvyeK9rq/RTmUU22I2UXiYQAiKI3A In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=166.66.86.104; country=US; region=PA; city=Millersville; postalcode=17551; latitude=39.9811; longitude=-76.3784; metrocode=566; areacode=717; http://maps.google.com/maps?q=39.9811,-76.3784&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 265475000 - 6fb5eee1d517 - 20090724 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:52067 Archived-At: > From: Hans Hagen > > \doifelse{stringa}{stringb}{...}{...} > From: Aditya Mahajan > > For what you want, modes should be sufficient. If for > something else you really want to do string comparisons, > ConTeXt provides a bunch of \doifelse commands > http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions Thank you both. I feel quite foolish for somehow overlooking \doifelse. I appreciate how kindly you've pointed out what should have been obvious to me. I'll also look more closely at modes. I'll admit I did briefly look at information on them, but I didn't immediately see their usefulness. I'll now spend some time reading up on them. Thank you. -Stephen J. Gadsby, Multimedia Specialist Web & Multimedia Services, Information Technology Millersville University of Pennsylvania, USA ___________________________________________________________________________________ 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 ___________________________________________________________________________________