Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!nucsrl!gore From: gore@eecs.nwu.edu (Jacob Gore) Newsgroups: comp.sys.next Subject: Re: Re: Postscript Previewing? Message-ID: <12670014@eecs.nwu.edu> Date: 10 Feb 89 01:39:22 GMT References: Organization: Northwestern U, Evanston IL, USA Lines: 23 / comp.sys.next / rfr@cs.cmu.edu (Rick Rashid) / Feb 7, 1989 / >...to preview multipage documents. >In the sources to Yap ... 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", Nice. You probably want to define 'page' the same way. The problem is that everybody and their grandmother redefines 'page' and 'showpage'. If the document being previewed does that, this fix gets overruled. Any ideas? Maybe redefine 'def' so that it refuses to define 'page' or 'showpage'? Jacob Gore Gore@EECS.NWU.Edu Northwestern Univ., EECS Dept. {oddjob,gargoyle,att}!nucsrl!gore