Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!udel!rochester!pt.cs.cmu.edu!andrew.cmu.edu!+ From: rfr@cs.cmu.edu (Rick Rashid) Newsgroups: comp.sys.next Subject: Re: Postscript Previewing? Message-ID: Date: 7 Feb 89 21:03:08 GMT References: <16435@iuvax.cs.indiana.edu> <1485@mace.cc.purdue.edu>, <3060@haven.umd.edu> Distribution: usa Organization: Carnegie Mellon, Pittsburgh, PA Lines: 22 In-Reply-To: <3060@haven.umd.edu> There is a very simple fix to Yap which, although it is not a perfect solution, allows you to preview multipage documents. In the sources to Yap (/bootdisk/Programming/Examples/yap/*) you will find a file called 'controller.pswm'. In the method '- executeRequest:(id)sender' there is a line which looks like this: "/showpage {} def /yaptime usertime def \n", You should change that line to be: "/showpage {{buttondown {erasepage exit} if} loop} def /yaptime usertime def\n", This will cause the previewer to pause waiting for a mouse click each time it finishes a page. Each time you click it will clear the window and then process the postscript description of the next page. This hack has the problem that it erases the entire window (including the border) but I am very unfamiliar with postscript and this is the best I could do as a quick hack. Perhaps someone with real postscript expertise could suggest the correct thing to do rather than use erasepage.