Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!snorkelwacker.mit.edu!ira.uka.de!ifistg!raichle From: raichle@informatik.uni-stuttgart.de (Bernd Raichle) Newsgroups: comp.text.tex Subject: Re: (Another) puzzler for wannabe wizards Message-ID: Date: 7 Jun 91 10:42:16 GMT References: Sender: news@ifistg.uucp Reply-To: raichle@azu.informatik.uni-stuttgart.de Distribution: comp Organization: Informatik, Univ. Stuttgart. W.Germany Lines: 26 In-reply-to: raichle@informatik.uni-stuttgart.de's message of 5 Jun 91 10:56:23 GMT I wrote: > This re-definition should satisfy the following constraints: > - do not assume that the catcode of " is 12 To be more precise, better use this to check your solution: % ------- CUT HERE ------ % use plainTeX \catcode`\"=\active\gdef"{\"} T"ater % output: T\"ater \begingroup\catcode`\"=6 % (or another value 0..15) \showthe\catcode`\" % print: 6 % @ \showthe\catcode`\" % print: 6 \catcode`\"=12 T"ater % output: T''ater \catcode`\"=\active T"at\char"65 r % output: T''ater \endgroup T"ater % output: T\"ater \bye % ------- CUT HERE ------ Have a nice weekend (;-) -bernd