From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31739 Path: news.gmane.org!not-for-mail From: Enzo Cordes Newsgroups: gmane.comp.tex.context Subject: character redefinition environment Date: Sun, 05 Nov 2006 15:49:39 +0100 Organization: PLINK Message-ID: <454DFA03.8060801@veribox.net> Reply-To: plink@veribox.net, mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162738166 6348 80.91.229.2 (5 Nov 2006 14:49:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Nov 2006 14:49:26 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 05 15:49:24 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1GgjJE-0001zx-Qx for gctc-ntg-context-518@m.gmane.org; Sun, 05 Nov 2006 15:49:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F0941FFEC; Sun, 5 Nov 2006 15:49:16 +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 21695-09; Sun, 5 Nov 2006 15:49:07 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4C9E31FF01; Sun, 5 Nov 2006 15:49:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D7241FF0B for ; Sun, 5 Nov 2006 15:49:04 +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 21856-02 for ; Sun, 5 Nov 2006 15:48:58 +0100 (CET) Original-Received: from proof.pobox.com (proof.pobox.com [207.106.133.28]) by ronja.ntg.nl (Postfix) with SMTP id E5A921FEE4 for ; Sun, 5 Nov 2006 15:48:57 +0100 (CET) Original-Received: from proof (localhost [127.0.0.1]) by proof.pobox.com (Postfix) with ESMTP id 68A4128D89 for ; Sun, 5 Nov 2006 09:49:18 -0500 (EST) Original-Received: from [84.159.76.223] (p549F4CDF.dip.t-dialin.net [84.159.76.223]) by proof.sasl.smtp.pobox.com (Postfix) with ESMTP id 09D7E90401 for ; Sun, 5 Nov 2006 09:49:17 -0500 (EST) User-Agent: Thunderbird 1.5.0.7 (X11/20060927) Original-To: mailing list for ConTeXt users X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:31739 Archived-At: Hi list, I want to assign Metapost graphics to single letters (in a newly defined evironment, that take care of these assignments). The purpose is being able to rapidly build huge tables containing lots of these symbols. Everything works fine if I assign these graphics to non-letters, e.g. "|", but somehow it doesn't work with normal letters. Here is what I tried (with a simple Foo instead of Metapost graphics): \definesymbol[foosymbol][{\tt Foo}] \def\startmychars{% \bgroup\catcode`\|=\active\def|{\symbol[foosymbol]}} \def\stopmychars{\egroup} This works with | as reassigned character without any problems. But, we want to have normal characters in the table, no punctuation marks, etc. Does anyone know what to do to reassign a special definition for a letter e.g. like uppercase B or else? I got this error: (/usr/local/share/texmf/tex/context/base/pdfr-ec.tex) ! Undefined control sequence. \startmychars ...up \catcode `\B=\active \defB {\symbol[foosymbol]} l.24 \startmychars which seems to indicate that B is not recognized as active character in the "\defB"? Any hints very welcome, Enzo.