Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!paperboy!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!tcdcs!dce.ie!em From: em@dce.ie (Eamonn McManus) Newsgroups: comp.text.tex Subject: Re: making characters active Message-ID: Date: 27 Mar 91 12:27:27 GMT References: <1991Mar25.201912.25816@csrd.uiuc.edu> Organization: Datacode Communications Ltd, Dublin, Ireland Lines: 13 eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) writes: >> \def\makeactive#1#2{\catcode`\#1=\active \let#1{#2}} > >\catcode`#1=\active \tempcount=\uccode`\~ >\uccode`\~=`#1 \uppercase{\let~}{#2} >\uccode`\~=\tempcount Also, it's worth noting that \let#1{#2} is probably not what you want, since it will set #1 to be the same as { (like \bgroup). Presumably \def#1{#2} is what's intended. , Eamonn