Article View: comp.text.tex
Article #10138Re: (Another) puzzler for wannabe wizards
From: Bernd Raichle
Date: Fri, 07 Jun 1991 10:42
Date: Fri, 07 Jun 1991 10:42
26 lines
1418 bytes
1418 bytes
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
% @<Insert your hack at this place@>
\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
Technical Details
Message-ID:
<RAICHLE.91Jun7124216@azu.informatik.uni-stuttgart.de>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!snorkelwacker.mit.edu!ira.uka.de!ifistg!raichleReferences:
<RAICHLE.91Jun5125624@azu.informatik.uni-stuttgart.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <RAICHLE.91Jun7124216@azu.informatik.uni-stuttgart.de> Date: 7 Jun 91 10:42:16 GMT References: <RAICHLE.91Jun5125624@azu.informatik.uni-stuttgart.de> 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