From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44157 Path: news.gmane.org!not-for-mail From: "Alan Stone" Newsgroups: gmane.comp.tex.context Subject: Re: modes questions Date: Sat, 20 Sep 2008 17:17:16 +0200 Message-ID: <326847810809200817g200e9002p3bf5a7918d6f6760@mail.gmail.com> References: <326847810809110247m2ae86edch725ae07e34e0a6e7@mail.gmail.com> <48C8F71E.50408@wxs.nl> <326847810809171211h7cd20ff3ua878510eb9083968@mail.gmail.com> <48D16FB0.2060009@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2110023056==" X-Trace: ger.gmane.org 1221924222 6425 80.91.229.12 (20 Sep 2008 15:23:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Sep 2008 15:23:42 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 20 17:24:38 2008 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 1Kh4K3-0003Bu-TC for gctc-ntg-context-518@m.gmane.org; Sat, 20 Sep 2008 17:24:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 266FD1FEEB; Sat, 20 Sep 2008 17:23: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 27330-02-8; Sat, 20 Sep 2008 17:22:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7C6901FB7E; Sat, 20 Sep 2008 17:22:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 09C551FF02 for ; Sat, 20 Sep 2008 17:22:30 +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 27374-03 for ; Sat, 20 Sep 2008 17:21:54 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by ronja.ntg.nl (Postfix) with ESMTP id 9A4921FF0E for ; Sat, 20 Sep 2008 17:17:16 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id c10so308648nfd.44 for ; Sat, 20 Sep 2008 08:17:16 -0700 (PDT) Original-Received: by 10.210.133.2 with SMTP id g2mr1876048ebd.163.1221923836312; Sat, 20 Sep 2008 08:17:16 -0700 (PDT) Original-Received: by 10.210.16.2 with HTTP; Sat, 20 Sep 2008 08:17:16 -0700 (PDT) In-Reply-To: <48D16FB0.2060009@wxs.nl> 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 Xref: news.gmane.org gmane.comp.tex.context:44157 Archived-At: --===============2110023056== Content-Type: multipart/alternative; boundary="----=_Part_53795_20086809.1221923836293" ------=_Part_53795_20086809.1221923836293 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Are such macros possible ? modes: ma, mb, ... mz values: va, vb, ... vz command: cmd parameter: p (1) instead of \doifmode{ma}{\cmd[name][va]} \doifmode{mb}{\cmd[name][vb]} ... \doifmode{mz}{\cmd[name][vz]} a macro which does: \doifmode{m*}{\cmd[name][v*]} (2) instead of \doifmode{ma}{\cmd[p=va]} \doifmode{mb}{\cmd[p=vb]} ... \doifmode{mz}{\cmd[p=vz]} a macro which does: \doifmode{m*}{\cmd[p=v*]} -- Best, Alan * texmfstart texexec --lua foo * ConTeXt ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20 int: english/english * Windows XP Home SP3 ------=_Part_53795_20086809.1221923836293 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Are such macros possible ?
 
modes: ma, mb, ... mz
values: va, vb, ... vz
command: cmd
parameter: p
 
(1) instead of
 
\doifmode{ma}{\cmd[name][va]}
\doifmode{mb}{\cmd[name][vb]}
...
\doifmode{mz}{\cmd[name][vz]}
 
a macro which does: \doifmode{m*}{\cmd[name][v*]}
 
(2) instead of
 
\doifmode{ma}{\cmd[p=va]}
\doifmode{mb}{\cmd[p=vb]}
...
\doifmode{mz}{\cmd[p=vz]}
 
a macro which does: \doifmode{m*}{\cmd[p=v*]}
 
--
Best,
Alan

* texmfstart texexec --lua foo
* ConTeXt  ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20  int: english/english
* Windows XP Home SP3
------=_Part_53795_20086809.1221923836293-- --===============2110023056== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============2110023056==--