Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site wateng.UUCP Path: utzoo!watmath!wateng!padpowell From: padpowell@wateng.UUCP (PAD Powell) Newsgroups: net.text Subject: pic, -me macros, diversions, and guards Message-ID: <2045@wateng.UUCP> Date: Thu, 21-Feb-85 08:42:09 EST Article-I.D.: wateng.2045 Posted: Thu Feb 21 08:42:09 1985 Date-Received: Fri, 22-Feb-85 21:07:25 EST Distribution: net Organization: U of Waterloo, Ontario Lines: 19 In a previous article, I mentioned that diversions "compounded" indents, and the only way to prevent this was to put "guarded" .in 0 commands in the text. I said that .in 0 \&.in 0 was a guard sequence. Well, as lebenty-leben people have pointed out, it doesn't work. Actually, this is just part of it, as this does the guarding for "macro" inclusions only. To get diversion quards, you need to do: \.in 0 The first backslash is eaten during the diversion step. When the diversion is expanded, you get a .in 0 command. This works only if you know the level of diversions you have. The set of macros I posed has a fairly bombproof method of expanding them at actual diversion output time. Patrick ("Just small second degree burns so far") Powell