From: Enzo Cordes <plink@veribox.net>
Subject: character redefinition environment
Date: Sun, 05 Nov 2006 15:49:39 +0100 [thread overview]
Message-ID: <454DFA03.8060801@veribox.net> (raw)
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.
next reply other threads:[~2006-11-05 14:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-05 14:49 Enzo Cordes [this message]
2006-11-05 17:14 ` Hans Hagen
2006-11-06 16:40 ` Enzo Cordes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=454DFA03.8060801@veribox.net \
--to=plink@veribox.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).