Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!jaap+ From: jaap+@andrew.cmu.edu (Jaap Akkerhuis) Newsgroups: comp.text Subject: Re: Eroff, -me floating keeps & PostScript Message-ID: Date: 5 Feb 90 17:32:48 GMT References: <1347@ks.UUCP> Organization: Information Technology Center, Carnegie Mellon, Pittsburgh, PA Lines: 41 In-Reply-To: <1347@ks.UUCP> Excerpts from netnews.comp.text: 2-Feb-90 Eroff, -me floating keeps &.. Eli Messinger@ebm.almade (792) > I am trying to include a PostScript figure inside a floating keep, using > Elan's eroff as, > Some introductory text about the Figure, > .(z > .hl > .cS figure.ps 5i 3i > Figure Title Text > .hl > .)z > and some more text afterwards. > The problem is that the PostScript figure is placed at the point where it > is encountered in input (that is, it appears immediately following the word > "Figure,"), wihle everything else (the .hl horizontal lines and the "Figure > Title Text") are floated appropriately. > I've tried using the \! operator before the .cS command, but it still > interpolates the PostScript in the wrong place. > Any suggestions? Yup. I don't have eroff or its macros available, but the basic problem is likely caused by the fact that one doesn't know when the .cS will be evaluated. Try something on the lines of .de mS .ie '\\n(.z'' .cS \\$1 \\$2 \\$3 .el \\!.mS \\$1 \\$2 \\$3 .. and call .ms as in .mS fig.ps 5i 3i The macro will keep calling itself when being diverted, and will finally call .cS when not. jaap