Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!mcsun!corton!loria!loria.crin.fr!domen From: domen@euler.crin.fr (Eric Domenjoud) Newsgroups: comp.text.tex Subject: making characters active Message-ID: Date: 25 Mar 91 13:56:54 GMT Sender: news@loria.crin.fr Organization: CRIN, Nancy, France Lines: 9 I want to write a macro with 2 arguments, the first one being a single characters, which makes #1 active and defines it as #2. I tried \def\makeactive#1#2{\catcode`\#1=\active \let#1{#2}} but it doesn't work. Does anybody have an idea ? Note that the definition should be local to the group in which \makeactive occurs. Eric