From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38275 Path: news.gmane.org!not-for-mail From: "Idris Samawi Hamid" Newsgroups: gmane.comp.tex.context Subject: conditionals and font switches Date: Tue, 25 Dec 2007 11:25:18 -0700 Organization: Colorado State University Message-ID: 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 1198607664 25603 80.91.229.12 (25 Dec 2007 18:34:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Dec 2007 18:34:24 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 25 19:34:35 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from mail-forward.uio.no ([129.240.10.42]) by lo.gmane.org with esmtp (Exim 4.50) id 1J7Ebp-0003Q3-Kf for gctc-ntg-context-518@m.gmane.org; Tue, 25 Dec 2007 19:34:33 +0100 Original-Received: from mail-mx9.uio.no ([129.240.10.39]) by pat.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1J7EbV-0006ha-G0 for gctc-ntg-context-518@m.gmane.org; Tue, 25 Dec 2007 19:34:13 +0100 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by mail-mx9.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1J7EbJ-0002ns-Sm for gctc-ntg-context-518@m.gmane.org; Tue, 25 Dec 2007 19:34:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E965A1FBC6; Tue, 25 Dec 2007 19:32:38 +0100 (CET) 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 07661-01-11; Tue, 25 Dec 2007 19:32:29 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CACF11FBBE; Tue, 25 Dec 2007 19:32:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E74BA1FBBE for ; Tue, 25 Dec 2007 19:32:27 +0100 (CET) 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 07661-01-10 for ; Tue, 25 Dec 2007 19:32:20 +0100 (CET) Original-Received: from trueband.net (director.trueband.net [216.163.120.8]) by ronja.ntg.nl (Postfix) with SMTP id 0F0221FBB9 for ; Tue, 25 Dec 2007 19:32:19 +0100 (CET) Original-Received: (qmail 14478 invoked by uid 1006); 25 Dec 2007 18:25:32 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.1/100.0):. Processed in 3.296912 secs); 25 Dec 2007 18:25:32 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.6) by -v with SMTP; 25 Dec 2007 18:25:29 -0000 Original-Received: (qmail 931 invoked from network); 25 Dec 2007 18:25:27 -0000 Original-Received: from unknown (HELO your-b27fb1c401) (75.104.84.217) by -v with SMTP; 25 Dec 2007 18:25:27 -0000 User-Agent: Opera Mail/9.24 (Win32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-UiO-ClamAV-Virus: No X-UiO-Spam-info: not spam, SpamAssassin (score=0.0, required=5.0, autolearn=disabled, none) X-UiO-Scanned: CC453E5C5DD46DB39D1BE0228CCAC614AB46F4D5 X-UiO-SPAM-Test: remote_host: 131.211.172.88 spam_score: 0 maxlevel 200 minaction 2 bait 0 mail/h: 2 total 4883 max/h 11 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.comp.tex.context:38275 Archived-At: Dear gang, Consider a control sequence \MyCS. It has three possible definitions: \def\MyCS{}, \def\MyCS{}, \def\MyCS{} What I would like is to define \MyCS once such that takes effect when \tf is invoked takes effect when \it is invoked takes effect when \bf is invoked something like (incorrect syntax but you'll get the point) \def\MyCS{% \if\it \else \if\bf \else } How can I do this> Any tips greatly appreciated! Happy Holidays! Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________